WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 05-17-2007, 10:49 PM
TunTun TunTun is offline
Member
 
Join Date: May 2007
Posts: 16
Change Resolution

Hello,

Is there any parameter or function that can change the resolution of the output graphics? Say sometimes I need 1024x768, sometimes I need 512x389.

Thanks.
Reply With Quote
  #2  
Old 05-18-2007, 11:11 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Are referring to the monitor resolution or the size of the graphics window? Either way, have a look at the following commands in the documentation:
Code:
viz.displaymode()
viz.windowsize()
Reply With Quote
  #3  
Old 05-18-2007, 12:42 PM
TunTun TunTun is offline
Member
 
Join Date: May 2007
Posts: 16
Thanks. I'll try viz.displaymode().

BTW, what's the width/height of viz.windowsize(width, height)? If they are the number of pixels, then what's the difference between these two commands?
Reply With Quote
  #4  
Old 05-18-2007, 12:47 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
viz.displaymode() changes the resolution of your monitor

viz.windowsize() changes the size of the Vizard graphics window
Reply With Quote
  #5  
Old 06-12-2007, 02:56 PM
TunTun TunTun is offline
Member
 
Join Date: May 2007
Posts: 16
Hi,

Our HMD is nVisor SX which can display a 1280x1024 image. I tried to use viz.displaymode(640,512) at the beginning of my program to get half resolution. But I get the following message and nothing changed.
** ERROR: Failed to set requested display mode

Did I miss something?

Thanks,
Reply With Quote
  #6  
Old 06-12-2007, 03:07 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Your monitor does not support that resolution. Why do you want to set the resolution to half?
Reply With Quote
  #7  
Old 06-12-2007, 04:10 PM
TunTun TunTun is offline
Member
 
Join Date: May 2007
Posts: 16
Hi,

I also tried to set the resolution of my monitor, but then I can see nothing but color stripe in my HMD.

Thanks,
Reply With Quote
Reply


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 11:07 PM.


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