PCSS soft shadows

Implemented PCSS in Cg/Panda3d… looks kinda bad but gonna refine it.

Video - youtube.com/watch?v=FIi1uGMq12I

Source gamedev-prj3-grp1.googlecode.com/files/pcss.zip

Run shaders/shadertest.py

Todo:

  • Anyone have any ideas on how to make the penumbra borders softer? Not increase the size of the penumbra but smooth out the transition from shadowed to lit.

altho i have no real idea how to improve it, i have to admit it looks quite impressive already. good job, and keep working on it :slight_smile:

I tried that (on Mac OS 10.7, recent Panda development snapshot) and I get this error:

% ppython ShaderTest.py
DirectStart: Starting the game.
Known pipe types:
osxGraphicsPipe
(all display modules loaded.)
:loader(error): Extension of file …/models/scene.dae is unrecognized; cannot load.
Currently known scene file types are:
Bam .bam
Egg .egg
MultiGen .flt
Lightwave .lwo
DXF .dxf
VRML .wrl
DirectX .x
obj .obj
Also available: .ma .mb
Traceback (most recent call last):
File “ShaderTest.py”, line 170, in
World()
File “ShaderTest.py”, line 61, in init
self.doCrap()
File “ShaderTest.py”, line 34, in doCrap
m = loader.loadModel("…/models/scene.dae")
File “dstroot/pythoncode/Developer/Panda3D/lib/direct/showbase/Loader.py”, line 169, in loadModel
IOError: Could not load model file(s): [’…/models/scene.dae’]

Is .dae a windows-specific scene format, or is something else wrong?

That’s a COLLADA model/scene - COLLADA support in Panda is still a bit shaky at the moment. I’m guessing your version of Panda doesn’t have COLLADA support compiled in, but I’d need rdb or David to confirm this.