[osg-users] TexGenNode vs Group with TexGen attribute

2008-03-27 Thread Wojciech Lewandowski
Hi, Whats the difference in coord generation (in practice) between TexGenNode and Group with TexGen attribute. Suppose I have the same subgraph attached to either such TexGenNode or such Group with TexGen. In both cases TexGens are eye linear and use the same texture stage. I expected them to

Re: [osg-users] TexGenNode vs Group with TexGen attribute

2008-03-27 Thread Robert Osfield
Hi Wojtek, You've come across the wacky world of position OpenGL state. Normal OpenGL state like modes and textures etc are invarient of the current modelview matrix, not so for positional state these use the current modelview matrix to position themselves so its become crucial that you apply a

Re: [osg-users] TexGenNode vs Group with TexGen attribute

2008-03-27 Thread Robert Osfield
- Original Message - From: Robert Osfield [EMAIL PROTECTED] To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Thursday, March 27, 2008 10:27 AM Subject: Re: [osg-users] TexGenNode vs Group with TexGen attribute Hi Wojtek, You've come across the wacky world

Re: [osg-users] TexGenNode vs Group with TexGen attribute

2008-03-27 Thread Wojciech Lewandowski
] To: OpenSceneGraph Users osg-users@lists.openscenegraph.org Sent: Thursday, March 27, 2008 10:27 AM Subject: Re: [osg-users] TexGenNode vs Group with TexGen attribute Hi Wojtek, You've come across the wacky world of position OpenGL state. Normal OpenGL state like modes and textures etc are invarient

Re: [osg-users] TexGenNode vs Group with TexGen attribute

2008-03-27 Thread Robert Osfield
On Thu, Mar 27, 2008 at 2:01 PM, Wojciech Lewandowski [EMAIL PROTECTED] wrote: Hi Robert and Mathias, Thanks for the anwers. Let me reassume, from my perspective, to make sure I understood correctly what the problems are. 1. There is no use in TexGen as a texture state attribute with