![]() |
#3
|
|||
|
|||
The Vizard window opens at 800 x 600 pixels and the image looks proportioned properly. When I Maximize the window the image is distorted unless I change the scaling with the code below, but then it distorts the image when the window is not maximized. I need to have the image appear undistorted regardless of window sizing. Thanks
##Add Instrument Cluster Image to Screen clusterTex = viz.addTexture('resources\ClusterGraphics.png') clusterQuad = viz.addTexQuad(viz.SCREEN) clusterQuad.texture(clusterTex) # Increase size of image clusterScale = 2.75 #Modify Aspect ratio to look correct when changed to full screen clusterAspectRatio= 1.75 # full screen 1280:800 clusterQuad.setScale(clusterScale * clusterAspectRatio, clusterScale ) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Scaling Portions of a CAL3D Model | shivanangel | Vizard | 2 | 07-26-2012 12:17 AM |
Scaling movement through the virtual environment | miles | Vizard | 9 | 03-24-2011 12:26 PM |
Scaling Avatars and Setting Bone Positions | awstorer | Vizard | 0 | 11-17-2010 07:51 AM |
collission and scaling of objects | Johannes | Vizard | 28 | 02-08-2005 10:08 AM |
texture scaling | Johannes | Vizard | 3 | 01-25-2005 10:28 AM |