View Single Post
Old 08-25-2008, 05:51 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
If you specify a window object as the scene of a text, then you need to specify viz.ORTHO as the parent, not viz.SCREEN. Also, when adding object to the viz.ORTHO layer, the position units are in pixels, not normalized coordinates. Here is sample code:
self.anweisung = viz.addText("hello",viz.ORTHO,self.CenterWindow,fontSize=32)
self.anweisung.translate(50,50) #50 pixel from bottom left corner of window
Reply With Quote