Hi Julia,

On Wed, Apr 8, 2009 at 2:35 PM, Julia Guo <mrvoltem...@gmail.com> wrote:

> hi Robert,
>
> so if all textures are disabled initially is there any difference between
> textures 0 and 1? Because the exact same code works for texture 0 but not
> texture 1.
> I saw in the archives a snippet (
> http://groups.google.com/group/osg-users/browse_thread/thread/616a24590cce9c3)
> where the texture coordinates were set manually like this:
>
> Code:
> geometry->setTexCoordArray(1, geometry->getTexCoordArray(0));
>
>
> I cant do this because my drawable does not inherit from osg::Geometry, but
> is something manual like this needed for non-zero textures?


You will need texture coordinates for all the texture unit you use.   You'll
either have to move to using a different technique or using osg::Geometry.

> Most likely the problems you are seeing are related to not setting up the
> scene graph appropriately
>
> What kind of settings can effect whether a texture is displayed?


Well not provide texture coordinates correctly is one such example.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to