Error when intializing shadows

cobra8472

25-02-2006 20:48:16

Hello again,

I'm having issues with shadowing in my city project. It's a large city wich has been turned into one mesh (collapsed). It's about 80,000 polygons but runs smooth in ogre. When i place a light and try to intialize shadows in oFusion i get a exception thrown at me. The normal 'An exception has been thrown.. resave your work'. I've tried all shadow types and all light types, no luck. If they are in seperate objects the shadows work but the scene becomes scrambled when i reset XForm (i need to flip polygons, about 20,000 of them).

What am i doing wrong? Thanks!

Lioric

27-02-2006 16:39:53

This probably has to do with the mesh and the edge list constructor

We will start with a binary search for the mesh part that causes the issue:

On your single mesh (the big mesh) detach the half part to another object and see what side causes it, then repeat this process on the object that has the issue, an so on until you reduce the mesh to a small part where you can see if there are some bad polygons

Or see what happens if you export the scene (whitout shadows), open the scene file in your text editor and in the shadow section change the "type" attribute to "1" and load in the viewer or in your application