WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-15-2010, 06:31 PM
srwing srwing is offline
Member
 
Join Date: Dec 2009
Posts: 2
Hi
This is shawn ...
Sorry about the delay.

There is some sample code attached. It first rotates the MainView, pitch, over various angles between -175 and +175. Then it rotates a pointer object over the same range.

Using something like viz.MainView.setEuler(([0, pitchs[i], 0]),viz.REL_LOCAL) produced the same results.

The rotations over 90 degrees, under -90 degrees, pitch produce something like the following:

MainView pitch= -175 i= 0
MainView.getEuler = [-180.0, -5.0000009536743164, 180.0]
mpointer.getEuler = [2.7940182008023839e-006, 5.0000009536743164, 180.0]

MainView pitch= -150 i= 1
MainView.getEuler = [-180.0, -30.0, 180.0]
mpointer.getEuler = [3.0043981951166643e-006, 30.0, 180.0]

MainView pitch= -100 i= 2
MainView.getEuler = [-180.0, -80.0, 180.0]
mpointer.getEuler = [9.4240658654598519e-006, 80.0, -180.0]

...

mpointer.pitch= 100 i= 10
MainView.getEuler = [0.0, 0.0, 0.0]
mpointer.getEuler = [180.0, 80.0, 180.0]

mpointer.pitch= 150 i= 11
MainView.getEuler = [0.0, 0.0, 0.0]
mpointer.getEuler = [180.0, 30.0, 180.0]

mpointer.pitch= 175 i= 12
MainView.getEuler = [0.0, 0.0, 0.0]
mpointer.getEuler = [180.0, 5.0000009536743164, 180.0]

Last edited by srwing; 04-15-2010 at 06:36 PM.
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
right-hand to left-hand coordinate System for a cave setup Andy Vizard 1 09-16-2009 11:17 AM
How to make an object fixed in viewpoint coordinate system? Xianshi Xie Vizard 1 06-22-2009 12:31 PM
A point in avatar's coordinate system omidbrb Vizard 2 05-15-2009 06:39 AM
Different coordinate system for plug-in and vizard API? reedev Plug-in development 4 12-10-2008 09:43 AM


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


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