[osg-users] Texture projection on terrain and gl_TextureMatrix[0...7]

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Mon Jan 30 05:50:40 PST 2017


Hello Ekaterinam,

> Thank you very much for your answers!
>
> Sebastian, according to your last answer, does it mean that it is also possible to project a texture on top of an object which has some other textures in it? Which unit for a texture should then I use?
>
> What I want to realize, is to mark on the terrain a specific area.
> The terrain was build with VPB and seems it has alredy some properties and textures in it.
> The way how I see it I should project a texture on it ( which will mark an area). But in all small examples I didn´t find and didn´t manage to have a texture on another texture ( that it is still possbile to see both of them).

You might consider using a visitor to check which texture units are 
already bound, but I guess if the Database is build with VPB, unit 2 is 
okay for starting. Using a shader you are less bound to which 
fixed-function texture matrix/coordinates are used.

Cheers
Sebastian

>
>
> Thank you!
>
> Cheers,
> Ekaterina
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70072#70072
>
>
>
>
>
> _______________________________________________
> 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