Jump to content

  • Log In with Google      Sign In   
  • Create Account


About Shadow Shadow Volume


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 King19931229   Members   -  Reputation: 102

Like
0Likes
Like

Posted 22 April 2014 - 11:26 AM

I create a Shadow Volume,It is OK when i don't move the camera,But when i move the camera ,the shadow will disappear.I ask someone else 

whether it is normal,he said Yes.Did anyone encounter a problem like this,HOW to solve.(I use z_fail algorithm).

 

 

Attached Thumbnails

  • OK.JPG
  • FAIL.JPG


Sponsor:

#2 Burnt_Fyr   Members   -  Reputation: 1230

Like
1Likes
Like

Posted 25 April 2014 - 09:31 AM

You will need to give us more than just a picture, most likely, if you want a solution.

 

I would start by debuging the vertices that make up your shadow volume, and find out what is going to with them in the shader when the camera moves. It looks to me like some of the shadow volume is being clipped against the near plane, but I'm just guessing here.


Edited by Burnt_Fyr, 25 April 2014 - 09:35 AM.


#3 Hodgman   Moderators   -  Reputation: 29354

Like
0Likes
Like

Posted 25 April 2014 - 09:41 AM


disappear.I ask someone else whether it is normal,he said Yes.
It's not normal...

#4 Vortez   Crossbones+   -  Reputation: 2697

Like
0Likes
Like

Posted 25 April 2014 - 01:39 PM

Does this happen only when the camera is inside the shadow? this happened in my game, although i didn't mind it much, but i think they're a way to fix it, but yea, we need more information than that.

#5 Burnt_Fyr   Members   -  Reputation: 1230

Like
1Likes
Like

Posted 25 April 2014 - 05:24 PM

Does this happen only when the camera is inside the shadow? this happened in my game, although i didn't mind it much, but i think they're a way to fix it, but yea, we need more information than that.

IIRC, this is only an issue with depth pass shadow volumes, depth fail,(aka Carmack's reverse) should not suffer from this.


Edited by Burnt_Fyr, 25 April 2014 - 05:25 PM.


#6 King19931229   Members   -  Reputation: 102

Like
0Likes
Like

Posted 27 April 2014 - 10:47 PM

Well.I find the problem,My color mask is wrong.The final color mask should be dynamic.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS