Hi Mikhail, while it might be overkill ( depends on details I cannot figure from your description ) you might want to try Point Cloud Library, see also http://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc13/14/Thesis/SurfaceReconstructionThesis.pdf
Regards Sergey On Thu, Jul 24, 2014 at 2:26 PM, Jordi Torres <[email protected]> wrote: > Hi Mikhail, > > In my opinion the easiest way is to use a displacement mapping shader. In > the vertex shader you use the texture values to alter vertex positions. I > think there is an example in the OSG Cookbook from Wang Rui. > > Hope it helps. > > > 2014-07-24 12:21 GMT+02:00 Mikhail Matrosov <[email protected]>: > > Hello, >> >> I have a depth image, i.e. grayscale floating point image, where each >> pixel represents a depth value in this point of a scene. What is the >> easiest way to create a 3D model of the scene? >> >> I know I can simply loop over all pixels and create a pair of triangles >> for each pixel. But I feel like it has to be more elegant solution. >> >> Cheers, >> Mikhail >> >> ------------------ >> Read this topic online here: >> http://forum.openscenegraph.org/viewtopic.php?p=60427#60427 >> >> >> >> >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> > > > > -- > Jordi Torres > > > > _______________________________________________ > 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

