Send this page




Acrobat 3D Corner

How do I limit the rotation of a model in a 3D PDF, so that it can only pivot on certain axis?

Dear 3D expert

I am a GIS researcher and student at Haskell Indian Nations University. We are in the process of creating a 3D model of the campus using ArcScene and Sketchup. Our plan is to create a PDF using Acrobat 3D. I've downloaded the trial version and I am seeing if it is worth purchasing. My question is how do I limit the rotation of a model so that it can only pivot on certain axis? I have seen several example PDF's with this capability and I am wondering how they did it? I am worried that novice users will have trouble maintaining the proper orientation for viewing the buildings on campus.
— Joshua, Lawrence, Kansas

Answer

Using a 3D Javascript you can limit the orientation and rotation of the the camera to control your models. Our 3D Javascript guru has written up two scripts you can use as examples.

Constrain Camera JavaScript
The Constrain Camera javascript is a 3D javascript to prevent the camera from tilting to the side (positive Z-axis is always up). It also scales up or down the "Walk" tool by a settable factor.
ScriptDownload [JS: 5 KB]  

Camera Rotate JavaScript
The Camera Rotate javascript an advanced script that replaces the default camera rotation functionality with a version that makes the model feel like it has some mass.
ScriptDownload [JS: 16 KB]  




<< Back to Ask an Expert main menu.


AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in