#1
|
|||
|
|||
Setting the viewpoint with tracking
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 |
#2
|
|||
|
|||
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? |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
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: Code:
view.rotate(0,1,0,145,viz.BODY_ORI) |
|
|