[osg-users] OSG example missing texture

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Tue Feb 9 13:51:36 PST 2016


Hi Ge,

The cube-mapped torus won't work with the shaders from the composition 
... It uses TexGen which is a fixed function feature.
In order to generate cube-map texture coordinates you need to adapt the 
shader. (use the normal to to perform a lookup into the cubemap sampler)
E.g. the shader-composition example is suited for basic texturing only.

Cheers
Sebastian
> Hi Sebastian,
>
> Thanks for checking out my post. Your input gives me a reference point that confirms my environment might be the problem.
>
> I was loading cube_mapped_torus.osgt from OpenSceneGraph-Data-3.4.0.zip. Please see attached screen shot.
>
> I'll follow your advice to disable composition and see what happens.
>
> Cheers,
> Ge
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66248#66248
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/2016_02_09_140007_800x600_scrot_156.png
>
>
> _______________________________________________
> 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