Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Dynamic Lights Shader Problem #292929
10/07/09 21:14
10/07/09 21:14
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Happy Birthday Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Dear shader experts,
I have a problem when I use the default mtlFX.c fx_bump or fx_specBump and dynamic lights. The manual says they support 3 dynamic lights but when all lights are clipped, the sun seems to be used and its light is added to the mesh what leads to ugly effects/ pop ups.

Video

Is there any way to avoid the influence of the sun light? My work around is sun_light = 0 but it would be much nicer if could use the sun for my levels.

Edit: The third/ right light is ignored by the shader because the other ones are closer and the sun is active.

Last edited by H.F.Pohl; 10/07/09 21:16.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Dynamic Lights Shader Problem [Re: Superku] #292944
10/08/09 01:55
10/08/09 01:55
Joined: Aug 2008
Posts: 133
Sweden, Stockholm
E
Enduriel Offline
Member
Enduriel  Offline
Member
E

Joined: Aug 2008
Posts: 133
Sweden, Stockholm
I believe this happens because the sun is treated as a dynamic light as the point lights instead of a sun light, dunno not sure? Though I have no solution for this, I bet someone else can help you out with this laugh

Last edited by Enduriel; 10/08/09 01:57.
Re: Dynamic Lights Shader Problem [Re: Enduriel] #293495
10/11/09 21:52
10/11/09 21:52
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
The sun is treated as a normal lightsource. You can check which light is which type (directional, point, spot), but you can't decide which of the lights are the first in the array. And this leads to your problem: Because the sun is most far away, it is not used, when there are enough other lights in the range of the model.

I already told jcl about it, but he said, it would be okay like it is now.

Sry, I didn't found a solution yet =/

Re: Dynamic Lights Shader Problem [Re: Scorpion] #293608
10/12/09 17:37
10/12/09 17:37
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Happy Birthday Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
OK, thank you for your answer.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

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