Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:48 18 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : transparent pngs.... help!

Author Message
johngill
Newbie

Joined: 22/09/2020
Location: United Kingdom
Posts: 38
Posted: 05:23pm 19 Apr 2021
Copy link to clipboard 
Print this post

Hi all,

I'm trying to make a 640x400 png tilesheet for my game. I'm using corel Photopaint to export a 24 bit png with a transparent background, and it looks like this on the PC:



I've positioned 7 16x16 graphics in the top left hand corner of the sheet, and that's all it is.

But when I load it up on my CMM2, it goes absolutely bananas:





no kidding - this is exactly the same .png file.

Have I done something dumb? Is photopaint somehow exporting the "transparentness" of the png in a weird way? What can I do to fix it?! Help!

thanks in advance

John
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10600
Posted: 05:26pm 19 Apr 2021
Copy link to clipboard 
Print this post

If you post the png file (zip it up) then we can have a look
 
johngill
Newbie

Joined: 22/09/2020
Location: United Kingdom
Posts: 38
Posted: 06:02pm 19 Apr 2021
Copy link to clipboard 
Print this post

  matherp said  If you post the png file (zip it up) then we can have a look


now why didn't I think of that.... this is why you're in charge and I'm not ;-)

zipped up png file attached.


tilesheet2test.zip


thanks
 
johngill
Newbie

Joined: 22/09/2020
Location: United Kingdom
Posts: 38
Posted: 06:33pm 19 Apr 2021
Copy link to clipboard 
Print this post

PS... I'm currently running on 5.07.00 beta 19
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10600
Posted: 06:56pm 19 Apr 2021
Copy link to clipboard 
Print this post

Don't know what the problem is but I've just saved as a png using a different program (Very old copy of PaintShopPro) and now it works. I assume corel is using some feature that isn't supported by the CMM2


tilesheet2test.zip
 
johngill
Newbie

Joined: 22/09/2020
Location: United Kingdom
Posts: 38
Posted: 08:31am 20 Apr 2021
Copy link to clipboard 
Print this post

  matherp said  Don't know what the problem is but I've just saved as a png using a different program (Very old copy of PaintShopPro) and now it works. I assume corel is using some feature that isn't supported by the CMM2


Thanks so much for looking into this - I think I need to get my hands on a very old copy of PaintShopPro :-)

I've loaded it up on my CMM2 as follows:

mode 8,12,rgb(80,80,80)
page write 3
load png "tilesheet2test.png"
page write 0
page copy 3 to 0

Sorry if it's just me being dim, but this doesn't seem to preserve the transparent background of the png - the black areas of the png are solid black rather than showing through to the rgb(80,80,80) background underneath...?

When I try opening the png up in photopaint, it shows the transparent background fine.

Any ideas???
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10600
Posted: 08:54am 20 Apr 2021
Copy link to clipboard 
Print this post

You need to specify the transparency cut off parameter

Try
load png "tilesheet2test.png",0,0,7

Edited 2021-04-20 18:55 by matherp
 
johngill
Newbie

Joined: 22/09/2020
Location: United Kingdom
Posts: 38
Posted: 09:29am 20 Apr 2021
Copy link to clipboard 
Print this post

thought it might be me... many thanks again  
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025