"David Cofer" writes:

> I added the recommended line to the mtl file and it did apply the texture to 
> the object this time, but it was still incorrect compared to what is seen in 
> directx. See picture. I tried a couple of the options for the map_Kd command 
> and none helped. 

I think the difference lies in the coordinate system for the texture
space. If you flip your bmp upside down, you will get the correct
result. I don't know if it's a Directx or bmp thing. Try to convert your
file to other format, e.g. jpg to see if it still happens.

> Also, this will not help me in the long run becuase my final application has 
> the option of allowing the user to specify the image file they want to use as 
> a texture for their objects. This means I will need to re-apply the texture 
> at runtime, and not load it in from the mtl file. I believe that requires the 
> use of the stateset objects, which are not working correclty for me. 

I suspect that the obj plugin *might* be discarding the uv info if it
not finds any texture image in the material definition. You can check
the source of the obj plugin to be sure.

--
Alberto
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to