WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Setting the viewpoint with tracking (https://forum.worldviz.com/showthread.php?t=443)

VAmanda 10-26-2005 01:05 PM

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

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

view.rotate(0,1,0,145,viz.BODY_ORI)


All times are GMT -7. The time now is 12:25 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC