non-square pixel resolutions (and widescreen)

Blitz3D Forums/Blitz3D Programming/non-square pixel resolutions (and widescreen)

Dock(Posted 2005) [#1]
Is there any easy way to adjust the dimensions of the screen, so that the pixels aren't treated as squares? There's a couple of reasons I want to do this:

Firstly: Widescreen output.
Purely selfishly... I like to output my laptop to my widescreen TV, but my laptop doesn't have any widescreen resolutions.

Secondly: 1280x1024.
This is a weird resolution, yet popular on LCD displays. I don't want my game to look a bit squished on these monitors (as this isn't a 4:3 ratio resolution).

Whilst most of the time I'd like to stick to the usual video output options, it would be nice if I could have an optional '4:3' or '16:9' or '16:10' ratio choice.

Is this possible?


octothorpe(Posted 2005) [#2]
I may be talking out of my posterior, but I believe you can ScaleEntity a camera to change its aspect ratio.


Dock(Posted 2005) [#3]
Wow, excellent - you're right, that does the job. Thanks a lot!

I added the line:
ScaleEntity cam,1.3875,1,1

...and it forced 16:9 mode on a 4:3 resolution. Very easy. Thanks!


octothorpe(Posted 2005) [#4]
No probalo, glad that helped! :)


Finjogi(Posted 2005) [#5]
Nice one, so simple yet so efective.