Duke4.net Forums: Purpe Color Not Transparent in Sprites After Editing - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Purpe Color Not Transparent in Sprites After Editing

User is offline   a muffin 

#1

Purpe Color Not Transparent in Sprites After Editing

So I am modifying the first enemy you encounter in Duke 3D, well mainly his death animation. Anyway, when the modified part of the animation plays, the purple background jumps up around him in a square shape... the part that is supposed to be transparent.

I put the modified art file in my DukePlus\DUKEPLUS_RESOURCES directory. After a long day of slaving over the modding tools, I was happy to at least see that it had an impact in the game. But the light purple background colors ruin it for me.

I've tried all kinds of things. And yes, I am positive that the purple is the RGB 252, 0, 252. I don't understand why the purple color shows up in these files when they're basically identical to the vanilla files, bit depth and purple color wise. I've tried making the background white, but that didn't work either. And I don't seem to be able to make the background transparent, because that would mean the file wasn't 8-bit, and it wouldn't be able to go in the tiles006.art file.

If anyone can explain this to me, I would appreciate it.
0

#2

I can not remember much about how to use Editart, but I know that if you press Backspace it will select the transparent color (255,000,255) and then you need to hit the key that will replace the purple you have with the one that it selects.

Realistically you don't want to do it like this at all, it would be better to use a .def file and a load of .PNG images, but if you don't have a decent image editor that may be harder than the way you are doing things already.
0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#3

There are two purple/magenta colors in Duke3d palette. I suppose that setting an GIF/PNG as transparent should solve the problem...
0

User is offline   a muffin 

#4

Would you care to elaborate on this plan.

Quote

Realistically you don't want to do it like this at all, it would be better to use a .def file and a load of .PNG images, but if you don't have a decent image editor that may be harder than the way you are doing things already.


I'm somewhat new to the sprite editing business.

And Fox, my problem comes from not being able to save .png in the .art file. Would I just put the sprites from the .art in a .def as .pngs in my DukePlus\DUKEPLUS_RESOURCES directory?

This post has been edited by a muffin: 05 August 2010 - 09:26 AM

0

User is offline   Fox 

  • Fraka kaka kaka kaka-kow!

#5

Hmm, I did not realise you was actually working with .art. I was thinking it would be a def, since it's a sub_directory.

But as I said, there are two magenta colors. Editart load the non-transparent by default, and thus you need to replace the color in Editart.
0

User is offline   Hendricks266 

  • Weaponized Autism

  #6

What Fox said. Basically, we have another facepalm brought to you by 3D Realms.

Posted Image

What you need to do is set the pink color to be transparent in PNGs, and use tilefromtexture (not "texture"). Add the definitions to duke3d.def and place it in your EDuke32 directory.

This post has been edited by Hendricks266: 05 August 2010 - 09:49 AM

0

User is offline   a muffin 

#7

Those colors are both 252, 0, 252! :)

Oh well, thanks for letting me know. I guess my files weren't identical to 3D's after all.

I got it to work with the .art file by changing the RBG to the "Wrong" pink color to 250, 0, 250 instead of 252, 0, 252, and then recoloring the purple.

Thanks for all your help guys.
0

#8

View Posta muffin, on Aug 5 2010, 11:38 AM, said:

Those colors are both 252, 0, 252! :(

Oh well, thanks for letting me know. I guess my files weren't identical to 3D's after all.

I got it to work with the .art file by changing the RBG to the "Wrong" pink color to 250, 0, 250 instead of 252, 0, 252, and then recoloring the purple.

Thanks for all your help guys.


I'm having the exact same issue and Im ripping my hair out trying to find a solution. I've googled the topic, visited numerous forums and have read and attempted every single remedy I've been able to find but to no avail. The vast majority of the responses to the issue I've found are saying one of the following:

Use Ken's EDITART.EXE to directly edit the tile after importing to apply the correct tranparency color

Blaaaaah. Can't seem to get EDITART to even start. Thats out of the question

-Open the image in GIMP
-Import the DN pallette (Duke3D.pal)
-Edit one of the 2 pink colors in the pallette (I've tried it both ways, changing each color)
-Reapply the modified pallette to the image
-Reapply the pink color to the areas that are to be transparent
-Save the image and import into the .ART file (I use Wally for this, as I get an error with DukeRES about Duke only supporting images with 256 colors)


Aaaaaand...nada

Clearly I'm doing something wrong ^^ You say you were able to fix it, but I'm a bit confused as to HOW you did exactly. Could you (or anyone) explain the process in a little more detail? I'm using GIMP, Wally and DukeRES if that helps anyone to be even more specific

This post has been edited by The Deviant Mind: 27 October 2010 - 09:07 PM

0

User is offline   Micky C 

  • Honored Donor

#9

View PostHendricks266, on Aug 6 2010, 04:18 AM, said:

use tilefromtexture (not "texture"). Add the definitions to duke3d.def and place it in your EDuke32 directory.


These days, most people except for 'the veteran hardcore full on mod makers who've been around since Duke's release 14 years ago' use the DEF language instead of any .art editing programs to put images into the game. Tilefromtexture which Hendricks tried pointing out does the exact same thing as the art exe's in that it puts 8 bit art in the game using PNG's where the parts you don't want to show up in game you make the alpha channel (normal transparency in PNG editing programs), but there are other types of DEFs which allow you to put in high definition textures and other things which might be worth a look at. Using DEFs is the easiest thing ever, and that's coming from me; a guy with no programming experience whatsoever, if you're still struggling with working it out, look at some examples in the High Resolution Pack DEFs in the hrp.zip
0

#10

Yeah I saw that too then read the eduke wiki section about it. Achieved the effect I was aiming for with this method. Was just hoping to get it working through the .ART files just for the sake of simplicity and tidiness. That and anytime I encounter a tiny, irritating little problem like that I'm determined to find a solution lol Both a good and bad trait I guess. But I'll say screw it and just go down the DEF road. It's killing my time and my motivation o_O But still, if anyone has an answer to the question, please do share ^^ Not important now, but I'd just like to have the knowledge.
0

#11

Download DOSBox and just drag the Editart.exe from your Duke folder ontop of the DosBox shortcut, it should start in DOSbox and allow you to edit the .ART files if you really want to do that.

But you can certainly use .DEF instead, it's far more advanced anyway.
0

User is offline   Jimmy 

  • Let's go Brandon!

#12

For EDITART.EXE to work natively on Windows XP DOS4GW.EXE MUST be present. I'd also recommend using the eDuke 2.0 version of EDITART.EXE. Since I guess you're gonna ask "Where can I get this stuff?," I'll just go ahead and upload everything you'll need for you.

eDuke 2.0 EDITART.EXE, DOS4GW.EXE, and LOOKUP.DAT, PALETTE.DAT, and TABLES.DAT in ~230kb .zip file.

This post has been edited by Captain Awesome: 29 October 2010 - 03:37 PM

0

#13

Perfect. Thank you gentlemen :(
0

User is offline   Jimmy 

  • Let's go Brandon!

#14

So, that worked for you? I'm glad. EDITART is truly the best program to edit art files with.
0

User is offline   Hendricks266 

  • Weaponized Autism

  #15

For now.
0

User is offline   SwissCm 

#16

I've found using Paint Shop Pro (or whatever your favourite PNG+Transparency capable image editor is) and .def files to be the best solution, the primary downside being that it's only compatible with eduke32.

EDIT: The upshot being that you don't have to package entire *.ART files and you are able to compress the PNG files to miniscule sizes.

This post has been edited by SwissCm: 04 November 2010 - 11:45 AM

0

User is offline   Hendricks266 

  • Weaponized Autism

  #17

View PostSwissCm, on Nov 4 2010, 02:42 PM, said:

EDIT: The upshot being that you don't have to package entire *.ART files and you are able to compress the PNG files to miniscule sizes.

The only issue is that they will fill up clusters like a B, although this can be prevented by zipping them up without any compression.
0

User is offline   xlnt 

#18

My solution was in Photoshop to simply copy paste the original purple color, instead of painting/filling. Works great, weirdly enough.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options