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