Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Prozak

Projective Shadow Problems....

This topic is 5304 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, so i''m trying to get projective shadows working, but it seems I allways have some problems with it. My axis are set like: X grows to your right, Y grows to the sky, Z grows away from you. My current problem is that the shadow seems to follow the light, as you can see in these screenshots: You can see that the shadow (or simply the projected crate) is following the light instead of projecting away... My Plane settings are X=0, Y=1, Z=0, W=1 If more info is required i''ll promptly post it... Im so lost...! Jester Says: Visit Positronic Dreams!
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"I say we take off and nuke the entire site from orbit. It''s the only way to be sure."

Share this post


Link to post
Share on other sites
Advertisement
Ok, heres another pic:


I painted the shadow black, cause the engine doesnt do that for itself yet.

As you can see, the shadow grows towards the light, instead of geting projected in the opposite direction...

Jester Says: Visit Positronic Dreams!
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"I say we take off and nuke the entire site from orbit. It''s the only way to be sure."

Share this post


Link to post
Share on other sites
I''ve tried inverting some values, that doesnt seem to work, i guess because inverting something on one point, ruins everything else...

this is trully mind-bogling for me....

Jester Says: Visit Positronic Dreams!
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"I say we take off and nuke the entire site from orbit. It''s the only way to be sure."

Share this post


Link to post
Share on other sites
I''m just wondering, are you just drawing the same image, just flattened onto a specific plane (but in the last case, drawn without color/texture). I guess I don''t know exactly what ''projective shadow'' means, because stencil shadow volumes are projected outwards too

Share this post


Link to post
Share on other sites
shadow: I think i messed up the push/pop matrix calls in my first atempts, and that messed up the final position/ orientation of the shadow.

This shadow is the projection of the object onto a plane, the images show the object projected.

Usually a few more steps are involved, in which the shadow is drawn black and blended with the floor, and stenciled with the stencil buffer, the stencil itself being the floor again...

This method of shadowing therefore isnt shadow volumes...

Jester Says: Visit Positronic Dreams!
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"I say we take off and nuke the entire site from orbit. It''s the only way to be sure."

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!