Jump to content
The Dark Mod Forums

Increasing Light Radius of Entities


Springheel

Recommended Posts

I feel like I should be able to find this easily, but after some time searching both here and on the wiki, I can't.

 

How do you modify the radius of premade light entities? I'm finding that I can crouch directly under a candle half-way up a wall and be virtually unlit, which is pretty useless.

Link to comment
Share on other sites

Easy and we can change the colour (as per the advice given to me by Fids!)

 

With lanterns and such it is 'light' and with torches and candles etc it is 'flame'.

 

The two things you can set are light_radius and _color. So, examples...

 

 

set _color on flame 0.9 0.8 0.7

set light_radius on flame 250 250 250

 

set _color on light 0.9 0.8 0.7

set light_radius on light 250 250 250

Edited by Bikerdude
Link to comment
Share on other sites

set _color on flame 0.9 0.8 0.7

set light_radius on flame 250 250 250

 

set _color on light 0.9 0.8 0.7

set light_radius on light 250 250 250

 

I believe the exact syntax is:

 

"set _color on flame" "0.9 0.8 0.7"

"set light_radius on flame" "250 250 250"

 

 

"set _color on light" "0.9 0.8 0.7"

"set light_radius on light" "250 250 250"

Link to comment
Share on other sites

"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

I don't have time but we could possibly use a new wiki article something like Light FAQ with these plus things like how do you make a light that has a shadow but doesn't fade (it's a special texture but not easy to guess.) and how to do moonlight, sunlight, adjusting projected lights, anything that's perhaps not covered in other wiki articles that are not easy to find the info.

Link to comment
Share on other sites

a contribution for said Light FAQ: please mention the noshadows_lit spawnarg that is not listed as an option for many light entities. i had to go treasure-hunting for that little gem for a few of my lights that i didn't want to cast self-shadows, as i forgot the name of the spawnarg.

 

I also seem to remember some sort of spawnarg like noselfshadow or something, but i can't find any documentation on bloodgate.

Link to comment
Share on other sites

noshadows_lit spawnarg that is not listed as an option for many light entities. i had to go treasure-hunting for that little gem for a few of my lights that i didn't want to cast self-shadows, as i forgot the name of the spawnarg.

 

I don't understand that. What would be the effect of making a light not cast self-shadows?

Link to comment
Share on other sites

i have a feeling you understood what I said, but are poking fun at my poor choice of words :D

 

what i meant is... ahh screw it i'm just gonna post the description from bloodgate:

If set to true, the model of the light holder will only cast a shadow when all attached flames are extinguished. That avoids ugly selfshadows from the attached light, but still keeps shadows from other lightsources to aid depth perception and realism. If set to true, also set noshadows to true for unlit and to false for the lit version.

 

works with lights that don't use flames as well. the light attached with the model does not cast a shadow on the model itself. very useful. on entities like this, if you just add "noshadows", it makes the light not cast shadows on anything, not just its own model, so you need a different spawnarg like this one.

Link to comment
Share on other sites

i have a feeling you understood what I said, but are poking fun at my poor choice of words

 

You're giving me too much and too little credit, respectively. ;)

 

If set to true, the model of the light holder will only cast a shadow when all attached flames are extinguished. That avoids ugly selfshadows from the attached light, but still keeps shadows from other lightsources to aid depth perception and realism. If set to true, also set noshadows to true for unlit and to false for the lit version.

 

Ah, ok. The term "selfshadows" is misleading there. It's a specific term for when models cast shadows on themselves, not when a model casts a shadow on something else from a light that's bound to it.

Link to comment
Share on other sites

Ah, ok. The term "selfshadows" is misleading there. It's a specific term for when models cast shadows on themselves, not when a model casts a shadow on something else from a light that's bound to it.

 

Actually, the term is somewhat correct here, because not only does the model not cast a shadow, it also doesn't cast a shadow on itself (like f.i.the candles cast a shadow onto themselves), in addition to the candle not casting a shadow on the holder (which are two sep. things only if you know it, people might consider a holder+candle as one object).

 

But you are right, "noshadows" is a better word :)

 

I'll add the spawnarg to the wiki.

 

Edit: Done: http://wiki.thedarkmod.com/index.php?title=Combined_light_entities#noshadows_lit

"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

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.
      · 4 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.
      · 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
×
×
  • Create New...