"How did you do did it?"

To prevent a deluge of e-mail asking me my secrets- I'll just tell 
everybody now.  It's kinda easy, but a tediously long process for each picture.
This is the way _I_ did it, I'm sure there's an easier way, but I can
only use the software on hand.  So, don't bother asking me about other
programs- I don't know the answer!  Experiment like I did.

Programs used:
Deutex, Editart, Kextract, Windows Paint, Paint Shop Pro 3, FotoTouch Color


* STEP 1: Hack the Doom WAD 
(If you haven't already done it)

deutex -sprites -extract c:\doom2\doom2.wad

This will create a sub directory called "sprites" with all the Doom2 sprites 
in BMP format.  (Doom2 contains all of the sprites in Doom and more)

* STEP 2: Enlarge the bitmaps files -MUST BE DONE BEFORE RESIZING!
I used the Logitech FotoTouch Color program that came with my scanner.
Using "Free Scale", stretch the pix out a little.  I hope you're planning to
make a test pix before you really begin.
The reason why the Space Marine looks so short in my file, is that I didn't 
know about this, until after I finished ALL of the sprites.  If you want to 
stretch, deskew, or rotate, you gotta do it now.

* STEP 3: RESIZING
I used the Paint Shop Pro 3.  (I heard no other one works with this!)
Open up yourbmp, then open another NEW file next to it- 
and make the NEW file 320, 200
Copy yourbmp and paste it in the New 320, 200
Save.  ~Do not apply a Duke palette!~  Save it with the same name  
or similiar--> When you're importing them in Editart, Doom pix will appear 
listed in the DOS directory in the same order as Duke pix on the screen.  You
DON'T want to get the left foots and right foots mixed up.

You can not go back and stretch or deskew anymore!  At least not with 
FotoTouch Color.  Editart didn't recognize it for some reason- 
(the pix were white blanks when I tried to import them after I rotated the 
Marine to make him look more like he was flying)

* STEP 4: TOUCH UPS
I used the Paint program that came with Windows 3.1
Select "Erase selected color", Light Cyan and a Wide brush.  I guess it's 
just luck that Doom uses the exact same shade of cyan as the Paint program, 
because you can easily remove all of it.  Leave the background white! 
(Note: Once I deskewed a pix and some of the cyan turned into a different shade 
and couldn't be erased easily.)
For some reason- there is a black line that runs down the left side of 
each sprite- it's easier to remove it now.  And you may want to do a little
cut and pasting- sometimes a few pixels that are too close to the edge appear
on the opposite side.
Save

Step 5: Hack the Duke3d GRP
If you haven't already done it

kextract duke3d.grp tiles???.art

This will pull out 15 megs of Art files.

Go in Editart, move with pageup/pagedown. 
(G)oto # and "V" -works like in Build
Find the sprite you want to change, press enter to select it 
Press "U" to import. Find the path to the file, etc...
With the mouse, drag a rectangle over the pix.  It should be as small as 
possible.
and press "Enter".  By magic, the white background changes to purple- 
which is invisible in the game.

Pay attention to which tiles???.art file gets updated and copy that to your 
Duke3d directory.

Well, that's it!  Of course, you have to do the same for EACH file and 
there's 10 of them, just to walk around.

* STEP 6: Creating NEW Doom bitmaps (?!)
You will probably need to change some of the Doom files- after all, Pigcops 
jump to the floor, Troopers teleport and duck...  So, some of your
Doom files will have to be modified.  
I used the Paint Shop Pro again.
Even after I finished and tested all the easy ones- walking, shooting and 
dying-- I went back, opened them up and cut the heads off and pasted them 
closer to the body, did the same with his legs- To make it look like he
was crouching.  Save it under different names and imported.
Cutting and pasting with FotoTouch- came out "washed out" looking in 
Editart.
I was afraid to add any colors- don't know if the Paint Shop's colors appear
on Duke's palette.
So, I highlighted, copied and pasted parts of the Marine's own body to places
he was missing them.

Well, that's what I did.  I hope it helps somebody to write a program that 
will make it easier.  Happy Hackin'


Jim T

jimt@emapnet.com (The Hermit)
robojim2@aol.com


MISC stuff:
Gblasr01.voc is Leon's gun from "Blader Runner"
Pred sounds are from the Space Marine in Doom2
