Hi Frank, Frank Güttler wrote:
thank you for your information, setting a texture to a box is no problem, sorry i expressed it unclear. What I mean, is wrapping a texture to a box, but that the texture is repeated. I have set the WrapParameter to WRAP_S and WRAP_T with texture->setWrap (WrapParameter which, WrapMode wrap) to REPEAT.
It sounds as if the texture coordinates generated by the ShapeDrawable/Box don't match your requirements. Texture coordinates are generated for each side of the cube to show the entire texture and there is obviously more than one way to do that, especially regarding how to texture top and bottom.
The ShapeDrawable is only able to generate one version of texture coordinates so you probably have to create a Geometry with tex coords that do what you need. (On the positive side you may gain performance [but not much] since the ShapeDrawable/Box is not optimal.)
Cheers, /Ulrich _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
