![]() |
|
#4
|
|||
|
|||
|
Add the quad to viz.ORTHO instead of viz.SCREEN. Objects added to viz.ORTHO will maintain the same pixel size and aspect ratio, regardless of the window size. The scale and position of the object will need to be specified in pixels though.
Code:
clusterTex = viz.addTexture('resources\ClusterGraphics.png')
clusterQuad = viz.addTexQuad(parent=viz.ORTHO)
clusterQuad.texture(clusterTex)
# Set size of quad to size of texture
clusterQuad.setScale(clusterTex.getSize())
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Scaling Portions of a CAL3D Model | shivanangel | Vizard | 2 | 07-26-2012 01:17 AM |
| Scaling movement through the virtual environment | miles | Vizard | 9 | 03-24-2011 01:26 PM |
| Scaling Avatars and Setting Bone Positions | awstorer | Vizard | 0 | 11-17-2010 08:51 AM |
| collission and scaling of objects | Johannes | Vizard | 28 | 02-08-2005 11:08 AM |
| texture scaling | Johannes | Vizard | 3 | 01-25-2005 11:28 AM |