Obsidian Conflict Forums Forum Index Obsidian Conflict Forums
Have you seen my coffee cup?
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   BanlistBanlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  GamesGames   


Dynamic Lights.

 
Post new topic   Reply to topic    Obsidian Conflict Forums Forum Index -> Coding Help
View previous topic :: View next topic  
Author Message
Foxer141
Pixel


Joined: 31 May 2010
Posts: 1

Thanks: 0
Thanked 0 Times in 0 Posts

Location: SuperSecrit
OC Cash 5

PostPosted: Mon May 31, 2010 8:53 pm    Post subject: Dynamic Lights. Reply with quote

How do i enable dynamic lighting?

Help me out here.
Back to top
View user's profile Send private message
Gary
npc_combinegunship
npc_combinegunship


Joined: 09 Nov 2008
Posts: 757

Thanks: 2
Thanked 10 Times in 6 Posts

Location: USA, FL
OC Cash 1509

PostPosted: Mon May 31, 2010 9:30 pm    Post subject: Reply with quote

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.
_________________

It is best to contact me through Steam, username is Gjsdeath.
SDK Improvement Group

Do not be rude to people, there is no reason to show hostility if you have received none.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
BigFoot
prop_static
prop_static


Joined: 03 Dec 2009
Posts: 86

Thanks: 0
Thanked 0 Times in 0 Posts


OC Cash 166

PostPosted: Mon May 31, 2010 10:03 pm    Post subject: Reply with quote

i thought i read somewhere that somehow you can enable dynamic shadows for multiple light sources...
Back to top
View user's profile Send private message
Gary
npc_combinegunship
npc_combinegunship


Joined: 09 Nov 2008
Posts: 757

Thanks: 2
Thanked 10 Times in 6 Posts

Location: USA, FL
OC Cash 1509

PostPosted: Tue Jun 01, 2010 12:28 am    Post subject: Reply with quote

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.
_________________

It is best to contact me through Steam, username is Gjsdeath.
SDK Improvement Group

Do not be rude to people, there is no reason to show hostility if you have received none.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
shiftey
npc_combinegunship
npc_combinegunship


Joined: 09 Oct 2008
Posts: 709

Thanks: 0
Thanked 0 Times in 0 Posts


OC Cash 1725

PostPosted: Tue Jun 01, 2010 1:14 am    Post subject: Reply with quote

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.
_________________
Current Projects
Back to top
View user's profile Send private message Visit poster's website
Gary
npc_combinegunship
npc_combinegunship


Joined: 09 Nov 2008
Posts: 757

Thanks: 2
Thanked 10 Times in 6 Posts

Location: USA, FL
OC Cash 1509

PostPosted: Tue Jun 01, 2010 3:20 am    Post subject: Reply with quote

Pretty much what Shiftey said.
_________________

It is best to contact me through Steam, username is Gjsdeath.
SDK Improvement Group

Do not be rude to people, there is no reason to show hostility if you have received none.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Obsidian Conflict Forums Forum Index -> Coding Help All times are GMT + 1 Hour
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Obsidian Conflict Forums
Protected by Anti-Spam ACP
Powered by phpBB © 2001, 2005 phpBB Group