Sabastian,
osgEarth does more or less what Robert describes. We encode each vert's
height value (and unit vector) in a vertex attribute.
On Dec 6, 2013 5:43 AM, "Robert Osfield" <[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]> 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]
>> 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

Reply via email to