How to make TGA-Sprites (32 Bit-Alpha) cast Shadows?

Posted By: REZ

How to make TGA-Sprites (32 Bit-Alpha) cast Shadows? - 10/06/11 20:24

Hello,

is there a way to make TGA-Sprites (32 Bit-Alphalayer) to cast Shadows?
Did try several things... no success :-(
Do I need to use a special *.fx Effect for Shadows, or could I achiev it, through running a simple Action?
If You do know help ... please let me know :-)

Have a nice weekend,

C.U. R.E.Z.
Posted By: Quad

Re: How to make TGA-Sprites (32 Bit-Alphalayer) cast Shadows? - 10/07/11 06:00

Built-in PSSM shadows does that
Posted By: REZ

Re: How to make TGA-Sprites (32 Bit-Alphalayer) cast Shadows? - 10/07/11 08:52

Hello

@ Quad: thank You for Your answer :-)
I will go for the PSSM shadows.
Need the shadows for inside Levels.


Have a nice day,

C.U. R.E.Z.
Posted By: REZ

Re: How to make TGA-Sprites (32 Bit-Alphalayer) cast Shadows? - 10/07/11 09:13

Hello,

now I did try the PSSM Shadows. Took the code for PSSM from the Help of A8.20, runs ok. No Errors.
But... all of my insidelevel is dark. Does not look ok. Seems to only use the Sun for the Shadow generation.

I think, I do have to look for Stencil-Shadows. These seem to look the way, I do want to have them look.

I do need Stencil-Shadows that are cast by (dynamic) Lights hitting TGAs in my indoor Level.
Does anyome has a hint for me? :-)

C.U. R.E.Z.


Posted By: bart_the_13th

Re: How to make TGA-Sprites (32 Bit-Alphalayer) cast Shadows? - 10/07/11 09:31

Texture projection?
Stencil won't even work on model with transparent texture, let alone TGA sprites.
Posted By: HeelX

Re: How to make TGA-Sprites (32 Bit-Alphalayer) cast Shadows? - 10/07/11 11:08

Originally Posted By: REZ
all of my insidelevel is dark. Does not look ok. Seems to only use the Sun for the Shadow generation.


Yes. PSSM shadows are only suited for outdoor levels. For indoor spotlights, adapting the softshadowmapping example in the samples\ folder might be sufficient. For point lights you have to make something on your own... there are enough papers and books about this available, like ShaderX 6, 7.
Posted By: REZ

Re: How to make TGA-Sprites (32 Bit-Alphalayer) cast Shadows? - 10/07/11 18:24

Hello

@ bart_the_13th and HeelX: Thank You for Your help :-)
Have a nice Weekend.

C.U. R.E.Z. :-)
Posted By: REZ

Re: How to make TGA-Sprites (32 Bit-Alphalayer) cast Shadows? - 10/08/11 12:22

Hello,

did take the LightShaftWithShadowMapping Demo from (AUM93) [based on Grafton's spotlight example for shadowmapping demo from aum71] for Texture Projection.
Works for the case, that there is only this one Spotlight.
But I do use several dynamic Lights in my Level.
So, gotta keep looking for a solution :-)

Best regards,

R.E.Z.
© 2024 lite-C Forums