Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Offline editor (https://forums.graalonline.com/forums/showthread.php?t=77147)

napo_p2p 10-13-2007 02:51 AM

Offline editor
 
I know people have been asking for improvements to the offline editor for a while now, but is it easy to add support for 24-bit pngs? If so, please do :).

Googi 10-13-2007 08:37 AM

I think the problem there is that you can't set transparency on 24-bit pngs.

Crow 10-13-2007 08:59 AM

Quote:

Originally Posted by Googi (Post 1352641)
I think the problem there is that you can't set transparency on 24-bit pngs.

I guess I missed something :oo:

Googi 10-13-2007 09:37 AM

Quote:

Originally Posted by Crow (Post 1352642)
I guess I missed something :oo:

24-bit PNGs can't have transparency. You're probably thinking of 32-bit PNGs.

Skyld 10-13-2007 11:16 AM

Quote:

Originally Posted by Googi (Post 1352644)
24-bit PNGs can't have transparency. You're probably thinking of 32-bit PNGs.

24-bit PNGs do support transparency. Whether the Graal client supports transparency in 24-bit PNGs is another question. :pluffy:

napo_p2p 10-13-2007 07:16 PM

I use 24-bit pngs for my tilesets on Graal5 (16 million colors). It would be a nice thing if I (and others) can use the same tileset while doing offline editing, instead of having to use a dithered 8 bit version.

xXziroXx 10-14-2007 12:52 AM

Quote:

Originally Posted by napo_p2p (Post 1352697)
I use 24-bit pngs for my tilesets on Graal5 (16 million colors). It would be a nice thing if I (and others) can use the same tileset while doing offline editing, instead of having to use a dithered 8 bit version.

Exactly. Kinda silly to make it so you're able to use them online, but not offline, when it should be a rather simple thing to change.

Crow 10-14-2007 12:54 AM

Why not just limit your tileset to 256 colors? Thats enough anyways. Its only that one image. Older games were limited to a total of 256 colors.

Googi 10-14-2007 02:19 AM

Quote:

Originally Posted by Skyld (Post 1352647)
24-bit PNGs do support transparency.

How? 24-bit PNGs use 8 bits for red, 8 bits for green and 8 bits for blue. If you want to get transparency you have to add an 8-bit alpha channel (which makes your PNG 32-bit). If there's some other way I've never heard of it

zokemon 10-14-2007 02:48 AM

You can use tileset transparency on 24 bit pngs. I've done it already and shown the forum community screen shots of such many times.

xXziroXx 10-14-2007 02:52 AM

Quote:

Originally Posted by zokemon (Post 1352741)
You can use tileset transparency on 24 bit pngs. I've done it already and shown the forum community screen shots of such many times.

I've used it too, it's very much possible.

Inverness 10-14-2007 04:04 AM

Quote:

Originally Posted by xXziroXx (Post 1352742)
I've used it too, it's very much possible.

What Googi said sounds logical, how would you have alpha without the 8-bit alpha channel?

Inverness 10-14-2007 04:29 AM

I asked how it was technically possible, not how to make one.

Crow 10-14-2007 01:17 PM

True, probably. Well, who cares. Isnt Graal supporting 32-bit png anyways? :p
Why have a discussion whats possible and what not, thats not even the topic.

zokemon 10-14-2007 05:46 PM

Whether it's 24-bit PNGs or 32-bit PNGs, I'm sure you are all smart enough to understand what I said as I'm not the most knowledgeable, graphically. My point pretty much still stands that it is very much possible.

Inverness 10-14-2007 09:22 PM

Quote:

Originally Posted by zokemon (Post 1352860)
Whether it's 24-bit PNGs or 32-bit PNGs, I'm sure you are all smart enough to understand what I said as I'm not the most knowledgeable, graphically. My point pretty much still stands that it is very much possible.

It maybe be possible for full transparent pixels (un-declared color value) but its not possible for semi-transparency which requires the alpha channel.

Ex of 24-bit Transparency (3x3 pixels):

FF0000, FFFFFF, 0000FF,
00FF00, -------, 00FF00,
990099, 888800, 00AA00

Center is full transparent, no color value.

Ex of 32-bit Transparency (3x3 pixels):

FF0000FF, FFFFFFFF, 0000FFFF,
00FF00FF, 0066AA00, 00FF00FF,
990099FF, 888800FF, 00AA00FF,

Center has color value, however alpha channel makes it full transparent.
Alpha can be adjusted for semi-transparency.


All times are GMT +2. The time now is 03:08 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.