Editing Lightmap Palettes in Photoshop

Tutorials for the Xbox version of Halo 2.
Post Reply
User avatar
Aequitas




Socialist Artisan Miner Pi
Bloodhound Mad Hatter Enthraller Logistician
Eureka Critic Wave

Posts: 469
Joined: Thu Nov 11, 2004 10:07 pm

Editing Lightmap Palettes in Photoshop

Post by Aequitas »

Note: I'll be using Lockout as an example.


UberLightmapTool™

Open the map in UberLightmapTool™ and count the number of palettes displayed. In this case, it's 31. Make a backup of the palettes for later use ("Edit" >> "Backup").

Image


Photoshop

Open Photoshop and create a new image with the pixel width of 256, and the pixel height equal to the palette count (31).

Image

Go to the Channels window and click the "Create new channel" button.

Image

Save the image as a BMP. When it prompts you with "BMP Options" click on the "Advanced Modes" button. Select 32 Bit "A8 R8 G8 B8" and check the "Flip row order" box. Click OK.

Image

Close the image in Photoshop.


Hex Workshop

Open the UberLightmapTool™ backup in Hex Workshop

Now it's time to do a little math.
  • block size = 1024 * palette count
    offset = file size - block size
For this example:
  • block size = 1024 * 31 = 31744
    offset = 31801 - 31744 = 57
Still in the UberLightmapTool™ backup in Hex Workshop, go to "Edit" >> "Goto...". Select "Dec" and "Beginning of File". Enter the above calculated offset (57), and click "Go".

Image

Now go to "Edit" >> "Select Block". Select "Dec" and "Size of Block". Enter the above calculated block size (31744), and click "OK".

Image

"Edit" >> "Copy"

Use Hex Workshop to open the BMP you created.

Go to "Edit" >> "Goto...". Make sure that "Dec" and "Beginning of File" are still selected. This time, enter 54 as the offset, and click "Go".

Image

Now go to "Edit" >> "Select Block". Make sure that "Dec" and "Size of Block" are still selected and that the block size is the same as above (31744), and click "OK".

Image

"Edit" >> "Paste"

"File" >> "Save"

Close the BMP in Hex Workshop.


Photoshop

Open the BMP with Photoshop. Each horizontal line represents the colors from one palette.

Image

Edit the colors however you like. For example, say all you wanted to do is change the color of Lockout's green room:

Image

Image

Save the BMP with the same settings as it was originally saved.


Hex Workshop

Open the BMP and the UberLightmapTool™ backup with Hex Workshop and select the same bytes as above. This time, copy them from the BMP to the backup.

Save the backup.


UberLightmapTool™

Open the map in UberLightmapTool™ and restore the palettes from the backup ("Edit" >> "Restore").


BEFORE
Image


AFTER
Image
Last edited by Aequitas on Wed Mar 11, 2009 8:12 am, edited 2 times in total.
TF6
User avatar
SpecOp44




Advisor Recreator Snitch! Critic

Posts: 2008
Joined: Tue Jun 06, 2006 12:34 pm
Location: The Canadarm

Post by SpecOp44 »

Very nice.
Image
User avatar
Aequitas




Socialist Artisan Miner Pi
Bloodhound Mad Hatter Enthraller Logistician
Eureka Critic Wave

Posts: 469
Joined: Thu Nov 11, 2004 10:07 pm

Post by Aequitas »

UberLightmapTool
TF6
User avatar
Blackout046





Posts: 21
Joined: Tue May 23, 2006 7:47 pm
Location: USA, Texas, Dallas, Garland, 805 Ontario

Post by Blackout046 »

Great Job man! :D
Image
Width: 266, Length: 96, Pixal dimensions: 74.8k, and file size is: 62.3kb
--HaloMods-)(-Rules--
mr_penguin





Posts: 541
Joined: Thu Feb 08, 2007 5:39 pm
Location: NJ

Re: Editing Lightmap Palettes in Photoshop

Post by mr_penguin »

I know this is a very long bump...

Uh, what happened to the tutorial?
Your mom became oversized. Please make your mom smaller before reposting. :shock:
Infern0 wrote:You just shave the excess bush and burn the leftovers.
User avatar
DemonicSandwich




Advisor Connoisseur

Posts: 1198
Joined: Sat Sep 30, 2006 6:10 pm
Location:

Re: Editing Lightmap Palettes in Photoshop

Post by DemonicSandwich »

Same thing that happened to several other topics/entire forums. Got lost when shifted the phpBB3.

And sadly the topic wasn't backed up on the Way Back Machine.
AIM wrote:Demonic5andwich (6:10:10 PM): structure of a first person weapon animation:
Demonic5andwich (6:10:43 PM): mess, mess, maybe a node?, another header?! wtf!, more mess, tacos, more shit
Post Reply