Author Topic: ShadowHelper/Primitives Bug  (Read 1983 times)

Offline AGP

  • quad
  • ******
  • Posts: 1524
    • View Profile
ShadowHelper/Primitives Bug
« on: December 09, 2013, 10:12:25 pm »
At (1, 600) I can create a Receiver plane which successfully displays shadows. At (1, 1000), it doesn't work. (2, 1000) does. I would think that it's an issue with the way in which ShadowHelper displays its shadows. And I would be happier without the extra polygons.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11769
    • View Profile
    • http://www.jpct.net
Re: ShadowHelper/Primitives Bug
« Reply #1 on: December 09, 2013, 10:23:39 pm »
I see no direct relation between the polygon count of the plane and projected shadows...it might be because such large polygons get clipped in the depth rendering stage (where the scene will be viewed from the light source), because their vertices are all too far away. Try to see if it helps to increase the far clipping plane before updating the shadow map (and revert that change after) or simply increase the polygon count of the plane (like (2,500) instead). 1000 is a pretty large size for a polygon anyway. On some Android devices, you might run into accuracy problems with such sizes.

Offline AGP

  • quad
  • ******
  • Posts: 1524
    • View Profile
Re: ShadowHelper/Primitives Bug
« Reply #2 on: December 09, 2013, 10:39:22 pm »
Like I said, (2, 1000) works.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11769
    • View Profile
    • http://www.jpct.net
Re: ShadowHelper/Primitives Bug
« Reply #3 on: December 09, 2013, 10:57:21 pm »
Yes, but that doesn't create a plane with the same size as 1,1000 would. That's why i suggested to use 2, 500 instead. Or try that far plane thing that i mentioned.

Offline AGP

  • quad
  • ******
  • Posts: 1524
    • View Profile
Re: ShadowHelper/Primitives Bug
« Reply #4 on: December 09, 2013, 11:20:03 pm »
(2, 500) works, too.