Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / DBP setting Widescreen aspect ratio

Author
Message
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 1st Jan 2011 06:59
Hi,
I've been trying to set my programs so that they dont stretch out on my widescreen monitor however nothing i try seems to work
ive tried set display mode but it wont accept any depth value i give it.
how do you set a program to run in widescreen?
thanks

Sometimes I like to use words out of contents
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st Jan 2011 13:15
Here's a set of commands that will set your window to full wide-screen.


You should execute them before you load any graphics, objects, sounds etc.

Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 1st Jan 2011 20:24
If you use 3D objects or sprites, you may also need to use

depending on your camera view dimensions.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Jan 2011 00:53
You're right ... except you are doing integer calculations and it may be better with floats:


My laptop display is 1366x768, which is a ratio of 1.77864583~

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Jan 2011 14:10
Are you saying the aspect ratio sticks to 4:3 despite what you set with 'set display mode'?

"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 4th Jan 2011 15:06 Edited at: 4th Jan 2011 15:28
@Phaelax - no, the aspect ratio defaults to match the screen width and height (according to the help file). But if you are using a different camera viewing port, then you should adjust the aspect ratio. For instance, if you are using a wide screen, with the camera only taking up a smaller window.

So, the above info about aspect ratio is a bit misleading. If you change the camera viewport then the aspect ratio would be changed to the camera view width divided by the camera view height.

Login to post a reply

Server time is: 2024-09-29 00:32:01
Your offset time is: 2024-09-29 00:32:01