Resolutions

Previous topic - Next topic

Crivens

Is there a way to make a device use it's highest resolution settings?

Currently my project resizes graphics based on a comparison made between the used resolution and a target resolution. I am targeting the retina iOS devices so have the project settings of 640x960. On my iPod 4G no resizing is required but my 3GS shrinks them as the resolution is 4x the pixels less. If I set to 320x480 then the retina device does use that resolution. However I would imagine the iPad will do the same thing as this and stay at 640x960. Not what I want. Needs to use full iPad size.

Ok I could do graphics for the largest display and set to that but I would rather have an option where all devices just use their native resolutions and I can worry about the resizing myself and not worry about setting to the highest resolution setting when things may change in the future.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

FutureCow

Isn't the GETDESKTOPSIZE command what you're looking for? Based on what it returns you can choose different resolution graphics to display.

Crivens

I need it mainly for mobile devices and with these they set the resolution set in project settings otherwise if it can't do that you get the native resolution.

So if you set resolution in project settings to 640x960 then a 3GS would be 320x480 and an iphone4 would be 480x960. Great. But an iPad would be 480x960. If I set to iPad resolution then it would work for all but what if greater resolution in future? Ideally just a setting that says get native resolution would be brilliant (or custom so can say 9999x9999).

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Kitty Hello

The problem is, that the resolution must be set before the GLBasic main() kicks in. And there's no way to change it afterwards :(

So, take it as it is, and with newer devices (pleaaaase NOOOO) we'll see how to deal with them. Maybe an checkbox option or so.

Crivens

But it seems that if the native resolution is lower than the project settings then it sets it at the native resolution. If lower then if it can it sets it at the lower resolution. Eg if set to 320x480 then a retina display will show at 320x480.

If that is true then can't you have a native option that basically tries to do something like 9999x9999? Obviously that is higher than anything so it just uses the native resolution of the device.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Kitty Hello

yes. put 1024x768 and you can support iPad, Retina and 3.1 devices.

Crivens

Yeah but what would happen when a new device comes out? Would need to then recompile and submit when GLB updated.

Internally does it say I'll try the project settings and if that fails use native? If so then all I'm saying is have an option in project settings that says skip the first check (or at least try sonething stupid like 9999x9999) and just use native. No worries about recompiles then or waiting for GLB to be updated if we handle the resolution ourselves.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Kitty Hello

yes. Try 9999x8888 - to ensure you want landscape and 8888x9999 for forced portrait.

Crivens

Ang on, are you saying there is a custom option in project settings? That would work great

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Crivens

QuoteTry 9999x8888 - to ensure you want landscape and 8888x9999 for forced portrait
Where do I set this in the project settings? Or are you saying use the setscreen command (and just leave the project as any old thing)? If so I thought you said to not use it on mobile devices with set resolutions?

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

ampos

Crivens, you can just type the number on the box.


Crivens

I can? What in the drop down of project options?

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

ampos

Yeah, just type "8000x9000" on the resolution box.

Crivens

Cool. Is not totally obvious. Will try tomorrow. Out of interest is the device dropdown in project settings just there for resolutions? So I could set to iPhone and 9998x9999 and still use that for WebOS compilation or Android? There isn't anything else it does?

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

ampos

Yes, you are right. I think this drop down menu is just a "resolution presets". You can overide them by typing.

Notice that in windows it will really will open a window this size! (not sure about full-screen)