Re: [Maya2osg-users] Customized GLSL shaders
Status: Alpha
Brought to you by:
jtaibo
From: Javier T. <jav...@gm...> - 2011-05-24 14:38:04
|
Hi, On Tue, May 24, 2011 at 9:06 AM, Peter Wrobel <pp...@cg...> wrote: >> There is an UI option to enable the custom code feature and four >> corresponding to the four code blocks above mentioned. And here, >> Peter, I'm going to ask for your skills on Maya UI creation. I created >> 5 new optionVars and the UI for them (basically copy& paste of your >> code :). Please, review it when you have time, just in case I have >> done some nonsens. I also put "Browse" buttons after the text boxes, >> but I don't know what is the most adequate way to make it work and the >> script is growing dangerously, so I don't want to complicate it >> further. Can you take a look at it, please? It would be nice also to >> enable/disable the four text box / browse buttons depending on the >> checkbox "Custom GLSL code". > > Working on that. Would be nice, if you could provide me some test scene > and shader. The test shaders I am using do not work in a standard OSG viewer, unless you load it in the proper 3D engine you won't see anything. But for testing purposes any scene can do. Just add a fragment code like this: gl_FragData[0] = vec4(0.0, 1.0, 0.0, 1.0); And you'll test if it is working. Anyway, if you modify the UI let me know and I will test it also. > You're right with the growing, thing should split it up somehow, but > then there are lot of local functions which are needed almost > everywhere. Will look into this. I am OK with it, I let you its organization, I just didn't want to add more complexity nor to change the way to organize things. It is on your hands. > I would require motionvectors too, could you tell me how you are > approaching this within one shader ? > Thought one needs the same mesh from two different time stamps to get > the position differences, but have not figured out the most efficient > way store position mesh mesh data in a additional array. I tried to get > Transfor Feedback to work, but I don't understand osgs extension > mechanism well enough. So, how do you do it ? It is explained in the paper I am presenting next month in Vancouver. I'll send you the information. Regards, -- Javier Taibo |