Hi Ethan,

the triangle mesh of the terrain will represent the resolution of the DEM, not 
of the texture. Usualy texture resolution is higher than the DEM ones, 
therefore you would reduce your image resolution if you don't use textures but 
try to assign each vertex a color.

But nevertheless you can access the color in the texture:
Perform an intersection and you will get the vertex indices of the primitive 
you intersect. Additionally you'll get the ratio of the intersection between 
the vertices, then you can interpolate the coordinates of the 3 vertices and 
you have the texture coordiante you need to lookup the color in the texture.


Cheers,
Torben

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43885#43885





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to