Skip to content

Using ALTMODE_RELATIVE with 2D Lines #1855

Answered by gwaldron
miles-tbe asked this question in Support Q&A
Discussion options

You must be logged in to vote

Hello Miles.
The GeoTransform processes an ALTMODE_RELATIVE by sampling the terrain. In order to do that it just find a pointer to the terrain engine, which happens automatically during the next UPDATE traversal. If you don't want to wait, you can call GeoTransform::setTerrain to do it manually; then calling setPosition will have immediate effect. Otherwise there may be a one-frame delay. Maybe that's what you are seeing.

I must admit that I fail to grok your explanation of removing nodes, drawing them, re-inserting, and stopping updates. So I cannot comment on whether this setup is exacerbating the problem.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@miles-tbe
Comment options

Answer selected by miles-tbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support questions
2 participants