[osg-users] Texture units and TexGen

Bradford, Chase CHASE.BRADFORD at saic.com
Tue Aug 7 10:06:14 PDT 2007


Can TexGens and TexGenNodes reuse texture units?  My scene graph is
setup with many distinct elements that need individual texture
coordinate generation, but if I try to reuse a texture unit, texgen
fails.

 

My setup is as follows:

 

root->{

   cube_group->{texgennode, geode},

   sphere_group->{texgennode, geode},

   pyramid_group->{texgennode, geode}

}

 

I'd like each texgen node to only affect texture generation for its
sibling geode, but they seem to disregard their position in the scene
graph tree.  From what I can deduce from the CullVisitor, the
PositionalStateContainer treats texgens like light sources, so they can
be positioned in the scene easier, and I can't override that behavior.

 

Chase

   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070807/86d62d7f/attachment.htm 


More information about the osg-users mailing list