WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1  
Old 04-28-2006, 09:19 AM
dig dig is offline
Member
 
Join Date: Apr 2006
Posts: 15
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
Reply With Quote
  #2  
Old 04-28-2006, 11:47 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Are you adding the quad to the screen or the world?
Reply With Quote
  #3  
Old 04-29-2006, 01:33 AM
dig dig is offline
Member
 
Join Date: Apr 2006
Posts: 15
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 )
Reply With Quote
  #4  
Old 05-01-2006, 06:04 AM
dig dig is offline
Member
 
Join Date: Apr 2006
Posts: 15
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
Reply With Quote
  #5  
Old 05-01-2006, 03:21 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:17 PM.


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