Latest Uploads
Platdude Spotting

Jayenkai

Nom nom nom

Jayenkai

Rainbow Trout

Pakz

King Salmon

Pakz

Snooker

Jayenkai

You've ... o have you

Jayenkai

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 672|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Jeremy Bloody Kyle
steve_ancell Mon 09:45
GamerBlock
Jayenkai Mon 09:06
Laptop Aaargh...
Jayenkai Mon 07:06
Changing Thumbnail Sizes
Jayenkai Mon 05:27
Technology on Planes
therevillsgames Sat 17:00
London Car/Stab Incident
steve_ancell Sat 12:10
A New Korg Gadget!
Jayenkai Sat 04:53
Happy Birthday, Spinal
Jayenkai Fri 08:40
Watch Switch - Fitbit Blaze
rockford Fri 03:52
Happy Birthday Evil Roy Ferguson
rockford Wed 16:21
More

Latest Items
Blog : My Arduino experience.
steve_ancell Fri 13:45
Snippet : Skylines
spinal Fri 06:13
Showcase : Infinitron
rychan Tue 03:02
Dev-Diary : PS2 to N64 Adapter
spinal Sun 10:49
Link : Vector Tutorials/Help page.
Pakz Thu 23:00
Blog : mini project
spinal Sun 10:13
Showcase : Blockman Returns
Jayenkai Fri 03:04
Snippet : Wall Tracing on Random Maps (rpg)
rskgames Wed 22:48
Snippet : Path Following
Pakz Mon 16:25
Snippet : Flowers (Jan 2017)
Kuron Thu 01:13
Showcase : Clusters of Hex
therevillsgames Mon 15:01
Article : Maths 101 - Episode 1: Basic Trigonometry
shroom_monk Sun 14:07
Article : Maths 101 - Episode 5: Line Intersection
shroom_monk Sun 14:02
Dev-Diary : Normals and Dot products
Pakz Sat 20:37
Pets : Molly On The Couch
Jayenkai Thu 04:32
More

Who's Online
Jayenkai
Tue, at 00:11
rskgames
Mon, at 22:25
9572AD
Mon, at 20:48
Evil Roy Ferguson
Mon, at 17:56
steve_ancell
Mon, at 17:22
zzoom
Mon, at 16:39
Pakz
Mon, at 14:26
spinal
Mon, at 14:18
Afr0
Mon, at 13:08
shroom_monk
Mon, at 12:43
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.