Shadowvolume (Fixed now)
Posted: Sun Jun 04, 2006 9:08 pm
I have tried several times today with adding a shadowvolume to one of my objects but it does not show up at all, neither in the game nor ZE.
First, I made a very simple and closed mesh called "shadowvolume" and put it inside my model (as a child of the main mesh), branch selected everything as usual and saved. Then I loaded all objects with collison in ZE, had my lights on DIR with shadows on, burned the terrain, saved and munged. The Pandemic objects cast their usual shadows but not my own piece. I have tried both to have the shadowmesh hidden or unhidden - makes no difference.
Also, even though the shadowmesh was smaller than the main-mesh and not visible in any way if I kept it unhidden - it made the real mesh lose some UV-information, even though the main mesh is exactly as before. Or perhaps it was simply visible through the main mesh, but that should be impossible since all its vertices were safely inside the main mesh. The normals are correctly angled.
First, I made a very simple and closed mesh called "shadowvolume" and put it inside my model (as a child of the main mesh), branch selected everything as usual and saved. Then I loaded all objects with collison in ZE, had my lights on DIR with shadows on, burned the terrain, saved and munged. The Pandemic objects cast their usual shadows but not my own piece. I have tried both to have the shadowmesh hidden or unhidden - makes no difference.
Also, even though the shadowmesh was smaller than the main-mesh and not visible in any way if I kept it unhidden - it made the real mesh lose some UV-information, even though the main mesh is exactly as before. Or perhaps it was simply visible through the main mesh, but that should be impossible since all its vertices were safely inside the main mesh. The normals are correctly angled.