Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (TedMar, VoroneTZ, vicknick), 825 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | chip programmers | 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