[osg-users] View::computeIntersections

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Mon Jan 2 10:03:24 PST 2017


ehm ... dirtyBound(); fixed it .. sorry for the noise ... ;-)

Happy New Year

On Mon, Jan 2, 2017 at 6:32 PM, Trajce Nikolov NICK <
trajce.nikolov.nick at gmail.com> wrote:

> 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
>



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


More information about the osg-users mailing list