Triton Intersection #1859
Replies: 2 comments 1 reply
-
The idea is that, for a model like a ship, it is ideal to "clamp" it to the ocean at multiple points. If you only clamp it at the center point of the ship, it will look unnatural as it bobs straight up and down on a wave. If you clamp it at the bow and the stern, it looks better, and better still if you have 3 clamping points, say one in the bow and two on either side of the stern. So you can set you anchor point anywhere and then apply the local offset points to represent the clamping locations relative to the anchor point (in meters). At least one local point is required -- you can put it at (0,0) if you just want to clamp the center point. I hope that makes sense! (You can see the effect by altering the |
Beta Was this translation helpful? Give feedback.
-
However, if I want to remove dynamically a TritonIntersections? Because in the OsgEarth source code, in the TritonLayer.cpp I added the method that remove from the TritonLayer all the intersections:
but this causes the osgearth dll to crash. Why? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm working and integrating Triton SDK into my OSGEarth project...
Looking the example osgearth_triton, into the addBuyancyTest method:
`
isect->setAnchor(anchor);
`
where anchor is the geopoint.
Then, I'm trying to integrate the same logic into the project.
Then, with
isect->setAnchor(geopoint)
I put the geopoint of my model.The problem is that I did not understand, to method
addLocalPoint
which points I have to pass?For example, I have width and length of the model, then I calculated the geopoint for the vertices of the models, how should I convert them to insert them in the
addLocalPoint
method?Thanks
Beta Was this translation helpful? Give feedback.
All reactions