View Single Post
  #4  
Old 05-07-2008, 09:47 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can add a fullscreen quad to the background scene using the following code:
Code:
#Add background window
texture = viz.add('ball.jpg')
back_scene = viz.addScene()
quad = viz.addTexQuad(viz.SCREEN,scene=back_scene,scale=(12.8,10.24,0),pos=(0.5,0.5,0))
quad.texture(texture)
background = viz.addWindow(pos=[0,1],size=[1,1])
background.setView(view=viz.addView(scene=back_scene))
background.drawOrder(-10)
Reply With Quote