www.jpct.net

General => Feedback => Topic started by: Gatobot14 on September 19, 2016, 11:22:52 pm

Title: Shaders
Post by: Gatobot14 on September 19, 2016, 11:22:52 pm
hi everyone
im using the bump shader from the wiki, the shader works fine looks good but as you can see in the picture attached, the different objects of the level are clearly visible, its not a uniform lighting,
the question, is this normal behavior?? i know that merging the objects could get rid of the problem but i though that shader are capable of creating a uniform lighting

thanks in advance
Title: Re: Shaders
Post by: EgonOlsen on September 20, 2016, 07:50:03 am
The shader's results are based on the the vertex normals and if you create a level from different blocks, this might be what you end up with, because the normals on the edges are pointing all away from the center of the block. It's the same thing with normal vertex lighting. If you don't want that, you have multiple options:

[li]
[/li][/list]
Title: Re: Shaders
Post by: Gatobot14 on September 21, 2016, 11:09:35 pm
im using wings3d, it show that the model has normals, but apparently wrong , searching the web i discover the option "hard loops" in wings3d and this apparently get rid of the normals problem.