Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, Akow), 1,459 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Shader looks different on one side of a block #362448
03/08/11 11:23
03/08/11 11:23
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
I need help understanding why shaders when applied to a block (e.g. cube) some of it's sides are black, and some side look different from each other although the same shader is applied.

Also sometimes the shader is applied to the back side of the block although no light sources is near to it. I will provide the sample test project to see exactly what I mean

Here is the link to the test project
http://www.box.net/shared/zg4gtgq7d6

Last edited by Badrizmo; 03/08/11 11:27.
Re: Shader looks different on one side of a block [Re: Badrizmo] #362461
03/08/11 13:25
03/08/11 13:25
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
i don't see the difference you speak of, black parts are black because they do not recieve light, other parts are shaded differently because they reviece light from different angles.


3333333333
Re: Shader looks different on one side of a block [Re: Quad] #362687
03/09/11 10:29
03/09/11 10:29
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
I have added an extra source of light in front of the block and for my surprise the back side which was visible with a single source of light is now black (although it should still be lit by the first unmodified source of light) why did this happen

Also the new lit side by the new light source has some dark areas with steep edges (squares) how can I solve this problem and why it happens.

check the level after adding a second source of light.
http://www.box.net/shared/jqtmml7hph

Re: Shader looks different on one side of a block [Re: Badrizmo] #362690
03/09/11 11:08
03/09/11 11:08
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
your lights can not reach that sides of the column.



place them on the positions i marked with red.


3333333333
Re: Shader looks different on one side of a block [Re: Quad] #362842
03/09/11 19:29
03/09/11 19:29
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
I have moved the light sources as you mentioned and all the sides were lit, but when i move around the block I can still see dark squares http://www.box.net/shared/18yhfuul0h

To fix this problem I decided to modify the build options and decrease the tesselate shaded value to 33 and the dark squares started to vanish but still visible (smaller squares) is there anyway to get rid of them?
http://www.box.net/shared/y33d8rhyvf

I tried out to increase the tesselate shaded value to 85 and for my sudden the result was better! I though decreasing this value always increases the results
http://www.box.net/shared/gf89rvlaol

so in brief how to completly get rid of these squares despite the viewing angle, and why did at a very low tesselated shaded value the results was not good a bit higher tesselate shaded value.

Last edited by Badrizmo; 03/09/11 19:38.
Re: Shader looks different on one side of a block [Re: Badrizmo] #362846
03/09/11 19:55
03/09/11 19:55
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
This is caused by the lightmap using another uvset I think.
If it is, you will have to fix the shader to work with blocks.

Re: Shader looks different on one side of a block [Re: Slin] #362881
03/09/11 21:35
03/09/11 21:35
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
Slin I'm not sure I understand what do you mean by "lightmap using another uvset", I didn't change any settings related to the lightmap and I'm only using dynamic lights so there should be no lightmaps at all, if I understand correctly.

I'm assuming that a light map is a different name for what is known in 3dgs as shadow map. what is either an another texture layer containing lumel data or data structure holding a precomputed vertex lighting based on its distance from light source.

concering fixing the shader, I'm using the bundled shader that comes with 3dgs 8.03. I have uploaded the level after adjusting the light as recommened by Quadraxas to http://www.box.net/shared/7caf7l02t1

Re: Shader looks different on one side of a block [Re: Badrizmo] #362994
03/10/11 16:44
03/10/11 16:44
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
any ideas

Re: Shader looks different on one side of a block [Re: Badrizmo] #363001
03/10/11 17:04
03/10/11 17:04
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Try to set shademode to flat.

Re: Shader looks different on one side of a block [Re: Slin] #363152
03/11/11 10:02
03/11/11 10:02
Joined: Apr 2010
Posts: 56
Badrizmo Offline OP
Junior Member
Badrizmo  Offline OP
Junior Member

Joined: Apr 2010
Posts: 56
Slin you mentioned "you will have to fix the shader to work with blocks."

why do blocks require a different shader than models, would you please explain this for me?


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