Thursday, October 13, 2005

Fixing bugs...

Well spent the last few days working out and fixing stuff....

1st issue was the DX Lights, on my Dual GeForce 6600 I could place quite a few light in the scene, but on Neil's PC (ATI Radeon card, not sure of the exact model) he couldn't place any lights down.
Spent ages trying to work out what the problem was... turns out that his GFX Card only supports 2 lights and by default the scene already has 2 lights (a point light and a directional light), so thats why he couldn't place any lights down and I could on my machine.

The second issue was where 2 objects overlap there was flickering/tearring effect where it would draw the wrong object in front of the other. This issue kept me buzy for quite some time... and it also turned out to be something really simple. It was caused by setting the ZBuffer Near Plane to 1.0f, after changing it to something larger i.e. 15.0f it fixed the problem.

Before:

After:

Here is the fix:

matProj = Matrix.PerspectiveFovLH((float)Math.PI / 4, 1.0f, 15.0f, 10000.0f);

I also added a splash screen to the editor that displays whilst the editor is loading up.
A lot of other small issues were fixed this past week and some other improvements were made to the code, but now im concentrating on the loading of multiple x-files, hoping to get that done by Sunday night.

No comments: