PDA

View Full Version : How to make an image cover the view?


aznan
04-16-2008, 08:49 AM
Hi!
I just recently got my hands on Vizard, and it seems to be a very easy program to work with. I'm sure this really simple, but I can't find an easy way to cover an entire view with a 2D image. Have I overlooked something?
Thanks!

farshizzo
04-16-2008, 11:00 AM
Here is some sample code that will fill the entire screen with a texture:tex = viz.add('ball.jpg')
quad = viz.addTexQuad(parent=viz.SCREEN,scale=[12.8,10.4,0],pos=(0.5,0.5,0))
quad.texture(tex)

aznan
04-16-2008, 11:29 AM
Oh, OK. I was expecting some GUI stuff, rather than making a box block the view. Still, it works like a charm. Thanks!