[osg-users] [3rdparty] Use PNG as texture for terrain in osgEarth

Rodrigo Dias rodrigo1406 at gmail.com
Mon Jan 7 16:58:46 PST 2019


Well, I managed to create a georeferenced texture file in TIFF format. However, since it's about twice the size of the PNG (even compacted with LZW), it would be great if PNGs could be used instead.

I also managed to make the map projected (flat), by adding the following code in the beginning:


Code:
	MapOptions mapOpt;
	mapOpt.coordSysType() = MapOptions::CSTYPE_PROJECTED;
	mapOpt.profile() = ProfileOptions("plate-carre");
	osg::ref_ptr<Map> map = new Map(mapOpt);




However, I just can't see the elevation. Is there any "exaggeration" parameter, such as in Google Earth? I couldn't find any.

Thank you!

Cheers,
Rodrigo[/img]

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







More information about the osg-users mailing list