Normal map

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

Moderator: Moderators

Filthy Thief
Posts: 89
Joined: Fri Jul 25, 2008 4:59 pm

Normal map

Postby xXxINSANITYxXx » Thu Aug 21, 2008 11:28 pm

i have a normal map for my (a secret) object and how do i apply it in xsi and then later in swbf2? like thename_norm.tga or something?

Gametoast Staff
User avatar
Posts: 3294
Joined: Mon Aug 21, 2006 6:23 am

RGB normal maps instead of greyscale bumpmaps

Postby AceMastermind » Fri Aug 22, 2008 1:15 am

Select the polygons you want flagged as bump mapped
Go to: File>Pandemic Tools>Edit Flags
Select Rendertype 27
Type the name of your normal map in the Texture1 input field: DiffuseName_bump.tga
Press OK, close the window and export when ready
Create a DiffuseName_bump.tga.option file
open it and type:
-format bump
then save and close

This works, but you have to set your lighting quality to high in order to see it, but playing maps with high lighting quality may cause some maps to crash on some machines.

Here's the low quality "test" normal map that I used as a bump texture on a standard cylinder:
Hidden/Spoiler:
Image

Here's the cylinder ingame with lighting quality on high:
Hidden/Spoiler:
Image

Here's the cylinder ingame with lighting quality on low:
Hidden/Spoiler:
Image


You can use an Ultimapper property in XSI to generate very nice normal maps.


Render types image numbered for reference:
Hidden/Spoiler:
Image




Other notes from misc_documentation.doc
    Bump Map Options
    Every bump map needs to have an option file. Each bump map should have the following options:
    -format bump (or terrain_bump, or bump_alpha, or terrain_bump_alpha)
    If the input image file is a grayscale height map, as opposed to a normal map generated by some tool, it should also specify:
    -bumpmap or –hiqbumpmap
    -bumpscale <value> to set the steepness of the bumps (6.0 is a good starting value)
    One more note about bump mapping: a lot of the time a diffuse texture will have shadowing burned into the texture. Ideally, for bump mapped materials, you should try to remove any shadowing from the diffuse texture, since the bump mapping will put in shadows dynamically.

msh.option (e.g. -bump treebark)
Image

tga.option (e.g. -format bump)
Image

-----------------------------------------------------------------------------------


This part wasn't necessary, the normal map worked fine without it:
Hidden/Spoiler:
Create a MshName.msh.option file
open it and type:
-bump DiffuseName_Without_Extension
then save and close



Example msh from the assets that has bump mapping:
    dea1_bldg_corridor_prison1.msh
    It has a msh.option file with only this in it:
    -vertexlighting
    This msh has several textures, one of the textures is named:
    dea1_bldg_blast_corridor.tga
    there is no tga.option file for this texture
    It does have a bump texture named:
    dea1_bldg_blast_corridor_bump.tga
    this bump texture has a tga.option file named:
    dea1_bldg_blast_corridor_bump.tga.option
    with this in it:
    -bumpmap -format bump_alpha -bumpscale 6.0
    This asset is using the grayscale (black to white 32bit rgb image) type of bump map though.

Normalmaps for the Technical Game Modeler
Normal map information on the Polycount Wiki
Bump maps vs Normal maps
Understanding normal maps

Filthy Thief
Posts: 89
Joined: Fri Jul 25, 2008 4:59 pm

Re: Normal map

Postby xXxINSANITYxXx » Fri Aug 22, 2008 3:34 am

k will do

2008 Most Original Avatar
User avatar
Posts: 3101
Joined: Sun Aug 20, 2006 5:55 pm
Location: X-Fire: caleb1117 ಠ_ಠ
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Normal map

Postby Caleb1117 » Fri Aug 22, 2008 6:56 am

It would be easier I think to use Rep's Mesh tool to add a bump map after export.

Sith Master
User avatar
Posts: 2768
Joined: Tue Oct 02, 2007 10:51 am
Location: Ghosting around GT
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set

Re: Normal map

Postby MandeRek » Fri Aug 22, 2008 7:10 am

Caleb1117 wrote:It would be easier I think to use Rep's Mesh tool to add a bump map after export.


True, but though Rep's meshtool is awesome, Edit Flags had loads of rendertypes and options, and i think Ace is experimenting a bit and seeing what fits best.. Or not Ace? :) (Ace: No not really, you're talking Dr. Pepper again)

Gametoast Staff
User avatar
Posts: 2267
Joined: Sat May 13, 2006 12:34 am
Location: Origin name GT_FragMe
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set

Re: Normal map

Postby FragMe! » Fri Aug 22, 2008 11:39 am

Further to what AceMasterMind had mentioned, you may also need a msh.option file with the following in it:

-bump nameoftga

nameoftga = name of the bump map but name only no extension.

Found this out when Rep and I were testing the bump for his soldier model

Filthy Thief
Posts: 89
Joined: Fri Jul 25, 2008 4:59 pm

Re: Normal map

Postby xXxINSANITYxXx » Fri Aug 22, 2008 1:51 pm

k, its not a bump, its a normal map, will it still have to have the same thing?

and ill get to all this after i fix my envolope bones problem where the foot bone recives points from the other foot

Gametoast Staff
User avatar
Posts: 3294
Joined: Mon Aug 21, 2006 6:23 am

Re: Normal map

Postby AceMastermind » Fri Aug 22, 2008 2:46 pm

xXxINSANITYxXx wrote:k, its not a bump, its a normal map, will it still have to have the same thing?

We are well aware that you want to use a normal map as opposed to a grayscale image, hence the title of this topic, just follow the instructions and see what happens.

Filthy Thief
Posts: 89
Joined: Fri Jul 25, 2008 4:59 pm

Re: normal map

Postby xXxINSANITYxXx » Fri Aug 22, 2008 3:34 pm

Hidden/Spoiler:
AceMastermind wrote:Select Rendertype 27


Image
.... uhhh... which is the rendertype 27?

Gametoast Staff
User avatar
Posts: 3294
Joined: Mon Aug 21, 2006 6:23 am

Re: Normal map

Postby AceMastermind » Fri Aug 22, 2008 3:58 pm

I see you're using the older Pandemic tools xsiaddon, in that case it would be Render Bumpmap, but it'll all be for nothing since you're using Mod Tool. :?

Filthy Thief
Posts: 89
Joined: Fri Jul 25, 2008 4:59 pm

Re: Normal map

Postby xXxINSANITYxXx » Fri Aug 22, 2008 4:08 pm

oh, ok, ill do that. um, where are the new xsi addon?

Gametoast Staff
User avatar
Posts: 3294
Joined: Mon Aug 21, 2006 6:23 am

Re: Normal map

Postby AceMastermind » Fri Aug 22, 2008 4:11 pm

The new one came with the BF2_modtools when you installed them, you can find it in the main folder.

*updated my first post with more info*

Filthy Thief
Posts: 89
Joined: Fri Jul 25, 2008 4:59 pm

Re: Normal map

Postby xXxINSANITYxXx » Fri Aug 22, 2008 5:49 pm

ok, in the msh.option, say my normal map is called chief_norm.tga, do i just add chief_norm or just chief?

And how do u know if pandemic tools edit flags worked?
...
And a nother ?, should i make colision for a character?

Gametoast Staff
User avatar
Posts: 3294
Joined: Mon Aug 21, 2006 6:23 am

Re: Normal map

Postby AceMastermind » Sat Aug 23, 2008 2:10 am

Conclusion
Well, normal maps do work in BF2(See my first post), but you have to set your lighting quality to high in order to see it(or at least I had to), and playing maps with high lighting quality may cause them to crash on some machines.

Note:
I didn't use a msh.option file or a diffuse.tga.option file with this test run, I simply used an odf, msh, diffuse.tga, diffuse_bump.tga and diffuse_bump.tga.option
*updated my first post*

Return to 3D Modeling & Animation

Who is online

Users browsing this forum: No registered users and 2 guests