Jump to content
The Dark Mod Forums

How can I get light with shadows but no falloff?


Fidcal

Recommended Posts

How can I get light with shadows but no falloff? The spawnarg/value falloff 0 seems to have no effect.

 

I have a big recessed internal window and want to just add a little ambient but it doesn't look right. There is a plant pot which is lit all around with no shadow if I use a normal ambient light.

 

I can get it looking reasonable with a normal light but if you stand on the window sill then the player is bright lit.

 

Guess I'll remove the plant pot if it's not possible to have no falloff except with noshadows.

Link to comment
Share on other sites

The falloff is computed by the light texture, so if you use a full white (_white?) for the texture, it should have no falloff.

"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

So.... I make a new texture with just map _white in it? And call it say lights/allwhite? And add that texture to the light?

 

Either try what FieldMedic says, or simply use "_white" in the box for the light entitie's texture. If that fails, try "textures/darkmod/sfx/white" or "textures/sfx/white", I forgot if these already exist.

"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 have the impression that there may be confusion about the texture for XY falloff (projection image) verses the Z falloff (falloff image) based on the initial posts (and all the confusion in the Light Baking thread).

 

I presume that Tels had correctly identified that Fidcal's problem was for the Z falloff but I am not sure that Fidcal (et al) have been clear about the remedy

 

lights/My_Custom_Light1 
{ 
lightFalloffImage makeIntensity( _white ) 
	{ 
	forceHighQuality 
	map textures/lights/map_specific/My_Custom_Light1_XY 
	zeroClamp 
	} 
} 

Edited by nbohr1more

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

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

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