Jump to content
The Dark Mod Forums

using dds, material files not up to date


Baddcog

Recommended Posts

OK, haven't had much luck getting dds files to work on objects.

 

tried reloaddecls in DR but I get 'couldn't load....'

 

So I opened up tdm_metal_flat.mtr so I could copy paths or whatever I had wrong and get my obj working.

Looks like all the metals in this file (haven't looked into others) still have paths to the textures file where the tga's were.

 

Anyway, I can't get them to work so I won't mess with the file, it probably needs done though.

 

Here's the material I can't get to work. the editor image and the diffuse won't load or show. bumpmap works fine. I just have a black lamp pole with bumps and a little spec.

 

bc_lamp
//testing new materials
{
metal
noselfshadow
qer_editorimage dds/textures/darkmod/metal/flat/steel_scratched01

diffusemap  dds/textures/darkmod/metal/flat/solid_rust01.dds
{
	blend   specularmap 
	map	 _white
	rgb	 0.25
}
{
  blend bumpmap
  map   heightmap(models/darkmod/props/textures/bc_lamp_h, 4)
}
}

Dark is the sway that mows like a harvest

Link to comment
Share on other sites

You don't need to add the dds/ path prefix to your material definitions, this will be done automatically by the D3 engine. Just act as if the file was located in the TGA textures/ tree, your DDS will be found.

 

This appears unintuitive, and I think that could've been solved better by iD software, but oh well.

Link to comment
Share on other sites

This appears unintuitive, and I think that could've been solved better by iD software, but oh well.

 

I think it's more a conflict between the way DDS was designed to be used and the way we are attempting to use it -- ID intended for this to be a transparent cache of compressed textures that would otherwise be created automatically from the TGA originals, and did not intend for DDS to be used as the primary or sole source of textures.

Link to comment
Share on other sites

I tried without the dds/ also but got the same error.

 

Try to leave of the ".dds" at the end, too :) (All the examples I have seen leave it off)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

tried that also

 

Did you make the DDS files by yourself? I remember that I had trouble a DDS file to show up when creating it with Gimp - choosing the right compression or so seemed to be tricky. Also, make sure you restart doom, and not do just "reloadDecals" as I found that sometimes D3 didn't really reload everything as it should.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

No, just using flat metal textures out of the Dm folder. I've also restarted, but I can change specular on that material, reloadDecls and see it change in view. So the spec is working, I've just copied that material to the props/tex folder for now but would like to make some progress with the dds files.

 

Has anyone looked at tdm_metal_flat.mtr yet? I'd like confirmation that they do need to change.

Dark is the sway that mows like a harvest

Link to comment
Share on other sites

Try this:

 

bc_lamp
//testing new materials
{
metal
noselfshadow
qer_editorimage textures/darkmod/metal/flat/steel_scratched01

diffusemap textures/darkmod/metal/flat/solid_rust01
{
	blend   specularmap 
	map	 _white
	rgb	 0.25
}
{
  blend bumpmap
  map   heightmap(models/darkmod/props/textures/bc_lamp_h, 4)
}
}

 

BTW, why do you want a different material to show up in the editor (qer_editorimage) as the diffuse?

 

I just checked both textures and they do work correctly, even in the editor, so at least we know it is not them.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 0 replies
    • nbohr1more

      Trying to be productive on my down-time before Capcom releases Akuma and my son is constantly on my PC playing Street Fighter...
      · 1 reply
    • OrbWeaver

      Finally got round to publishing a tutorial on baking normal maps in Blender, since most of the ones we have are inaccessible or years out of date.
      · 2 replies
    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 4 replies
×
×
  • Create New...