Hi,

I'm using the puget textures from the osgdem example 
(http://www.cc.gatech.edu/projects/large_models/ps.html) to create a terrain. 
But now my colormap is flipped along the Y-Axis.
At first I thought that it would not be a problem and that I could just 
transform the texturecoordinates and that it is an "OpenGL uses different 
coordinate system" related problem. But things are not that easy:
osgdem creates multiple LOD Levels, with an own texture for each tile. Now when 
the upper right tile gets rendered, it shows the lower right of the terrain in 
the colormap, the mesh itself is correct (or the terrain is mirrored, which 
doesn't make a difference, they just don't fit).
When I flip the texturcoordinates, the upper right tile tile still shows the 
lower right part of the terrain, but now flipped around the Y-Axis. So the tile 
itself has a wrong texture and that is nothing what I could repair with 
texturecoordinate transformation.

I tried some parameters in osgdem like a negative Y resolution (-yy -10) but 
that just gave me strange and even more wrong results. So how do I fix that? 
The png files seam to match, and theoretically I could edit them, but what if I 
want to build other terrains (I have some very big files that none of my image 
manipulation programs can open...)



Thank you!

Cheers,
Jonathan

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to