Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,008 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ent_nextlight() - more than 7 lights? #303046
12/24/09 20:14
12/24/09 20:14
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline OP
User
BoH_Havoc  Offline OP
User

Joined: Jun 2004
Posts: 655
to your left
I don't know if it's possible to implement this, as i have no real idea on how A7's lightmanager works internally, but is there any chance of changing the ent_nextlight function so it accepts any number of lights and not only 7?
I'm asking, because i have to pass all dynamic lights there are to my deferred shader. I have no problem retriving the lights which were created by script, but retriving the dynamic lights placed in WED seems to be only possible with ent_nexlight.

Ultimately i would need the ~64 nearest dynamic lights to the camera which would then be passed to the shader.

If it isn't possible to change the ent_nextlight function, do you know of any other way to retrive WED placed dynamic lights? laugh


Oh any merry christmas and some nice days off wink


Shade-C EVO Lite-C Shader Framework
Re: ent_nextlight() - more than 7 lights? [Re: BoH_Havoc] #303098
12/25/09 08:52
12/25/09 08:52
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
hi, i posted a solution here...

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=303097&#Post303097

...just in case you missed it.

Re: ent_nextlight() - more than 7 lights? [Re: DJBMASTER] #303203
12/26/09 19:22
12/26/09 19:22
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Use c_scan for detecting the nearest lights, thats much easier than reading them out of the WMB file.


Moderated by  aztec, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1