WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-13-2014, 08:29 PM
Qiliang He Qiliang He is offline
Member
 
Join Date: Mar 2014
Posts: 24
A compass in vizard

I want to create a compass like pointer staying in the upper-left corner and always pointing to the north. I set the orientation of the pointer using Compass.setEuler([0,0,0]). It works fine, but then when I make the compass to stand upright using Compass.setEuler([0,90,0]), the compass just doesn't point to other orientations. What is wrong and how can I solve this?

This is my first time I ask question in the worldviz community, forgive me if I'm not addressing the question properly.
Reply With Quote
  #2  
Old 03-14-2014, 05:40 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
First of all: welcome to the forum!

Could you explain your problem in more detail? For instance, is the compass 2D or 3D? Do you want to animate the compass so that when you move the mainview, the compass points to the north relative to the current orientation? If so, you need to update the orientation of the compass all the time, based on the current orientation. If you can explain what you are trying to accomplish more clearly, we can help you better.

It would also be helpful if you could post some sample code that everyone can run without any extra models, so you could replace the compass model that you use with the arrow.wrl model that is included in the Vizard installation. Also wrap your code in code tags (select the text in your post that is code and click the hashdeck sign). It will make your code much more readable for all of us.
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
Realistic Light and Shadows Using Vizard and 3DS Max jde Vizard 4 07-13-2012 10:58 AM
Vizard 4 Beta Testing farshizzo Announcements 0 02-01-2011 10:46 AM
Vizard 4 Beta Testing farshizzo Vizard 0 02-01-2011 10:46 AM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 11:13 AM
Vizard tech tip: Text to Speech Jeff Vizard 1 01-15-2009 09:39 PM


All times are GMT -7. The time now is 11:54 AM.


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