Gamestudio Links
Zorro Links
Newest Posts
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
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
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
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 502 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Library Shader Rendering Issue #433845
12/07/13 21:11
12/07/13 21:11
Joined: Sep 2007
Posts: 173
USA, Florida
3dworld Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
Hi guys, I'm working in a project and I'm using mtl_specBump from the default shader library for my block walls but after I compile the game I'm getting some weird effects. Basically, if I'm standing in facing one direction the shader displays well but then if I turn a few degrees to the left or the right is like if the shader disappear, or sometimes the wall shows white. I have no clue what could be happening. Please take a look at the picture below to see what I'm referring to. Any help/advice is more than welcome:


No matter what people tell you,  words and ideas can change the world.
Re: Library Shader Rendering Issue [Re: 3dworld] #433848
12/07/13 21:25
12/07/13 21:25
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Have you checked the number of lights in range for each (problematic) mesh using mtl_lightcount (or whatever it is called)? mtl_specBump only supports 3 lights, and one of them may be for example the sun if sun_light != 0 and only two other dynamic lights are close (try setting that variable to 0 for the moment).


"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: Library Shader Rendering Issue [Re: Superku] #433852
12/07/13 21:43
12/07/13 21:43
Joined: Sep 2007
Posts: 173
USA, Florida
3dworld Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
What about if I have more than 3 lights in the room but only 1 is affecting that surface. Will that cause the issue too?


No matter what people tell you,  words and ideas can change the world.
Re: Library Shader Rendering Issue [Re: 3dworld] #433870
12/08/13 07:56
12/08/13 07:56
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
No, it's just a 8 (or 7 + sun) lights per entity limit... smirk


POTATO-MAN saves the day! - Random
Re: Library Shader Rendering Issue [Re: Kartoffel] #433897
12/08/13 16:53
12/08/13 16:53
Joined: Sep 2007
Posts: 173
USA, Florida
3dworld Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
If I use only 3 lights is renders fine, but if I add a 4th light then problem appears again.


No matter what people tell you,  words and ideas can change the world.
Re: Library Shader Rendering Issue [Re: 3dworld] #433914
12/08/13 22:00
12/08/13 22:00
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
As I've written above:

Originally Posted By: Superku
mtl_specBump only supports 3 lights,[...]


See: http://www.conitec.net/beta/amaterial2.htm

You can of course try to change the shader and add more lights (you will probably then need to use PS3.0 instead), or alternatively do what I've said in my previous post.


"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: Library Shader Rendering Issue [Re: 3dworld] #433921
12/09/13 06:08
12/09/13 06:08
Joined: Jul 2010
Posts: 283
Germany
J
jenGs Offline
Member
jenGs  Offline
Member
J

Joined: Jul 2010
Posts: 283
Germany
"light_view = NULL;"
Then write your own "light lod".
And increase the lights in the shader or make sure only three lights affecting the surface.


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