id Tech Forums

id Tech 4 (Doom3/Prey/Q4) => id Tech 4 Models and Animations => Topic started by: vladdrak on September 10, 2014, 07:14:24 PM

Title: [SOLVED] no texture on custom mapobject
Post by: vladdrak on September 10, 2014, 07:14:24 PM
i was following a tutorial on how to export static meshes from 3dsmax to doom3. everything seems to work ok, except that neither in the editor (darkradiant) nor in the game the texture assigned to the mesh won't get applied and i'm not quite sure why, i'm really new to this, must be some really noobish stuff, but hey :> any help would be appreciated, thanks.

custom.mtr

textures/custom/trep1a
{
    qer_editorimage textures/custom/trep1a_ed.tga

    diffusemap textures/custom/trep1a_d.tga
}


thing.ASE

*3DSMAX_ASCIIEXPORT 200
*COMMENT "AsciiExport Version  2,00 - Thu Sep 11 00:19:52 2014"
*SCENE {
*SCENE_FILENAME ""
*SCENE_FIRSTFRAME 0
*SCENE_LASTFRAME 100
*SCENE_FRAMESPEED 30
*SCENE_TICKSPERFRAME 160
*SCENE_BACKGROUND_STATIC 0.0000 0.0000 0.0000
*SCENE_AMBIENT_STATIC 0.0000 0.0000 0.0000
}
*MATERIAL_LIST {
*MATERIAL_COUNT 1
*MATERIAL 0 {
*MATERIAL_NAME "01 - Default"
*MATERIAL_CLASS "Standard"
*MATERIAL_AMBIENT 0.5882 0.5882 0.5882
*MATERIAL_DIFFUSE 0.5882 0.5882 0.5882
*MATERIAL_SPECULAR 0.9000 0.9000 0.9000
*MATERIAL_SHINE 0.1000
*MATERIAL_SHINESTRENGTH 0.0000
*MATERIAL_TRANSPARENCY 0.0000
*MATERIAL_WIRESIZE 1.0000
*MATERIAL_SHADING Blinn
*MATERIAL_XP_FALLOFF 0.0000
*MATERIAL_SELFILLUM 0.0000
*MATERIAL_FALLOFF In
*MATERIAL_XP_TYPE Filter
*MAP_DIFFUSE {
*MAP_NAME "Map #1"
*MAP_CLASS "Bitmap"
*MAP_SUBNO 1
*MAP_AMOUNT 1.0000
*BITMAP "\\Purgatory\Purgatory\Doom\base\textures\custom\trep1a.tga"
*MAP_TYPE Screen
*UVW_U_OFFSET 0.0000
*UVW_V_OFFSET 0.0000
*UVW_U_TILING 1.0000
*UVW_V_TILING 1.0000
*UVW_ANGLE 0.0000
*UVW_BLUR 1.0000
*UVW_BLUR_OFFSET 0.0000
*UVW_NOUSE_AMT 1.0000
*UVW_NOISE_SIZE 1.0000
*UVW_NOISE_LEVEL 1
*UVW_NOISE_PHASE 0.0000
*BITMAP_FILTER Pyramidal
}
}
}
...
...


(http://i62.tinypic.com/676oo8.jpg)

(http://i60.tinypic.com/9rh8qs.jpg)

(http://i58.tinypic.com/14df247.jpg)
Title: Re: no texture on custom mapobject
Post by: The Happy Friar on September 10, 2014, 09:24:24 PM
The line labled "bitmap" in the .ase model needs to be the material name not the texture name.

IE instead of "\\Purgatory\Purgatory\Doom\base\textures\custom\trep1a.tga" it should be "\\base\textures\custom\trep1a".
Title: Re: no texture on custom mapobject
Post by: vladdrak on September 10, 2014, 10:02:11 PM
thanks for yr reply! i tried what you said, but it gave me the same effect, alas.
Title: Re: no texture on custom mapobject
Post by: The Happy Friar on September 10, 2014, 10:32:43 PM
In the .ase the bitmap's name is "trepla.tga" & in the material it's "trepla_d.tga".  Sure you didn't forget to add the "_d" to the filename?
Title: Re: no texture on custom mapobject
Post by: Zombie on September 11, 2014, 12:14:35 AM
You don't need to use the pugatory thing btw.

I use this if I am using ASE files "F:\games\Doom\base\textures\dungeon\dungeon_base.tga"

I just make sure my doom folder is called doom and not Doom 3 or what ever, and it works just fine and anyone else who uses it. I did this for my last level.
Title: Re: no texture on custom mapobject
Post by: vladdrak on September 12, 2014, 08:20:42 AM
tried the absolute path, but even that wouldn't resolve the issue.
i attached the pak file. would you pelase take lake a look into it? i don't know if i'm overlooking something. thank you very much!
Title: Re: no texture on custom mapobject
Post by: Zombie on September 12, 2014, 08:43:26 AM
I tested your material in Doom 3, works fine. So I thought OK, I'll make a mesh and export that with your material, that worked fine.

So then I thought maybe your export options aren't correct. http://i.imgur.com/rurFamP.jpg these are the options you need for ASE exporting.

Try that and let us know.

EDIT: Sorry if I come off as blunt/straight forward, I'm at work so I didn't want anyone to see me messing about with DOOM :)
Title: Re: no texture on custom mapobject
Post by: tron on September 12, 2014, 08:53:54 AM
I just compared that ase extract to a section of one of mine that works fine and it matches up, so the material should work fine.

Stupid question, but you do actually have the texture textures/custom/trep1a_d.tga right?
Title: Re: no texture on custom mapobject
Post by: vladdrak on September 12, 2014, 09:14:43 AM
Quote from: Zombie on September 12, 2014, 08:43:26 AM
I tested your material in Doom 3, works fine. So I thought OK, I'll make a mesh and export that with your material, that worked fine.

So then I thought maybe your export options aren't correct. http://i.imgur.com/rurFamP.jpg these are the options you need for ASE exporting.

Try that and let us know.

EDIT: Sorry if I come off as blunt/straight forward, I'm at work so I didn't want anyone to see me messing about with DOOM :)

that was it!! :D
thank you all, guys!!
Title: Re: [SOLVED] no texture on custom mapobject
Post by: Zombie on September 12, 2014, 01:18:46 PM
Woooo glad it worked!

Make sure to show off anything you're working on :D