Severed bunny head
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > XWE > PNG Support
 
Author
All times are GMT. The time now is 20:51. Post New Thread    Post A Reply
Cyb


Posts: 3204
Registered: 07-02


At the current time XWE seems to convert PNG's you load into another format (Doom format possibly). That's fine, but ZDoom can actually use unconverted PNGs as graphics, and they usually take up less space that standard Doom format, plus they don't need to be in the Doom palette (important when/if 16bit color comes along, plus you can use the same texture wad for different games/palettes) so they can work with other games. If you could just add a switch or a flag so that you can specify that PNGs don't get converted, or at least a raw lumpinsertion tool that just sticks a file into a wad without looking at it or converting it, that would be great.

On a related note, this is more of a feature request, but PNG files have offset values in the header (I think), which I believe ZDoom uses for PNG sprites. If XWE could modify those offsets that would be cool and keep me from writing my own util for that very purpose ;)

Old Post 12-21-04 04:15 #
Cyb is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
Csabo
Moderator


Posts: 541
Registered: 02-02


First I thought it was you who asked for this once, but it was someone else. They pretty much wanted the same thing though - but I originally misunderstood the purpose of PNG support.

So XWE's PNG support consists of being able to load PNG images like anything else (JPG, BMP, etc); and yes, they all get converted to Doom's image format (or floor, if that's what you've selected).

This seems to be pretty stupid now... XWE was fine before I added the PNG "support" because it just imported the files as is. That still doesn't solve the second part of your request (e.g. changing values in the PNG header).

Bottom line, this will require some big changes, and probably new menu items as well (e.g. Import Raw/Replace Raw or something along those lines). It's on my to-do list ;-)

Old Post 12-27-04 01:50 #
Csabo is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
chilvence
Master Procrastinator


Posts: 1161
Registered: 01-03


No way, pallette independant addons and stuff :)

Old Post 12-27-04 19:43 #
chilvence is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
Cyb


Posts: 3204
Registered: 07-02


coolness, thanks :)

Old Post 12-30-04 01:05 #
Cyb is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
chilvence
Master Procrastinator


Posts: 1161
Registered: 01-03



Cyb said:

On a related note, this is more of a feature request, but PNG files have offset values in the header (I think), which I believe ZDoom uses for PNG sprites. If XWE could modify those offsets that would be cool and keep me from writing my own util for that very purpose ;)



Heh, I wondered why I suddenly had this idea in my head. I found out a litte more; I dont know wheter basic png files contain any offset information or whether Randy has added an extra chunk to contain the sprite offsets. But in any case, a utility to set them can be found here:

http://forum.zdoom.org/viewtopic.php?t=1139&start=15)

If you don't fancy setting each file one by one, you can use a for loop at the command prompt to make it less of a pain, just go into your png folder and type "dir /b >list", open list and type the x y offsets after each file, and then put this line into a batch file:

for /f "tokens=1,2,3" %%i in (list) do setpng -grab %%j %%k %%i %%i

Old Post 01-02-05 13:02 #
chilvence is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
AFADoomer
Green Marine


Posts: 33
Registered: 08-02


Sort of a follow-on to this...

Would it be possible to allow the option of having images to be converted to PNGs instead of the Doom format as they are imported?

I know it'd be pretty much ZDoom specific, but it would allow for non-pallete-dependant mods (I think).

I guess I could just save them as PNGs before importing, though, huh.

Last edited by AFADoomer on 01-03-05 at 21:53

Old Post 01-03-05 21:47 #
AFADoomer is offline Profile || Blog || PM || Search || Add Buddy IP || Edit || Quote
RTC_Marine
Junior Member


Posts: 547
Registered: 06-01



AFADoomer said:
Sort of a follow-on to this...

Would it be possible to allow the option of having images to be converted to PNGs instead of the Doom format as they are imported?


I guess there could be 2 buttons/menu items for ALL entries that wish to be inserted into a wad, example "Insert (convert blah to doom format" and "Insert (no conversion)", that would be a cool feature for xwe imo, unless it already has it :P


AFADoomer said:

I know it'd be pretty much ZDoom specific, but it would allow for non-pallete-dependant mods (I think).



Afaik, edge will be support PNG images aswell, I'm not sure if Andrew and co will be adding data to the header to make the image compatible with zdoom, but we'll see.


AFADoomer said:

I guess I could just save them as PNGs before importing, though, huh.



Indeed.

Old Post 01-04-05 00:43 #
RTC_Marine is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 20:51. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > XWE > PNG Support

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.