"David Cofer" writes:

[...]

> I also tested a texture mapping using a loaded .obj file. It has the
> explicit u,v texture coordinates defined in the file, but it still
> does not work. I have to be missing something here.

Yes. There is no need to create an StateSet here. The problem is that
your .mtl is incomplete. It doesn't mention what file are you using as
texture. Just add this line at the end of Thorax.mtl:

map_Kd GrasshopperTexture.bmp

You can also use just the osgviewer program in order to test your models
like this:

osgviewer Thorax.obj

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

Reply via email to