WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   quads and resizing (https://forum.worldviz.com/showthread.php?t=564)

dig 04-28-2006 09:19 AM

quads and resizing
 
Hey guys,
I've been trying to use a quad in order to play an .avi file in Vizard. Somehow, the movie aspect ratio is changed. Looks ok when played in Media Player but it gets distorted (the width is compressed) when played in Vizard. (I could resize the Vizard window until the heigth/width ratio looks decend but I'd rather it looked good in full screen). What am I doing wrong here??
Cheers,
marios

farshizzo 04-28-2006 11:47 AM

Hi,

Are you adding the quad to the screen or the world?

dig 04-29-2006 01:33 AM

I added it to the world....does adding it to the screen make a difference? (Perhpaps I should try it instead of asking the question :) )

dig 05-01-2006 06:04 AM

Well, I put in on the screen but still it doesn't look ok. It gives me "NOTIFY: Video texture dimensions are not power of two, using TEX_RECT instead" message as well.
m

farshizzo 05-01-2006 03:21 PM

Hi,

The aspect ratio of the movie will be equal the aspect ratio of the surface you apply it to. So you need to scale the quad to the correct aspect ratio of the movie.Example:
Code:

quad.scale(1.7,1,1)
Also, the message you are receiving means that the video dimensions are not a power of two. You can ignore the message.


All times are GMT -7. The time now is 04:26 PM.

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