I'm using OSG v. 1.2
I'm following http://www.openscenegraph.org/index.php?page=UserGuides.Osgdem (exept gdaladdo -r average, which is not working for me). All is somewhat well (maybe, too slow database generation), but texture and mesh are misaligned (in fact, one of them is flipped around Y axis). Data files are OK. Is there bug in DataSet.cpp?
Steps to reproduce:
1) Download http://www-static.cc.gatech.edu/data_files/large_models/ps/ps_texture_1k.png and http://www-static.cc.gatech.edu/data_files/large_models/ps/ps_height_1k.png
Verify that files are matching.
2)
$ gdal_translate ps_height_1k.png ps_height_1k.tif
$ gdal_translate ps_texture_1k.png ps_texture_1k.tif
3)
$ osgdem -t ps_texture_1k.tif -d ps_height_1k.tif -l 3 -v 0.001 -o puget.ive -a puget.osga
4)
$ osgviewer puget.osga
Playing with t & l keys, it's clearly visible that mapping does not follows mesh.
---
Professional hosting for everyone - http://www.host.ru
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to