Re: [osg-users] Matrix uniform param update question

2007-05-31 Thread Paul Speed
om: [EMAIL PROTECTED] on behalf of Vladimir Shabanov Sent: Fri 5/25/2007 4:25 PM To: osg users Subject: Re: [osg-users] Matrix uniform param update question 2007/5/25, Poirier, Guillaume <[EMAIL PROTECTED]>: Hello, I have a glsl shader with a mat4 uniform parameter. At each frame I need

Re: [osg-users] Matrix uniform param update question

2007-05-28 Thread Vladimir Shabanov
2007/5/28, Poirier, Guillaume <[EMAIL PROTECTED]>: Hi Vlad, I don't think I could do that since I want to convert a vector from world to object space in my shader. I believe I would need to remove the view component if I wanted to do that. I saw that osgNV has various pickers that track progra

RE: [osg-users] Matrix uniform param update question

2007-05-28 Thread Poirier, Guillaume
r Shabanov Sent: Fri 5/25/2007 4:25 PM To: osg users Subject: Re: [osg-users] Matrix uniform param update question 2007/5/25, Poirier, Guillaume <[EMAIL PROTECTED]>: > Hello, > > I have a glsl shader with a mat4 uniform parameter. At each frame I need > to pass it the inverse

Re: [osg-users] Matrix uniform param update question

2007-05-25 Thread Vladimir Shabanov
2007/5/25, Poirier, Guillaume <[EMAIL PROTECTED]>: Hello, I have a glsl shader with a mat4 uniform parameter. At each frame I need to pass it the inverse of the model matrix (I think, since I want to use it to convert from world to object space). What is the best way to achieve this ? The os