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 » Mon May 31, 2010 9:53 pm

How do i enable dynamic lighting?

Help me out here.

User avatar
Gary
npc_advisor
npc_advisor
Posts: 1160
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary » Mon May 31, 2010 10:30 pm

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.
Have a question related to modding? PM me or message me on Steam(link below)

- [|YouTube|] - [|99 Bolts|] - [|Steam|] - [|Mod DB|] -

BigFoot
prop_static
prop_static
Posts: 86
Joined: Thu Dec 03, 2009 11:57 pm

Post by BigFoot » Mon May 31, 2010 11:03 pm

i thought i read somewhere that somehow you can enable dynamic shadows for multiple light sources...

User avatar
Gary
npc_advisor
npc_advisor
Posts: 1160
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary » Tue Jun 01, 2010 1:28 am

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.
Have a question related to modding? PM me or message me on Steam(link below)

- [|YouTube|] - [|99 Bolts|] - [|Steam|] - [|Mod DB|] -

User avatar
shiftey
npc_combinegunship
npc_combinegunship
Posts: 716
Joined: Thu Oct 09, 2008 4:45 pm
Contact:

Post by shiftey » Tue Jun 01, 2010 2:14 am

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.

User avatar
Gary
npc_advisor
npc_advisor
Posts: 1160
Joined: Sun Nov 09, 2008 7:21 am
Location: USA, FL
Contact:

Post by Gary » Tue Jun 01, 2010 4:20 am

Pretty much what Shiftey said.
Have a question related to modding? PM me or message me on Steam(link below)

- [|YouTube|] - [|99 Bolts|] - [|Steam|] - [|Mod DB|] -

Post Reply