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

    • 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 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...