Re: [Maya2osg-users] Customized GLSL shaders
Status: Alpha
Brought to you by:
jtaibo
From: Javier T. <jav...@gm...> - 2011-05-26 23:21:53
|
Hi Peter, On Fri, May 27, 2011 at 12:16 AM, Peter Wrobel <pp...@cg...> wrote: > > I added the required functionality to the textfields. Nice! > 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. > I also shortened the envVars a little, and the lables of Textfields, > they did not fit into the UI, but they are still self explanatory. > > I'm also suggesting different names for the maya2osg option Flags, to > keep it all consistent. > > -glslVertDeclare instead of -additionalVertexdeclare > -glslVertCompute instead of -additionalVertexCode > > -glslFragDeclare instead of -additionalFragmentdeclare > > -glslFragCompute instead of -additionalFragmentCode 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. 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. Regards, -- Javier Taibo |