thanks it works now and need to finish the rest of the shadow
its works even better if you set the stencil stuff to transparent even though it is not showing. I guess it effects draw order better then my manual sorting … which does not do any thing
it still does not give them. It gives me only 1 or 0 bits. Is there any way around this problem as soon as i get the panda compiled i will try to find where the stencil source is.
How do you build the edges and extrude it ? iterating through the vertex data in Python ?
I would do that since I don’t have any C/C++ exp. That’s what keep me away from it.
this is a cool thing from McCool :
Shadow Volume Reconstruction from Depth Maps
Michael D. McCool
University of Waterloo
This is awesome work Treeform!
I’m currently using the shadow algorithm that is also going to be included in 1.4.0 - but I achieve very pixely shadows there. I’m looking forward to see this shadow working in my program!
Oh, and a question: can your method also project shadows on different objects than just a plane?
pro-rsoft: yes it shadowed itself in the image. There is not real “lights” or shades in the scene. Yes iterating in python and making a new 3d shadow solid is the major slow down. But it can be used to generate a solid for say a game level once during startup.