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
1 registered members (TipmyPip), 18,633 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
Dynamic Lights / Map Entities #47289
06/06/05 11:45
06/06/05 11:45
Joined: May 2005
Posts: 17
Z
Zothen Offline OP
Newbie
Zothen  Offline OP
Newbie
Z

Joined: May 2005
Posts: 17
Is it really true that the amount of dynamic lights is limited to 8 displayed at the same time?

Further, is it true that map entities, such as doors,lifts etc, arent affected by dynamic lights?

If so, how should it be possible to create a realistic looking game using the A6 engine?

Re: Dynamic Lights / Map Entities [Re: Zothen] #47290
06/06/05 12:50
06/06/05 12:50
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
Is it really true that the amount of dynamic lights is limited to 8 displayed at the same time?


yes, you can thank Microsoft and thier Direct X for that. nothing to do with engine

is it true that map entities, such as doors,lifts etc, arn't affected by dynamic lights?

yes and no. they are effected by dynamic flat lighting


how should it be possible to create a realistic looking game using the A6 engine?

just like its done in any other engine. planning and learning your tools and learning problem solving methodologies.

Re: Dynamic Lights / Map Entities [Re: Grimber] #47291
06/06/05 13:01
06/06/05 13:01
Joined: May 2005
Posts: 17
Z
Zothen Offline OP
Newbie
Zothen  Offline OP
Newbie
Z

Joined: May 2005
Posts: 17
Thanks for your answer, Grimber!

You say its a DirectX limit of 8 simultanous dynamic lights?

Could you tell me the difference between "normal" and flat dynamic light and if its possible to simulate a players torch or flashlight affecting geometry as well as map entities?

Re: Dynamic Lights / Map Entities [Re: Zothen] #47292
06/06/05 14:21
06/06/05 14:21
Joined: Dec 2003
Posts: 401
Germany, Bonn
VampireLord Offline
Senior Member
VampireLord  Offline
Senior Member

Joined: Dec 2003
Posts: 401
Germany, Bonn
I don't know, but if you plan on using shaders in your game, you could use a per-pixel lightning shader.

Correct me if I am wrong and you might want to take a look at the shader forum.

Greetings


"Feathers shall raise men even as they do birds, toward heaven; that is by letter written with their quills." - Leonardo da Vinci

Wer mir eine e-mail schicken will ersetze ANTISPAM durch @
If you want to send me an email replace ANTISPAM by @
Re: Dynamic Lights / Map Entities [Re: VampireLord] #47293
06/06/05 14:38
06/06/05 14:38
Joined: Jul 2000
Posts: 11,321
Virginia, USA
Dan Silverman Offline
Senior Expert
Dan Silverman  Offline
Senior Expert

Joined: Jul 2000
Posts: 11,321
Virginia, USA
The 8-dynamic light limitation is actually a HARDWARE limitation, so you can thank your video card developers as well .


Professional 2D, 3D and Real-Time 3D Content Creation:
HyperGraph Studios
Re: Dynamic Lights / Map Entities [Re: Dan Silverman] #47294
06/06/05 14:43
06/06/05 14:43
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
with shaders (at least with the higher versions) you don't have the 8 light limitation anymore. it's just a fixed function limitation.

Re: Dynamic Lights / Map Entities [Re: Dan Silverman] #47295
06/06/05 14:48
06/06/05 14:48
Joined: May 2005
Posts: 17
Z
Zothen Offline OP
Newbie
Zothen  Offline OP
Newbie
Z

Joined: May 2005
Posts: 17
Sorry, but it dont makes sense to me that ALL video cards are limited to 8 dynamic (hardware) lights.

Thanks for the hint for using shaders, but can they help me creating a "Thief"-like environment? Imagine a room with, lets say, 10 torches, casting (dynamic) light and the player is able to extinguish the flames to make the room completely dark. Possible in A6 or not?

Re: Dynamic Lights / Map Entities [Re: Zothen] #47296
06/06/05 15:00
06/06/05 15:00
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
possible, but you have to know how to program shaders and you need a very fast gpu.



btw. i think the 8 light limitation means that you are limited to 8 lights per rendered surface. 3dgs is limited to 8 dynamic lights per level though because the light management system which can find the nearest lights of a surface isn't done yet.

Re: Dynamic Lights / Map Entities [Re: Zothen] #47297
06/06/05 16:36
06/06/05 16:36
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
The hardware limit of 8 seems strict, but really its not like that. The current A6 engine does lighting all in one pass, and only 8 light positions for the whole scene are passed for rendering.. there are ways around this, and if you look on the A6 forcast page, they mention a new light management system in the works. This will, i believe, get around the 8 light limit by calculating 8 lights per vertex or entity .. what this means is, rarely will you have more than 8 lights affecting one vertex.. so if you calculate light positions for n number of lights, you can also somehow stick a tag on each vertex that says which lights affect it. So while each entity can't be lit by more than 8 lights, you could theoretically have an unlimited number of lights on the screen at one time.

This is of course one way around the limit, the otehr is through vertex/pixel shaders as mentioned before. But frankly, calculating more than 8 or so lights per vertex in any method is slow and requires multiple passes. Basically this light limit is not a real problem, just needs some imagination to get around.

In any case, remember that you can as many lights as you want, just cant have more than 8 on at one time, so you can have a script that turns off lights when they are a certain distance fomr the camera.

Re: Dynamic Lights / Map Entities [Re: Matt_Aufderheide] #47298
06/07/05 05:58
06/07/05 05:58
Joined: May 2005
Posts: 17
Z
Zothen Offline OP
Newbie
Zothen  Offline OP
Newbie
Z

Joined: May 2005
Posts: 17
Thanks all for the valuable help!


Moderated by  HeelX, 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