[osg-users] View::computeIntersections

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Mon Jan 2 09:32:28 PST 2017


Hi Community,

I come across some odd issue by using this. In short, the story is that I
have some sort of elevation manipulator (make hills, valleys with the mouse
on some terrain model, interactively). And I have a center of impact with
some radius, and simply by moving the mouse, I fire this intersection test,
get the world point, set it as a center and trigger the vertices within the
radius up/down. And this works correct and nice on existing model (the
lz.osg model from the OSG-Data).

I have extended the tool to generate generic terrains - heightfield +
texture. And I can trigger again the elevation vertices anywhere and I see
it nicely visually (calling vertices->getBufferObject()->dirty();). However
the intersection test fails for my new "hills" for this generated terrain
skin.

I have no clue what is going on, it seam to me that the intersector is
using some sort of cache or such ... Any hint on this?

I hope I made it clear. Obviously I can not post video for the scenario

Thanks a lot for any idea

Cheers,
Nick

-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170102/122aac4d/attachment-0002.htm>


More information about the osg-users mailing list