WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 03-14-2005, 07:45 AM
exhale exhale is offline
Join Date: Feb 2005
Posts: 19
viewpoint roll / pitch


when i added these instructions to
my script, it looked as if the viewpoint
is always a bit pitched / rolled.
Is there a way to resolve this?
(i copied the values of the translate
from a viewpoint.get)
The problem arises @ translate()
removing lookat() does not seem to
affect the roll / pitch

view = viz.get(viz.MAIN_VIEWPOINT)

thanks in advance,

Reply With Quote
Old 03-14-2005, 12:29 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
The lookat command will orient the viewpoint so that it is looking at the given coordinate. The Y coordinate of the viewpoint is translated to 1.82 and you have it lookat a point with a Y coordinate of 0, so the viewpoint will have to be pitched down a little. If you don't want the viewpoint to be pitched then set the Y value of the lookat point to the same Y value of the translation (in your case, 1.8234411478)
Reply With Quote
Old 03-15-2005, 12:32 AM
exhale exhale is offline
Join Date: Feb 2005
Posts: 19

allrighty i guess i didn't see that because i had been working on it for a bit too long hehe

thanks! greetz,

Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 04:57 AM.

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