[osg-users] problem with cessna texturing
Vadim Balashoff
vvb.backup at rambler.ru
Thu Oct 29 01:56:16 PDT 2015
Thanks a lot! After adding following lines (from some example I think)
Code:
osg::ref_ptr<osg::TexGen> texGen (new osg::TexGen());
texGen->setPlane(osg::TexGen::S, osg::Plane(0.75, 0.0, 0.0, 0.5));
texGen->setPlane(osg::TexGen::T, osg::Plane(0.0, 0.35, 0.0, 0.3));
towerStateSet->setTextureAttributeAndModes(0, texGen);
texture is moving accordingly to model moving.
Ok, next phase. How UVmap can be add to osg?
I can do UV map in blender. And then what? Is it needed to be implemented in osgt file with model? Or what?
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65482#65482
More information about the osg-users
mailing list