Hello Ulrich,

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.
Nothing changed. Any ideas?

Greetings Frank.

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Ulrich Hertlein
Gesendet: Samstag, 8. Juli 2006 13:00
An: osg users
Betreff: Re: [osg-users] wrapping a texture on Box (for example)

Hello Frank,

Frank Güttler wrote:
> I would like to wrap textures on a simple Box, attached to a
ShapeDrawable.
> 
> Adjusting the appropriate StateSet doesn't seem to function. Is there 
> any trick?

No, there's no special trick. Texture coordinates are generated 
automatically so all you have to do it provide a texture in the StateSet.

What results are you getting?
Did you check 'osgshapes.cpp'? It shows a textured Box.

Cheers,
/Ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to