Vizard automatically scaling image to an aspect ratio of 1:1
I want to present pictures with an aspect ratio different from 1:1 (meaning a square picture) as textures in Vizard. When I apply a texture to a surface with the same aspect ratio as the picture, Vizard still scales the image to a 1:1 aspect ratio. Because I'm working with a lot of pictures, the scaling of all the images takes time that I want to decrease. Is there any way to apply pictures without Vizard scaling them to an aspect ratio of 1:1?
|
And here some code showing the 'problem':
Code:
import viz |
OpenGL limits the texture resolution to always be a power of two (i.e. 16, 32, 64, 128, etc.). However this is not restricted to aspect ratio, so you can have 512x256 rectangular textures as well.
Actually I read that in newer versions of OpenGL, non power of two (NPOT) textures are supported, but I know too little about that to come up with a possible solution for you. My solution would be to find a Photoshop script that automatically places and fits every image in a 1024x1024 texture, and then edit the texture coordinates in Vizard to get the result you want. |
Hi Erikvdb,
Thanks for your suggestion! I did not manage to get Vizard working with non power of two textures, and I did not find/create a photoshop script to solve the issue like that. Ultimately, I just let Vizard load the program for 10 seconds. No big deal at the moment. If someone has a simple solution, then I'm all eyes/ears! |
All times are GMT -7. The time now is 02:05 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC