omni360 / o3d

Automatically exported from code.google.com/p/o3d
0 stars 0 forks source link

problem with shadow-maps #242

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

The problem happens when using a shadow-map. In the example provided and 
explained in this post happens as well needles to change anything in the code: 
http://o3d.blogspot.com/2009/08/shadow-mapping-in-o3d.html.
Without any changes, there is something not right in the result, not sure 
exactly why happens, or what it is. It looks like anti-aliasing stops working, 
or some sort of problem with the z-buffer precission. If I comment line 373
transformTable[tt].shape.createDrawElements(g_pack, g_shadowMaterial);
the render looks right (of course without shadows). I realised the problem when 
implementing my own shadow-map technique, tweaking the near and far planes for 
the light view volume I got different results. It looked like some sort of 
problem with the z-buffer, but not sure what it is. 

What is the expected output? What do you see instead?
I am expecting to see the image antialiased as normally would happen.

What version of the product are you using? On what operating system?
I am using o3d-webgl, Chrome 12.0.742.68 beta-m on Windows XP SP2.

What hardware are you using:  graphics card type?  motherboard type?
I tried with my desktop computer (Nvidia 8800GT) and a macbook pro 17 inch, mid 
2010. Nvidia 330M GT.

Please provide any additional information below.

Looking forward to your answer, any help, hint... :)

Original issue reported on code.google.com by rudia...@gmail.com on 30 May 2011 at 12:50