Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (ozgur, TipmyPip), 722 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Toggleable static lights? #471555
03/09/18 13:32
03/09/18 13:32
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Is there any way to toggle static (baked) shadowmap/lights? I want to be able to toggle/shoot lights like in older games (half life 1, counter strike etc).

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Toggleable static lights? [Re: 3run] #471608
03/10/18 22:15
03/10/18 22:15
Joined: Aug 2003
Posts: 118
Deutschland
E
Ezzett Offline
Member
Ezzett  Offline
Member
E

Joined: Aug 2003
Posts: 118
Deutschland
I would do it exactly the opposite way by leaving the required walls in the dark without a static light at compile time and placing a dynamic light at runtime which can be toggled off or on.

I think most of the old games did it the same way. Some games used special techniques for blending in or out pre-baked shadows via dynamic lights to get a more realistic result like Thief. This would be exactly what you are looking for. But I don't think that Acknex offers this functionality without writing your own shader and with today's hardware dynamic lights can also cast good looking shadows, so you should try it with dynamic lights.

You can manipulate the static lightmap of a block by using a shader if you want to.

The manual says:
Quote:
If a technique name contains the character sequence "_lm", it is used for rendering lightmapped blocks, models, or terrain. In the case of blocks or models, the second skin (entSkin2) contains the lightmap.

But I think it would be harder to do because you would need to manipulate the influenced lightmapped blocks individually. You would do it like in the game Thief. If the light was hit you would tell all the blocks in a certain radius to increase their shadow map opacity. But you need to be careful not to influence the blocks that are inside the radius but on the other side of the wall and need to stay lit.

Re: Toggleable static lights? [Re: Ezzett] #471627
03/11/18 21:04
03/11/18 21:04
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hi there!

Dynamic lights is a good solution, but then there won't be any shadowmaps. And they also pass throw the walls.. And I can't effort myself to have/write shadowmapping shader to use dynamic shadows (it's too much for oldschool project). I'm aiming to have static shadows, but toggleable (with lights).

About using a shader to manipulate the static lightmap, is there anyone willing to help me out? Maybe even for money (would like to know, how much would it cost).

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  Blink, Hummel, Superku 

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