Dynamic Lights.

C++ Got ya down? Half-Life 2 Coding Related.
Post Reply
User avatar
Foxer141
Pixel
Posts: 1
Joined: Mon May 31, 2010 7:37 pm
Location: SuperSecrit

Dynamic Lights.

Post by Foxer141 »

How do i enable dynamic lighting?

Help me out here.
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

Like, real shadow-mapped dynamic shadowing/lighting?

Source fails when it comes to this, both in methods and implementation.

You can only have one in the entire scene, including the flash light. Though if you disable the flash light or during a cut-scene you can create your own with the env_projectedtexture entity.


If you mean the old system, which does not create dynamic shadows, use light_dynamic.
BigFoot
prop_static
prop_static
Posts: 86
Joined: Thu Dec 03, 2009 11:57 pm

Post by BigFoot »

i thought i read somewhere that somehow you can enable dynamic shadows for multiple light sources...
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

All you can do is allow for multiple shadow-mapped lights, so you can have more then one env_projectedtexture in a map and a flashlight. Though this value must be raised through the code, so you can't do it for O.C.

Also parenting and a few other problems with this entity, so really it's not the best light source.
shiftey
npc_combinegunship
npc_combinegunship
Posts: 705
Joined: Thu Oct 09, 2008 4:45 pm
Contact:

Post by shiftey »

only use dynamic lights if it is absolutely necessary for an effect. they are terrible for fps and most of the time look glitched or shitty.
Gary
npc_advisor
npc_advisor
Posts: 1125
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary »

Pretty much what Shiftey said.
Post Reply