#1
|
|||
|
|||
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()
__________________
21 is only half the truth. |
Tags |
axes, icon, orientation, world |
|
|
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 |