Latest Uploads
Invasion V ... prototype

rychan

Invasion V ... Prototype

rychan

Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

Forum Home

BlitzMax LoadImage brainfart

UserMessage
Posted : Friday, 18 November 2016, 04:21 | Permalink
GfK


<N00B QUESTION>

If you're to run in a 16/9 resolution, say, 1366x768, and want to have a background image that fills the whole screen, is it hardware-safe to just load a 1366x768 image, or should I be resizing it in Photyshop to something I can break up into 256x256 chunks?*

*which poses a problem as no 16/9 res divides equally.

</N00B QUESTION>
Posted : Friday, 18 November 2016, 04:42 | Permalink
rockford


WW Entries : 3
You can load the whole image without problem. I used the same size for my abandoned Impossible Mission game. It worked fine.
Posted : Friday, 18 November 2016, 06:02 | Permalink
GfK


That's what I suspected. But I've always used 1024x768 for game logic in the past, which divides neatly into 256x256 chunks. So any full-screen image, I've always drawn it like that instead of in one go.
Posted : Friday, 18 November 2016, 07:40 | Permalink
Jayenkai


WW Entries : 106
That's a big picture!!
Iirc, BMax has no safe " an the GfK card handle this size" test. It just crashes.. am I right? I can't remember!!

Either way, I tend to stick with square sizes, at multiples of 32.
If you can load and use a 2048x2048, I'd do that, and design a background that extends beyond the required resolution, but looks decent when cropped and centered.

-----
''Load, Next List!''
Homepage : http://AGameAWeek.com
Posted : Friday, 18 November 2016, 10:07 | Permalink
rockford


WW Entries : 3
Remember Jay, Max is not for mobile devices, so pretty much anything is OK for pc use.

I've never had any sizing issues on pc or a single crash due to large or irregular sized images.
Posted : Friday, 18 November 2016, 10:26 | Permalink
Jayenkai


WW Entries : 106
Not true.. my old Nvidia card (damned if I remember which) was a total bitch about image ratios!
It was also crap at rendering text in .bb, too.
It was a while ago, though. Pre-hospital, so at least 4 years ago.
But you should always be aware that some folk have 4 year old systems, and that even the simplest of things can fuck up!!

PC fragmentation isn't as bad as Android, but it still exists in annoying little areas!

-----
''Load, Next List!''
Homepage : http://AGameAWeek.com
Posted : Friday, 18 November 2016, 11:21 | Permalink
GfK


That's not big!

My game map is 3072x2048 - that's big! But at least I can break it up into 256x256 blocks.

So anyway, if I should really care about ancient hardware then what's the solution? I'm not sure that creating a 2048x2048 image is any solution at all.
Posted : Friday, 18 November 2016, 11:28 | Permalink
Jayenkai


WW Entries : 106
Iirc, from my crazy testing at the time, the "square and powers of 2" stuff only started freaking out if it were above 1024x1024.
Perhaps draw two 1024 tiles, side by side.
Should cover most of the important area.
.. if any larger resolutions come up, perhaps draw the image so it can blend into a solid background fill colour where the 1024 height doesn't quite cover the area.

-----
''Load, Next List!''
Homepage : http://AGameAWeek.com
Posted : Friday, 18 November 2016, 12:36 | Permalink
GfK


Hm, I think what I'll do is load the 1366x768 as a pixmap, paste it into a larger 1536x768 pixmap, then load it with LoadAnimImage in 256x256 segments. Bit of waste (a 170 pixel wide strip) down the right-hand side but it's probably the safest way.
Posted : Friday, 18 November 2016, 12:41 | Permalink
Jayenkai


WW Entries : 106
Yeah, sounds fine!
Shame I didn't have my desktop up and running anymore. Probably could've set it off on a mass image-based test!

-----
''Load, Next List!''
Homepage : http://AGameAWeek.com
Posted : Saturday, 19 November 2016, 00:26 | Permalink
rockford


WW Entries : 3
Jay, it's unlikely that any machine nowadays (from the last 10 years) will have issues with an image 1366x768 and if anyone's does and they complain, simply ask them how old their machine is and what graphics card they are using - I'm pretty sure they won't come back.

It's impossible to support every possible machine and gfx card type - especially legacy. Looking on Google, 1366x768 is the dominant screen resolution with a 19.1% usage - the next closest is 1920x1080 at 9.4%. So I suspect that the majority will definitely be able to see the image fine. Obviously there may be a need for a scaling system, but I doubt 1366x768 will cause any problems.

Perhaps find a few friends/peeps to test a simple image and get their results before pushing out anything major.
Posted : Saturday, 19 November 2016, 17:01 | Permalink
therevillsgames


My last two games have used background images of 1366x768 and I just used LoadImage. Had no issues

For the mobile ports I resized them down to 1024x576 and scale them back up to 1366x768 in game.
Homepage : www.therevillsgames.com
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 670|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Favourite Amstrad CPC Games
steve_ancell Sat 21:02
Shoutbox Topic - 319
steve_ancell Sat 20:52
Inside Donald Trump
rockford Sat 12:09
Any Feature Requests?
Jayenkai Sat 09:36
More Monkey Madness - With Ducks
rockford Sat 05:13
Arms on Switch
rockford Sat 05:02
Time for a new Android Test Doohickey
Jayenkai Fri 09:26
CSS-Me-Do - SoCoder2
Jayenkai Fri 06:28
Pillowcases for kids!
rockford Thu 16:15
Manchester Arena Explosion
Jayenkai Thu 02:04
More

Latest Items
Showcase : Hives
zzoom Fri 16:10
Dev-Diary : My Journey into NES Development
rychan Thu 12:31
Showcase : Flappadiddle
Jayenkai Sun 14:39
Snippet : QFind
Jayenkai Sun 13:02
Showcase : Tiny Blocks
Jayenkai Sun 04:08
Showcase : Read Error A
rychan Fri 05:13
Blog : All my makes!
Jayenkai Tue 05:48
Showcase : Infinitron
rychan Mon 18:03
Showcase : Quadoban
rskgames Fri 10:11
Blog : My Arduino experience.
steve_ancell Wed 17:02
Showcase : Roguelike Explorer
Pakz Fri 06:59
News : Newsletter #311
Jayenkai Thu 17:27
Link : Super Shapes Exploration Kit
Andy_A Thu 11:09
Dev-Diary : Sensitive - Arduboy!
rychan Thu 17:27
Snippet : Skylines
steve_ancell Tue 14:25
More

Who's Online
steve_ancell
Sat, at 21:32
9572AD
Sat, at 18:50
therevillsgames
Sat, at 18:00
rockford
Sat, at 16:19
shroom_monk
Sat, at 16:02
Jayenkai
Sat, at 15:42
spinal
Sat, at 12:08
rychan
Sat, at 08:56
rskgames
Sat, at 07:21
Pakz
Sat, at 04:16
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.