View Single Post
  #1  
Old 11-06-2015, 09:31 AM
chris2307 chris2307 is offline
Member
 
Join Date: Nov 2013
Posts: 36
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)
My problem is when I create a three-screen application. To do so, I am creating three viz.WINDOW objects and offsetting the left and right windows by +/- 60-deg. I have to set the parent to viz.ORTHO if I wish to see text on these windows. However, they are being positioned to the default location of the bottom left of the specified window which is not where I want to see them.

Code:
text1 = viz.addText(txt, parent=viz.SCREEN, parent=viz.ORTHO, scene = screen.leftWindow)
The setPosition() function no longer works so I'm not really sure what I need to be doing in order to correctly position the text relative to the window.
Reply With Quote