Positioning text with ORTHO parent
I am trying to display some text on a black screen in Vizard. On single screen applications, this is very easy; I just turn the world off and display my text with the screen as the parent, i.e.:
Code:
text1 = viz.addText(txt, parent=viz.SCREEN) Code:
text1 = viz.addText(txt, parent=viz.SCREEN, parent=viz.ORTHO, scene = screen.leftWindow) |
You can specify pixel coordinates or link to a window location:
Code:
import viz |
Ah!
It was pixel coordinates. I was attempting to use the same normalised screen units that worked when I was using viz.SCREEN as the parent so this makes much more sense now. Thanks :-) |
All times are GMT -7. The time now is 01:01 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC