Am 06.12.2013 13:14, schrieb Glenn Waldron:
Sabastian,
osgEarth does more or less what Robert describes. We encode each
vert's height value (and unit vector) in a vertex attribute.
Thank you Glenn. Are the vertices relative to the Ellipsoid?
Or can you point me to the sources where I can check it myself?
cheers
Sebastian
On Dec 6, 2013 5:43 AM, "Robert Osfield" <[email protected]
<mailto:[email protected]>> wrote:
Hi Sebastian,
Personally I'd subclass from osgTerrain::GeometryTechnique and
pass a FloatArray as a vertex attrib array or tex coord array and
store the heights there.
Robert.
On 4 December 2013 13:23, Sebastian Messerschmidt
<[email protected]
<mailto:[email protected]>> wrote:
Hi,
I have a osgDEM produced geocentric database.
I looked into the geometryTechnique implementation to see if I
somehow can access the height of the vertices above the
ellipsoid in the vertex shader.
Unfortunately I don't have any idea how to calculate this from
the give matrices. Is this information somehow available at all?
My plan is to overwrite some of the functionality in the
geometryTechnique to pass the appropriate matrices to the shader.
Anyone having an idea?
_______________________________________________
osg-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org