melowntech / vts-browser-js

JavaScript WebGL 3D map rendering engine
BSD 2-Clause "Simplified" License
218 stars 42 forks source link

'roll' componenet of position does not have effect #211

Open kkozlik opened 3 years ago

kkozlik commented 3 years ago

I am not sure whether I am doing something wrong, but I can't change the roll component of orientation while using autopilot.

For me the following calls have same outcome however I would expect different roll with the second call:

browser.autopilot.flyTo([ "obj", 13.392177745684078, 49.10441293186297, "fix", 1250, 22, -30, 0, 400, 90 ]);
browser.autopilot.flyTo([ "obj", 13.392177745684078, 49.10441293186297, "fix", 1250, 22, -30, 30, 400, 90 ]);

Is it possible to change roll ?

davidmtech commented 3 years ago

Roll component is not supported in autopilot. Interpolation became complex with roll component. Quaternions would have to be used in some cases.

But you can try luck and modify source code: https://github.com/melowntech/vts-browser-js/blob/master/src/core/map/trajectory.js

kkozlik commented 3 years ago

Thanks for the hint. I will take a look to source.

Btw. is the roll supported somewhere? Can I somehow get a view with roll component even without autopilot?