Why ray of light goes through wall?

Posted By: Aku_Aku

Why ray of light goes through wall? - 12/08/11 18:29

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.
Posted By: Dark_samurai

Re: Why ray of light goes through wall? - 12/08/11 19:44

Dynamic lights have no collision detection in DirectX. You will have to use a shadow mapping technic (a shader) like PSSM for that.
Posted By: Aku_Aku

Re: Why ray of light goes through wall? - 12/08/11 19:58

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.
Posted By: Aku_Aku

Re: Why ray of light goes through wall? - 12/08/11 22:01

In this case, that you gave, how can be able the engine to generate shadows?
It seems to me there is an inconsistency here.
Posted By: Redeemer

Re: Why ray of light goes through wall? - 12/08/11 22:54

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.
Posted By: Aku_Aku

Re: Why ray of light goes through wall? - 12/08/11 23:26

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?
Posted By: Redeemer

Re: Why ray of light goes through wall? - 12/09/11 00:41

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.
Posted By: painkiller

Re: Why ray of light goes through wall? - 12/09/11 01:05

you can also take a look at this shadowmapping solution: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=388687#Post388687
Posted By: Damocles_

Re: Why ray of light goes through wall? - 12/09/11 06:00

In terms of shadow-support , gamestudio is a poor mans choice.
Especially if someone does not know the engine for quite some time.

Posted By: Aku_Aku

Re: Why ray of light goes through wall? - 12/10/11 16:29

Thanks for the proposal.
Unfortunately my project uses indoor levels.
Could you propose another shader for that?
Posted By: Roel

Re: Why ray of light goes through wall? - 12/10/11 16:48

If the wall doesn't move, why not consider using static lights, as dark samurai already said.
[EDIT] he talked about realtime shadowmapping, my mistake!
Static lights are baked witth the map compiler and cast shadows.
Because you need no shaders fot this, They are also a lot faster than dynamic shadows!
For this you need to build your level with blocks in wed.


Posted By: Aku_Aku

Re: Why ray of light goes through wall? - 12/10/11 17:58

Thanks for your kind will to help, but dark samurai didn't write like this (quote from you)
Quote:
why not consider using static lights, as dark samurai already said.

Moreover, i don't use map compiler.
Quote:
For this you need to build your level with blocks in wed.

I don't need to build with blocks because i don't use WED.
Posted By: painkiller

Re: Why ray of light goes through wall? - 12/10/11 18:10

Originally Posted By: Aku_Aku
Thanks for your kind will to help, but dark samurai didn't write like this (quote from you)
Quote:
why not consider using static lights, as dark samurai already said.

Moreover, i don't use map compiler.
Quote:
For this you need to build your level with blocks in wed.

I don't need to build with blocks because i don't use WED.


actually did you read my post? http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=388687#Post388687
Posted By: Rei_Ayanami

Re: Why ray of light goes through wall? - 12/10/11 18:41

That solution is really really slow compared to other things I have seen. [Lightfrog, Shadows by Slin or Shade-C]
Posted By: Aku_Aku

Re: Why ray of light goes through wall? - 12/10/11 19:02

Actually i don't understand why did you cited my answer to Roel.

Actually i read your post and i have began to study that.
I am sorry why i didn't write this until this time.
You have to notice that, there are opinions about the slowness of that solution. Well, for all cases i do a try with that.
Posted By: painkiller

Re: Why ray of light goes through wall? - 12/10/11 19:04

Originally Posted By: Rei_Ayanami
That solution is really really slow compared to other things I have seen. [Lightfrog, Shadows by Slin or Shade-C]


If it's slow try to use lights with lower resolution, the performance gain will be huge.

Shade-c doesn't support point lights atm and LightFrog doesn't work on A8. I tried to get ShadowCollectionV3 by Slin working but there is something wrong with them, I can't see a port of the screen:



If someone knows how to fix that please let me know tongue
Posted By: Rei_Ayanami

Re: Why ray of light goes through wall? - 12/10/11 19:42

I just mean, that this solution is not really good for a game.

I would rather pay someone.
Posted By: Aku_Aku

Re: Why ray of light goes through wall? - 01/04/12 18:46

Quote:
Use a proper lighting shader like PSSM.

I searched the PSSM lighting shader in the manual, there is no hit. Only some reference to this shader.
Could you help me, where should i found this shader?
© 2024 lite-C Forums