Jump to content
The Dark Mod Forums

Texture Culling


Springheel

Recommended Posts

  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

angua: Have you got this to actually work? I've just tried it on a section of wall which is func_static and can see no difference.

Does the material on the wall contain the colored keyword in its definition (in the .mtr file)?

 

Re: console commands reference, Google turned up a few (e.g. http://www.doomwadstation.com/doom3/console/ ), but I can't find any that are particularly good.

 

If you type the beginning of a console command in D3 and press Tab, you'll get a list of commands and cvars that begin with that string, which is quite useful. Also, just typing the name of a cvar will give you its current value and a brief description of the cvar.

 

There are also some useful cvars that we've added in TDM. I don't have a list, but some of them start with "tdm_", so you can use the tab trick to find them.

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

Yes, the material needs "colored" in the shader to make this work. (Sorry if I wasn't clear enough.) I've found one brick texture which has that (stone/brick/sloppymortar_colored) and it definitly works with this one (You can see an ugly green and an ugly pink version of the same stone texture)

post-483-1184834148_thumb.jpg

Link to comment
Share on other sites

So it needs 'colored' in the material file and 'color' in the property in Dark Radiant? It might be more trouble than the other method which only requires the material file to be changed.

Ah, but it's easy to change things in DarkRadiant. Changing materials is a bit more involved since it means you have to start managing assets separate from your map file. So if the material already has "colored" as standard then it makes recolouring materials easier. Might come in handy at some point.

My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.
Link to comment
Share on other sites

Yes, this might be useful for entities with multiple textures to change them all with one color property. A whole (solid/distant) building might be given a different look along with resizing and rotating. I guess there would be a performance hit if all materials had the 'colored' property like my other idea.

Link to comment
Share on other sites

I think "colored" is a shortcut for

 

red shaderParm3
green shaderParm4
blue shaderParm5

 

Where shaderparm3 - 5 are automatically set from the "color" key on the parent entity (the actual numbers may be different, I'm not certain it uses 3 - 5).

Link to comment
Share on other sites

Note that the values are multiplied with the pixel values on the texture. Hence multiplying a colour channel with 1 doesn't change anything:

rgb 1

Is this done by Doom when the game is compiled or by Dark Radiant? If DR it would be useful if it allowed greater than 1. I mean if the blue component is only say 0.1 in the original then there is no way to increase it by multiplying by 1 or less.

 

[EDIT] Except by using blend add as well as Pinkdot described.

Link to comment
Share on other sites

Is this done by Doom when the game is compiled or by Dark Radiant?

 

Neither, it is part of the rendering process which is done in realtime. I suspect that the colour value is assigned to the model vertices, not the texture itself, and then an OpenGL blend mode used to multiply the mapped texture with the underlying vertex colour.

Link to comment
Share on other sites

Don't the shaders have to be compiled themselves?

 

Compiled into what? All a shader does is specify which images should be loaded (at runtime), what properties the material should have, and what (if any) processing should be performed on the images when they are loaded.

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

    • OrbWeaver

      Has anyone had any luck with textures from Polyhaven? Their OpenEXR normal maps seem too washed out and give incorrect shading in the engine.
      · 5 replies
    • 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.
      · 1 reply
    • 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.
      · 4 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
×
×
  • Create New...