Is there a way to limit the moving range when moving the camera using the arrow keys and the asdw key? If possible, please let me know how.
Camera range limitation
-
-
<events onviewchange="clamp(view.tx,-1000,+1000); clamp(view.tz,-1000,+1000);" />
-
Where do you add this clamp ?
I want to avoid moving too much and going trough walls but i can't seem to find a solution.
Thanks,
Guillemro -
Are you using depthmap_navigation.xml ?? Using navigator.js solves it.
-
Where do you add this clamp ?
I want to avoid moving too much and going trough walls but i can't seem to find a solution.
Thanks,
Guillemroanother xml files.
Where do you add this clamp ?
I want to avoid moving too much and going trough walls but i can't seem to find a solution.
Thanks,
Guillemro -
kangj2277,
I don't have navigator.js, Maybe that's from everpano ?
-
kangj2277,
I don't have navigator.js, Maybe that's from everpano ?
That's right. If you use depthmap_navigation.xml without purchasing everpano, you can limit the camera movement range by adding only the above events. Just add it to tour.xml or included xml :)
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!