jPCT - a 3d engine for Java > Bugs

ShadowHelper/Primitives Bug

(1/1)

AGP:
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.

EgonOlsen:
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.

AGP:
Like I said, (2, 1000) works.

EgonOlsen:
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.

AGP:
(2, 500) works, too.

Navigation

[0] Message Index

Go to full version