PDA

View Full Version : Setting the viewpoint with tracking


VAmanda
10-26-2005, 01:05 PM
Hi,

I'm trying to set the viewpoint while tracking using an intersense device. When I don't turn the device on, setting the viewpoint works fine, both translating and rotating it. When I am using the device, however, when I set/reset the viewpoint, it translates to the correct place, but it never rotates. Basically, it always looks at the same place, no matter what commands I give it. Is there something I am missing? Thanks.

-Amanda

farshizzo
10-26-2005, 01:43 PM
Hi,

This is because the intersense is overriding the rotation of the viewpoint. Do you want to disable the intersense rotations, or do you want to apply an offset to the intersense rotation?

VAmanda
10-26-2005, 01:48 PM
I guess I want to apply an offset. I'd still like the intersense to do the automatic tracking, but I want it to be rotated about 145 degrees from where it is right now. What's the command for that? Thanks.

-Amanda

farshizzo
10-26-2005, 02:02 PM
Hi,

The viewpoint consists of a head orientation that sits on top of a body orientation. The intersense is modifying the head orientation. So you can apply an offset by changing the body orientation. If you wanted to offset the intersense by 145 degrees then you would do the following:view.rotate(0,1,0,145,viz.BODY_ORI)