PDA

View Full Version : quads and resizing


dig
04-28-2006, 09:19 AM
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: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.