Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, ozgur, Quad), 841 guests, and 0 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
Disable static lights?? #448537
02/10/15 02:28
02/10/15 02:28
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Is it possible to disable static lights in a level at runtime, that were placed in WED? I have my level looking good with static lights, but at some point in my game, I'd like to be able to "shut off" all of the lights and turn on some programmed dynamic lights, and later switch it back. I tried just removing all of the 250+ static lights and replacing them with scripted dynamic ones, but either my computer sucks at rendering it (wouldn't be surprised) or the shadows created are just blocky and awful. Also curveball, I can't use shaders (just incase that would have been a possible solution)...

Re: Disable static lights?? [Re: xbox] #448542
02/10/15 06:46
02/10/15 06:46
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
turn the lighmap skin off ?


Compulsive compiler
Re: Disable static lights?? [Re: Wjbender] #448543
02/10/15 06:46
02/10/15 06:46
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
turn the lightmap skin off ?


Compulsive compiler
Re: Disable static lights?? [Re: Wjbender] #448563
02/10/15 16:03
02/10/15 16:03
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
after searching the manual for lightmap because I was unsure of what you were suggesting, I've reached a possible solution. The manual suggests entSkin2 is the lightmap texture for level blocks which is what I need, however this seems to be available only with shaders...is that true?

Re: Disable static lights?? [Re: xbox] #448588
02/11/15 20:51
02/11/15 20:51
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
just to clarify, I have the free version of A8 so unfortunately shaders won't help me. Unless someone else has any suggestions, I think I might just be at a loss...

Re: Disable static lights?? [Re: xbox] #448599
02/12/15 09:59
02/12/15 09:59
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
it might be possible by applying a material to the level_ent, having a fixed function effect with a simple lighting, what is supported by the free edition. not tried just an idea...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Disable static lights?? [Re: sivan] #448617
02/12/15 19:06
02/12/15 19:06
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Alright @sivan, sounds interesting. I'll give it a try tonight. Since I've never used materials before, are there any specific FFEs I should be looking for?

UPDATE: Okay so instead of creating a material, I first tried this
Code:
set(level_ent, UNLIT)

and much to my surprise, it eliminated about 95% of the static light, there's still some light but I need to investigate as to why...

Last edited by xbox; 02/12/15 21:23.
Re: Disable static lights?? [Re: xbox] #448626
02/13/15 07:56
02/13/15 07:56
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
moreover, there might be an engine bug related to runtime material change of map entities, I just made a post in the bug section, and it could valid for level blocks too...


Free world editor for 3D Gamestudio: MapBuilder Editor

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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