View Single Post
  #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