WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to make an image cover the view? (https://forum.worldviz.com/showthread.php?t=1447)

aznan 04-16-2008 08:49 AM

How to make an image cover the view?
 
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:
Code:

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!


All times are GMT -7. The time now is 09:45 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC