2010/01/01

Textures

In Need For Speed Underground to Undercover car have archive with textures. This archive has name textures.bin. To create it from texture files use tool NFS Textures Compiler (released packages has compilers for specific game eg. NFS:U2/MW Texture Compiler for NFS: Underground 2 and NFS: Most Wanted).

NFS Texture Compiler is very easy to use tool. It creates textures.bin from source textures in Direct Draw Surface format (.dds). First thing that you must know is that compiler supports only specific compressions types DXT1, DXT3 and DXT5 (depending on the version).
There are two ways to compile textures.
First method
Create folder named 'TEXTURES' in the same folder as is compiler's executable file. Now you can copy any .dds files to this folder. Run NFS Texture Compiler and click 'Compile'. File 'textures.bin' will be automatically created in folder where is executable file. It is very simple method.
Second method
Run NFS Texture Compiler and click 'Compile'. Will be appear dialog window 'Folder Browse Dialog'. Just select folder that contains .dds files. File 'textures.bin' will be automatically created in folder where is executable file. It is very simple method.

Texture names

It is not important to use UPPERCASE letter because NFS Texture Compiler convert names automatically. Next important thing is texture name. First part of name is car's name like MIATA or CELICA (the same as folder name where will be copied created 'textures.bin'). Next you must add underscore '_' and target texture name.

Texture names used in Need For Speed Underground / Underground 2

- SHADOWFE (shadow texture used in menu)- SHADOWIG (shadow texture used in game)
- NEON (neon texture)
- TIRE (used for tires)
- INTERIOR (used for car interior)
- ENGINE (used for car engine, do not use in another part than enigne, because this part will be disappear in race)
- DOORLINE, DOORLINE_KIT, DOORLINE_KIT_MASK, DOORLINE_MASK, DOORLINE_WIDEBODY, DOORLINE_WIDEBODY_MASK
- KIT00_HEADLIGHT_GLASS_OFF, KIT00_HEADLIGHT_OFF
- KIT00_BRAKELIGHT_GLASS_OFF, KIT00_BRAKELIGHT_OFF

If you want to add style parts, you can use textures for this parts which are named like:

STYLE##_HEADLIGHT_GLASS_OFF, STYLE##_HEADLIGHT_OFF, STYLE##_BRAKELIGHT_GLASS_OFF, STYLE##_BRAKELIGHT_OFF, where ## is style number eg. 05
Texture names used in Need For Speed Carbon

- MISC- TIRE
- BADGING
- BADGING_N
- INTERIOR
- KIT00_HEADLIGHT_ON, KIT00_HEADLIGHT_GLASS_ON
- KIT00_BRAKELIGHT_ON, KIT00_BRAKELIGHT_OFF, KIT00_BRAKELIGHT_GLASS_ON, KIT00_BRAKELIGHT_GLASS_OFF

11 comments:

  1. What are maximum texture dimensions?

    ReplyDelete
  2. The maximum texture size is 2048x2048 pixels.

    ReplyDelete
  3. How can i get OBJ files?, where do i export them from??

    ReplyDelete
  4. OBJ files you can get using 3ds Max 2010 http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=13571450

    ReplyDelete
  5. The problem with textures DXT3-DOORLINES is necessary why mod-tools does not support A8R8G8B8?

    ReplyDelete
  6. agree with lexx55, NFSU360 can you create A8R8G8B8 support?

    ReplyDelete
  7. @An_dz
    for NFS:U2 ModTools? why you need this format?

    ReplyDelete
  8. Problems with textures DOORLINES.DDS format DXT1 and DXT3

    ReplyDelete
  9. @NFSU360 Yeah for NFS:U2 ModTools. The same as lexx55 said above, DOORLINES don't work with DXT1 or DXT3.
    Also opening TEXTURES.BIN from a original car, your other program (NFS-TexED) shows that they are A8R8G8B8.

    ReplyDelete
  10. I have problem with NFS-TexEd 0.9.1
    After export from photoshop texture is normal
    http://i4.fastpic.ru/big/2010/0522/5a/d1b727dc10b55eecb2b652874599bb5a.png

    But when i import road texture to nfsu2 - i see that
    http://i4.fastpic.ru/big/2010/0522/d8/9069cd35997dad9e1c28717b3b47e9d8.jpg

    mipmap is damaging ((
    http://i4.fastpic.ru/big/2010/0522/ec/3c9727c9dfb806c52a4070410eb1ceec.png

    Please fix it. Format is P8

    ReplyDelete
  11. Man, thx for tool. But what about compilation of non car textures?
    I created high res roads and generic textures mod for Underground 2 year ago, but with help of TexMod program that just hook the process and replace textures in Ram.
    This tool not perfect, its outdated, causing stability and performance issues, also its not comfortable to start game via Texmod, since it dont support command line parameters so every time you start it, you need to make few clicks to add texture packs, select exe and launch it.

    So i would really like to port my mod into native game format, but your old tool NFStex as far as i know dont allow to replace for example 128x128 texture with 1024x1024 or it causing crash of game.
    So maybe you could do generic texture compiler so i can port my high rest mod?

    You can see screenshots of my mod here http://www.xfire.com/profile/v00d00m4n/screenshots/nfsu2/
    i never released it on public, but perhaps it your tool will allow me to replace low rex textures with high res, without size limit, i will release it.

    P.S. - there is a second mod, which stuck in a a start of development - NFS MW 360 high textures for PC. If you tool will allow to extract 360 versions archives, it will help me to move further.

    ReplyDelete

Note: only a member of this blog may post a comment.