1. A concise explanation of the problem you're experiencing.
Sandcastle example "Drawing on Terrain" works in 3D, does not work in 2D, and "kinda works" in Columbus view.
In columbus the vertex points are not positioned correctly while you still can draw.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
We would like to implement some drawing that has to work in all view modes
I think you’ll have to detect when you’re in 2D mode or when there’s no terrain, and switch to:
viewer.camera.pickEllipsoid
``
instead of:
viewer.scene.pickPosition
``
That seems to get it to work correctly in 2D. It does seem to work in columbus view for me with pickPosition though. Can you elaborate on “kinda works” ?