You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, November 6th 2019, 2:40am

Camera range limitation

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.

2

Friday, November 8th 2019, 4:17pm

<events onviewchange="clamp(view.tx,-1000,+1000); clamp(view.tz,-1000,+1000);" />

*thumbsup*

3

Tuesday, May 12th 2020, 6:16pm

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

4

Wednesday, May 13th 2020, 10:15am

Are you using depthmap_navigation.xml ?? Using navigator.js solves it.

5

Wednesday, May 13th 2020, 11:32am

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
another 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

6

Thursday, May 14th 2020, 3:47pm

kangj2277,

I don't have navigator.js, Maybe that's from everpano ?

7

Friday, May 15th 2020, 9:55am

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 :)