Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 25th May 2011 02:25
Here is another question!

I have a really dark level with lights placed throughout. My weapon looks very out of place when I'm in a dark area because It is still very bright. It would take way to much of my performance to use real time lights. I was thinking if I stored all of the positions of the lights and then checked the distance to the nearest light I would be able to change the ambient light of the weapon depending on how close I am. Does this sound reasonable?
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 25th May 2011 10:01
Actually this is how Pro's do this if not using Shaders.

But not only the ambient should be adjusted, always have the nearest light itself taking effect on the gun.

-In.Dev.X: A unique heavy story based shoot'em ~25%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
Mychal B
15
Years of Service
User Offline
Joined: 21st Jul 2010
Location: Coos bay, rainville
Posted: 25th May 2011 10:19
I haven't used real time lights, and I was thinking this would take a chunk out of my performance, wouldn't it?
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 25th May 2011 10:45 Edited at: 25th May 2011 10:46
You can use quite a few lights without a really serious affect on performance and using a lighting system like you described is a great way to minimise the number of lights to something sensible. It depends on your system but you won't be able to use more than around 8 lights most of the time anyway.

I would suggest trying to use no more than about 4 lights and store the information for all of the lights in a UDT array:

eg.


...for 100 lights.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 25th May 2011 13:18
I hope I understand you correctly, if you have extends plugin, you can use virtual lights. it's easy and fast.
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 25th May 2011 13:52
Extends only works with XP, so it is pretty much useless... and didn't mention the price and that everything in it can be done with a little brain with the standard DBP.

-In.Dev.X: A unique heavy story based shoot'em ~25%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 25th May 2011 13:57
Quote: "Extends only works with XP"

I didn't know that. I have it but never use it...

Quote: "and didn't mention the price and that everything in it can be done with a little brain with the standard DBP"

True. Also part of the fun with problems like this is finding your own solution.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 26th May 2011 04:27
virtual lights from extends does work on windows vista and windows 7. some parts of extends can no longer be used but 60% of it is still available for windows 7.

Login to post a reply

Server time is: 2026-07-10 19:47:55
Your offset time is: 2026-07-10 19:47:55