[osg-users] Adding reference point

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Tue Jul 19 00:30:12 PDT 2016


Am 17.07.2016 um 14:35 schrieb Joe Kindle:
> Hi,
>
> How can I add georeference point to a model I have ?
> (I have some tiles of model. All of them are georeferenced to the real location by a single point which I have in txt file. Is there a way to 'tell' osg to add the fake location to the point ?)
If you need to offset it to a geographic position in terms of 
transforming it there you can use the CoordinateSystemNode which allos 
you to calculate the local_to_world matrix which will put your node into 
a geocentric coordinate frame based on your geographic (lat/lon) 
position. Check the CoordianateSystemNode::EllipsoidModel.
Be sure offset all your stuff with these matrix transforms and not to 
use absolute geocentric vertex coordinates, as the latter will lead to 
precision problems.
If you are talking terrain as heightmaps etc. take a look at VPB/osgEarth.

Cheers
Sebastian

>
>
>
> Thank you!
>
> Cheers,
> Joe
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68152#68152
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org





More information about the osg-users mailing list