WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-02-2003, 09:27 AM
hotspur1 hotspur1 is offline
Member
 
Join Date: Mar 2003
Location: Cambridge, MA
Posts: 54
chaging screen resolutions

Is there a way to change screen resolution from within Vizard?

I am working in a scenario where I initially want to have higher res (probably SVGA or maybe XGA but when I call Vizard, I need to get resolution down to VGA so I can use my Kaiser HMD. I'd need to set the res back when I am done with my Vizard script.

Are there any calls or workarounds in Vizard for doing this?

Thanks
Andy
Reply With Quote
  #2  
Old 05-02-2003, 03:38 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi Andy,

There isn't any built in function to change the screen resolution within Vizard. However, if you know a little bit of windows programming, it would be very easy to create a Vizard plugin to accomplish this. Here's some windows code that will change the screen resolution to 800x600:

***************************
DEVMODE dmScreenSettings;
memset(&dmScreenSettings,0,sizeof(dmScreenSettings ));
dmScreenSettings.dmSize=sizeof(dmScreenSettings);
dmScreenSettings.dmPelsWidth = 800;
dmScreenSettings.dmPelsHeight = 600;
dmScreenSettings.dmFields=DM_PELSWIDTH|DM_PELSHEIG HT;
ChangeDisplaySettings(&dmScreenSettings,0);
***************************

The following code will return you back to the original resolution:

***************************
ChangeDisplaySettings(NULL,0);
***************************

Good luck!

-- farshid
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 06:19 PM.


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