Adjusting Rotation of Objects/Coordinates in Uniview

I've run into this problem more than once:



I know there's the speck rotation api for adjusting the rotation of speck datasets now, but what about coordinate systems and 3D objects? I've killed a lot of hours adjusting the rotation of 3D objects in Uniview, trying to get them right, and it's really hard and obnoxious and involves a lot of restarts!

Intermediate

Is this article helpful for you?

Under review
Hi Dan,

I will get an engineer to respond to this for you.
+1
Hi Dan,

We provide a basic web-based interface for adjusting the position and rotation of coordinate systems in Uniview. In think this could be very helpful for quickly determining the right numbers for your modules. To access it, start Uniview, and then browse to:

http://localhost:20080/debug/sceneadjuster/

Now, start by entering the name of the scene where your 3d model is placed. Obviously you'll need a separate scene for each 3d model or things will become tricky. Next, select the checkbox for rotation and use the sliders to interactively adjust the orientation of the model. Once you're happy, take a look directly below the sliders and you'll see something like:
my3dmodel_scene.debugrot hpr 0 350.781 351.408
You can now take these numbers and put them into your .mod file where your scene is defined. So, the above example would result in the following section in the mod file:
rotation
{
   static hpr 0 350.781 351.408
}
In the same fashion, you can interactively adjust the scene (and consequently object) position by checking that box and dragging the corresponding sliders. The resulting numbers would go into a position block in your mod file, like this:
position
{
    static 0 50000 10000
}

Good luck!

/ Per