Jump to content
  • Advertisement


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


Help!!Shadow Volume Problem!

This topic is 5601 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

Hello!!! I have a problem with Shadow volumes. I have a column constructed by 4 polygons. If i try to cast the shadows from all the polygons the shadows sometimes is not correct. I mean this: poly1.castShadow(Light); poly2.castShadow(Light); poly3.castShadow(Light); poly4.castShadow(Light); But! If I cast the shadow of only one polygon at a time then the shadow at the polygon is casting correct. I mean this: if I write only this: poly1.castShadow(Light); or this: poly2.castShadow(Light); or this: poly3.castShadow(Light); or this: poly4.castShadow(Light); I use the z-fail way. I have an url to download the engine. But It may crash your machine if you dont have a VGA with PixelShader 2.0 support. http://omen.teipir.gr/unreal/Psycho_3DEngine_14-8-2003.zip thanks!!!!

Share this post

Link to post
Share on other sites
I had a similar problem. Take a look at you drawing direction of you polygons (colck-wise or conterclock-wise). If this doesn''t help try to draw only the shadow volumes for the polygon that are front-faceing (or backfacing, doesn''t matter, but not both) to the light.


"If it looks good, it is good computer graphics"
"If it looks like computer graphics, it is bad computer graphics"


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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!