You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paste this into Sandcastle, switch to 2D or CV and then pan/rotate around the map. The arrow points down by default, so the below should make it always point south. However, when you pan around the map, the arrow rotates slightly. It happens in 3D too, but is more noticeable in other modes. @bagnell thinks it's a precision issue in the shader.
I'm having an issue with alignedAxis that believe this is the same bug (or at least the demo code above shows the same problem I'm seeing), so I'm adding my demo to this issue. The alignedAxis when viewed off-axis doesn't point quite the right way.
Here's my Many-Aircraft Demo. (It's a cool demo, if we get it working maybe it could be a Sandcastle Showcase demo of VelocityVectorProperty).
When viewed top-down, it looks mostly (but not 100%) correct:
But the further off-axis you go, the worse this problem gets:
Of course if you make it all the way to 90 degrees off-axis, you get gimbal lock and there's no way it can work. But the problem gets bad long before you reach that point. It feels like it's not taking the off-axis-ness (that's a term) into account properly.
Paste this into Sandcastle, switch to 2D or CV and then pan/rotate around the map. The arrow points down by default, so the below should make it always point south. However, when you pan around the map, the arrow rotates slightly. It happens in 3D too, but is more noticeable in other modes. @bagnell thinks it's a precision issue in the shader.
The text was updated successfully, but these errors were encountered: