WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-06-2015, 08:54 AM
fordprefect fordprefect is offline
Member
 
Join Date: Oct 2012
Location: Vienna, Austria, Europe
Posts: 39
Question Axes Indicator on Screen

Hi @ll,

I would like to indicate the worlds orientation by the 3D axes object, in the lower left corner of the screen. I manage to get the axes and somehow point right, but the blue axis is not there at all; seems that an object parented by viz.SCREEN will be 2D only. Another issue is that when viewed from the opposite direction, there is no light on the axes so they go black.

Someone already needed this and can hint what I'm missing, or guide to a working code?

Code:
import viz
import vizshape

dojo = viz.addChild('dojo.osgb')
trueAxes = vizshape.addAxes()

screenAxes = vizshape.addAxes(scale=[0.09]*3,
		pos=[0.1, 0.1, 0.5], parent=viz.SCREEN)
viz.link(viz.MainView, screenAxes, mask=viz.LINK_ORI)

viz.MainView.setPosition(0.5, 1, -3)
viz.go()
Regards, Walter
Attached Thumbnails
Click image for larger version

Name:	vizard-20150806-155830415.png
Views:	992
Size:	211.6 KB
ID:	719  
__________________
21 is only half the truth.
Reply With Quote
 

Tags
axes, icon, orientation, world

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
Vizard exits full screen after 30 seconds derek Vizard 3 08-21-2014 12:02 PM
Displaying screen text in 3D (Oculus Rift) pjayaram Vizard 2 05-27-2014 08:06 PM
Screen Size and Scaling javadi Vizard 2 04-02-2013 05:56 PM
Attach a TexQuad to pit.osgb screen Ducky Vizard 1 01-17-2013 02:57 PM
position of html-file on screen active_world Vizard 1 05-16-2008 07:24 PM


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


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