x3dom / component-editor

A simple 3D component editor, based on X3DOM
Other
79 stars 31 forks source link

3D Navigation Cube - how to synchronize interaction on the cube back to the main scene? #2

Open mlimper opened 9 years ago

mlimper commented 9 years ago

This question has been asked offline by users.

It seems the main problem is that the center of rotation of the main scene is not taken into account, since the small scene showing the navigation cube always has a center of rotation at the origin.

One could therefore try the following, in order to rotate around the main scene's center:

This is of course without any guarantee for correctness - I didn't try ;-) Just a proposal how to start.

dimitarsi commented 9 years ago

I just created a pull request. I tried something similar to what you have suggested but i rather used the viewpoint to set the orientation and the position. Still having some issues when panning in Examine mode. Also changing the orthoview causes some async behavior. Probably because the listeners are stoped when there is an animation or it could because of the different viewpoint types.