Re: [osg-users] Intersect Point Cloud wth precision

2016-12-23 Thread Chris Hanson
Take the results from the PolytopeIntersector, project them to screen space, measure the distance from your mouse XY to the projected point, sort the result set by this metric and take the closest. On Fri, Dec 23, 2016 at 3:22 AM, Robert Osfield wrote: > HI Bruno, > >

Re: [osg-users] looking for a terrain database building toolchain

2016-12-23 Thread Nickolai Medvedev
Hi, Terry. You should pay attention to Proland: http://proland.inrialpes.fr/index.html -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69759#69759 ___ osg-users mailing list

Re: [osg-users] Material Properties to Change the Normal Intensity

2016-12-23 Thread Sebastian Messerschmidt
Hi Rômulo, If you pass a normal map, you could either use the alpha-channel of said texture or pass another "grayscale" texture which containst the scale if you need it per pixel. In case you need to control the scale for the object you can set an uniform value per object containing the

[osg-users] Material Properties to Change the Normal Intensity

2016-12-23 Thread Rômulo Cerqueira
Hi, I have simulated a sonar sensor using normal depth map by custom 3D shader from OpenSceneGraph scene. I already implemented the Bump Mapping technique to change the normal directions. For now, I need to change the material properties (e.g. reflectance) of scene's objects to

[osg-users] [How to reset FBO attachments?]

2016-12-23 Thread Julien Valentin
Hi, For some obscures reasons I don't want to debate here, I would like to reset the attachments of a osg::FrameBufferObject. Is the any particular reason why there's no such a public Code: inline void clearAttachments(){_attachments.clear();} method present in osg/FrameBufferObject?

Re: [osg-users] Texture projection on terrain and gl_TextureMatrix[0...7]

2016-12-23 Thread Sebastian Messerschmidt
Hi Ekaterina: Hello, after checking more the forum, I have found another topic http://forum.openscenegraph.org/viewtopic.php?t=9182=jotschi with the following code, which I have slightly modified. I would be very grateful, if someone can explain to me why the basic model is black and how

Re: [osg-users] Texture projection on terrain and gl_TextureMatrix[0...7]

2016-12-23 Thread Ekaterina Fokina
Hello, after checking more the forum, I have found another topic http://forum.openscenegraph.org/viewtopic.php?t=9182=jotschi with the following code, which I have slightly modified. I would be very grateful, if someone can explain to me why the basic model is black and how to avoid it? Or

Re: [osg-users] Intersect Point Cloud wth precision

2016-12-23 Thread Robert Osfield
HI Bruno, For a point cloud you may be best to implement your own osgUtil::Intersector, the design is meant to facilitate this, LineSegmentIntersector and PolytopeIntersector are both examples of subclasses from Intersector so you could use these as inspriation. Robert On 22 December 2016 at