Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Why ray of light goes through wall? #388913
12/08/11 18:29
12/08/11 18:29
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
Please tell me, what do i do wrong?
I put three objects into a level.
A. a spotlight
B. a wall
C. a crate
The wall is between A and C. If i turn/rotate the direction of the spot light (A) to C it will be illuminated.
It seems to me the ray of light from A goes through the wall (B).
Why?
My system is Win7, 3DGS 7.86 (latest) Comm. Edition.
Thanks in advance.

Re: Why ray of light goes through wall? [Re: Aku_Aku] #388923
12/08/11 19:44
12/08/11 19:44
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Dynamic lights have no collision detection in DirectX. You will have to use a shadow mapping technic (a shader) like PSSM for that.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: Why ray of light goes through wall? [Re: Dark_samurai] #388924
12/08/11 19:58
12/08/11 19:58
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
I try to understand that you wrote. But i fear i did it.
Could you point out, where can be found this information in the manual? I would like to know more on this.

Re: Why ray of light goes through wall? [Re: Dark_samurai] #388941
12/08/11 22:01
12/08/11 22:01
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
In this case, that you gave, how can be able the engine to generate shadows?
It seems to me there is an inconsistency here.

Re: Why ray of light goes through wall? [Re: Aku_Aku] #388948
12/08/11 22:54
12/08/11 22:54
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
There is no inconsistency. PSSM is a shader that handles dynamic world lighting and shadowing. By default, Gamestudio cannot cast dynamic shadows from world geometry.


Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: Why ray of light goes through wall? [Re: Redeemer] #388959
12/08/11 23:26
12/08/11 23:26
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
I use stencil shadows. This is a built-in shader, if GS cannot cast dynamic shadows. Am i right?
What/Which shader should i use and how to get correct lighting on a level entity surface when it illuminated by an dynamic spot light and when it isnt illuminated?

Re: Why ray of light goes through wall? [Re: Aku_Aku] #388969
12/09/11 00:41
12/09/11 00:41
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
Stencil shadows are only cast from entities. As I said, by default Gamestudio cannot cast dynamic shadows from world geometry.

Originally Posted By: Aku_Aku
What/Which shader should i use and how to get correct lighting on a level entity surface when it illuminated by an dynamic spot light and when it isnt illuminated?

Use a proper lighting shader like PSSM.

Last edited by Redeemer; 12/09/11 00:45.

Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: Why ray of light goes through wall? [Re: Redeemer] #388976
12/09/11 01:05
12/09/11 01:05
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
you can also take a look at this shadowmapping solution: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=388687#Post388687


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Why ray of light goes through wall? [Re: painkiller] #388992
12/09/11 06:00
12/09/11 06:00
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
In terms of shadow-support , gamestudio is a poor mans choice.
Especially if someone does not know the engine for quite some time.


Re: Why ray of light goes through wall? [Re: Redeemer] #389109
12/10/11 16:29
12/10/11 16:29
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 993
Budapest
Thanks for the proposal.
Unfortunately my project uses indoor levels.
Could you propose another shader for that?

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

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