Hi, I'm modelling a little room. I'm tryng to apply a texture to room walls, floor and roof. Reading the source code of osg examples, i've implemented a little class hierarchy to create the geometry shape, setting colors and normals of the quad and, finally applying the texture (how you can see in the attachments). If i run my application, texture are applied only on 3 faces and, one of this faces have 2 textures :-( What is wrong in my setTexture() method? Unfortunately i have never used C && openGL, so i don't understand weell the tutorials. In the future I would like that floor and roof have a single texture on their face, and lateral walls have the texture repeated, but now for now I'd settle for have a single texture apply for each face of the room. Can anyone help me or suggest a simple tutorial?
Thank you! Cheers, Axel ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35057#35057 Attachments: http://forum.openscenegraph.org//files/lateralwall_156.cpp http://forum.openscenegraph.org//files/wall_197.cpp http://forum.openscenegraph.org//files/wallshape_143.h _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org