Page 1 of 1

Skinning with Prophet

Posted: Sat Sep 22, 2007 7:05 pm
by Prey
You will need 1. Set up WinResigner (it tells you how too in the same post you download it from, linked above^^)

2. Open up a map in Prophet, navigate to the texture you wish to change, and click it; bringing up the Shader Edit Panel:

Image

The Shader Edit Panel can look a bit daunting at first, so I'll go through it bit by bit and you'll get it in no time :wink:

First of all we have a combobox, which contains the paths of all the shader tags within the map. The currently selected one will be the one in use by the currently selected object. If you were to change the shader, the info would be immediately saved to the map file, and the changes would take effect in the editor as well.

Secondly, we have another combobox. This time containing the textures contained within the selected shader. But instead of the paths being listed, you will see the function instead. There are four functions that Prophet will recognise: "Main", "Bump Map", "Detail Map", and "Cube map". Everything else will be listed as "Unknown". By default the selected texture will be the main texture, but feel free to change that without worry: nothing will be saved to the map, instead only the panel will change to display the new function's info.

Speaking of info :P ..Note that the bitmap tag is displayed in yet another combobox. This combobox contains all the bitmap tag paths. Changing the selection will re-link the current shader to the new bitmap, and again the changes will be saved to the map file and immediately seen in the viewer.

And finally we have the "Import", "Export", and "Internalise" buttons.

Firstly the Internalise button will do just that, internalise. if your texture is in one of the external maps, it'll simply copy it into the current map, else...the button won't be enabled ;x

The Export button is again, simple. Just click it and extract the texture to a file somewhere. Note though that not all the bitmap formats used in Halo2 are supported by Prophet, and so you may end up with corrupt files. It is a very rare case though to get such a format in use by the BSP, so no worries :wink:

Finally the Inject button, 'tis slightly more complex. The best way to explain it would to go through the whole process, so here's how to properly export, edit, and import a texture:
  • Export the texture, preferably as a DDS.
  • Open the texture up in an image editor. Make sure to open only the 1st mipmap. (For this example I will be assuming you have Photoshop, along with the D3DXTextureFormat Plugin).
  • Once you're done your editing/resizing. Save the texture as a DDS file. But take note: you need to save in the same format as the texture was originally, with the same amount of mipmaps as originally (if you didn't resize the texture that is. If you did resize the texture, then just save with as many mipmaps as you can (meaning the last has a width or height of less than 2). You can get the original texture's format and mipmap count from the info visible on the Shader Edit Panel. Also you may want to include a '1' somewhere in the filename.
  • Now close the texture, but not photoshop yet. take a look at the 'Levels of detail' value visible on the Shader Edit Panel. That's the amount of textures we need. In the above pic it says 3, so:
    • First of all goto File -> Open Recent, and select the texture you just closed (will be the first in the list). Now select the texture's 2nd mipmap level in the dialog and open it. Now save the texture, preferably with a '2' in the filename. Note that you need to keep it in the same format again, and the mipmap count has to be the same as the last texture's, or lower.
    • Close the texture. Now repeat the process, only this time open up the texture you just closed, not the texture we opened before. Again select the 2nd mipmap level, and save again, preferably with a '3' in the name this time.
  • Now click the Import button in Prophet. It will first ask for LOD1, so select the file that has the '1' in it's name. It will then ask for LOD2, so select the '2' file, and finally the '3' file.
  • And finally just before you ftp, right-click the map file and hit resign. All done :P
Some things you need to realise about the injection process:
  • If you press cancel on one of the LOD dialogs, the LOD texture will not be touched in the map file. But this will mean that in-game if you move far enough away from the texture then that LOD will come into play...ruining the experience.
  • If the texture you re injecting is bigger or smaller than the original texture, and the original texture is located within an external map: the new texture will be instead injected into the current map, and the pointers fixed. I though this to be a more preferable route to take than to shift everything in one of the external maps, as that would have meant no clean map would have ever worked 100% with that external map. Hope you agree :P

..and taht's itt ^_^

Posted: Thu Sep 27, 2007 7:54 am
by CaptainPoopface
Thanks for posting this, and for making the app. I have always disliked skinning, but maybe this will make it easy enough for me to start tinkering.

how?

Posted: Sat Oct 20, 2007 11:38 am
by donehalo123
HI I WAS WONDERING HOW TO RESIGN THE MAP BECAUSE IM DONE RESKINNING THE MAP IM SKINNING AND I DONT KNOW HOW TO RESIGN ITG.

Re: how?

Posted: Sat Oct 20, 2007 1:23 pm
by Prey
donehalo123 wrote:HI I WAS WONDERING HOW TO RESIGN THE MAP BECAUSE IM DONE RESKINNING THE MAP IM SKINNING AND I DONT KNOW HOW TO RESIGN ITG.
Prey wrote:WinResigner

1. Set up WinResigner (it tells you how too in the same post you download it from, linked above^^)

[...]

And finally just before you ftp, right-click the map file and hit resign. All done :P

Posted: Thu Nov 08, 2007 8:16 am
by bumlove
congratulations on a: making this app and b: make the app so bloody easy to use I have never read a skinning tut or skinned ever before 5 minutes after downloading this (still without reading) I had put a nice brick work pattern over a boring metal pattern and some nice cobble stones where a rather dull floor used to be I know it doesn't sound much but shader swapping to me is returning something to a lamp shade shop or maybe a blind shop and LOD were a WWF tag team from the early 90s

Posted: Thu Nov 08, 2007 9:50 am
by mr_penguin
This is awesome, it really helped me out when skinning containment.

I did notice that when I swapped some shaders on the map they would show as one texture in prophet and a different one in entity's bsp viewer and during game play.

Posted: Thu Nov 08, 2007 11:31 am
by grimdoomer
Entity doesent render some textures correctly, cause it too look totaly diffrent, I did a BSPshader swap and in the bsp viewer it looked like TV static but it was relly grass and dirt ingame.