Thread: GUI Image?
View Single Post
  #2  
Old 04-19-2007, 01:20 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

If you just want to display a 2D image on screen then you can create a texture quad that takes up the entire window. Here is some sample code:
Code:
tex = viz.add('ball.jpg',wrap=viz.CLAMP_TO_EDGE)
quad = viz.addTexQuad(parent=viz.SCREEN,scale=[12.8,10.24,1],pos=[0.5,0.5,0],texture=tex)
Reply With Quote