Re: [Maya2osg-users] Customized GLSL shaders
Status: Alpha
Brought to you by:
jtaibo
From: Peter W. <pp...@cg...> - 2011-05-27 07:08:01
|
Hi Javier, >> The shader code does not end up in the osg file. Don't know what I'm >> doing wrong. > You're passing the wrong options to the plug-in. Unless you have > renamed them in osgwrite.cpp and not committed the changes. Till now I only changed UI element names and envVars, but I kept the flags that are send to the plug-in untouched, so this shouldn't be the issue. > I'm OK with it. You're right in that I left these names inconsistent > (in some places I said "compute" and others "code"). I think compute > is more adequate, as the declarations are also code, after all. > O.K., I will change the flags in the plugin to the suggested ones > One other thing, Apart from the options being wrong, I tried it and > the scripts are not loading the plug-in as always. I had to manually > load it to be able to export a scene. I saw you changed a lot of code > but I didn't take a deep look at it. I think I wouldn't have too much > time these days. > > Will look into this, should be fixed today. Some more stuff from my side, I will start editing the cmake files as well, but need some assitance in the begining. The maya2osg_utility.mel needs to be installed properly. I found 2 files to edit and 2 deprecated VS files: configure_installer.cmake maya2osg-maininstaller.iss maya2osg.vcxproject maya2osg.vcxproject.filters I will edit all 4 files ( with allmighty copy and paste tool :-) ), please to confirm. For my understanding, about the new textfields, and to be able to test functionality: Vertex / Fragment Declare are injected into GLSL code after the existing declaration block and before any procedure definition. Vertex / Fragment Compute are injected at the end of the GLSL code, so in the main procedure befor the closing braces. Is this right ? In an earlier mail you mentioned that the injection happens if ALL the textfields do specify a file, is this correct ? Is there in no case, where one wants to just overwrite the Fragment color, without the need for any other ( Declare / Compute ) requirement ? Cheers, PP |