osg::Image* img = osgDB::readImageFile("name");
unsigned char pixel = img->data( x, y );

But as Pierre says, OSG offers a lot of support for rendering Height field
data out of the box. It's worth digging around before reinventing the wheel
as OSG has usually got there first.

Regards,

Kim.



2009/7/23 Markus Husseini <[email protected]>

> Thanks a lot again for the answers.
>
> @Kim Bale: Your solution voice good. But i dont understand how i can get
> the pixel height infomation from an image obeject. Can You give me a example
> code, it would be very helpfull. If i have the Pixelinformation i can write
> my own Terrainclass too.
>
> @Pierre BOURDIN: Thanks i will check it out too.
>
>
> Greez Markus
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=15272#15272
>
>
>
>
>
> _______________________________________________
> 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