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

Glenn Waldron gwaldron at gmail.com
Thu Jan 10 03:56:40 PST 2019


Rodrigo,
To load a png you need to replace TMSOptions with GDALOptions.

On Mon, Jan 7, 2019, 12:21 PM Rodrigo Dias <rodrigo1406 at gmail.com wrote:

> Hi,
>
> Following this example (
> http://docs.osgearth.org/en/latest/developer/maps.html#programmatic-map-creation),
> I'm trying to use a PNG instead of a link (like the example uses a TIFF for
> elevation). However, I got the following error:
>
>
> > [osgEarth]* Error in XML document: Error document empty. (row 0, col 0)
> > [osgEarth]* [TMS] Could not find root TileMap element
> >
>
>
> What should I do instead?
>
> Thank you!
>
> Cheers,
> Rodrigo
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75402#75402
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190110/7e2df627/attachment.html>


More information about the osg-users mailing list