[osg-users] problem with cessna texturing

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Thu Oct 29 01:59:06 PDT 2015


Hi Vadim,
> 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?
Exporting as obj might do the trick. There is also an osg-exporter for 
blender.


Cheers
Sebastian

> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=65482#65482
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




More information about the osg-users mailing list