pbfy0 / visvis

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

Z-buffer range should be set in a more sensible manner #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the range of the z buffer is set according to its bit depth. (def 
ortho in cameras.py)

This is however not their correct use. In order for these parameters to be 
meaningful, they have to be set in accordance with the dimensions of the scene.

For instance, I am currently rendering a lot of small objects (0.01 units in 
diameter). They suffer horrible z-fighting problems with these hardcoded 
z-limits.

Even as defaults, this setting is not particularly sensible, but in the end, 
youd want to either estimate these values from the extents of the scene 
automatically (hard, since it is not a very general problem), or give the 
end-user a parameter to give reasonable context dependent guesses. (which is a 
lot simpler to implement)

Ive hardcoded my own camera limits in for now. 

Thanks again for the excellent piece of software!

Original issue reported on code.google.com by hoogendo...@gmail.com on 18 May 2013 at 6:57

GoogleCodeExporter commented 9 years ago
The current Z-buffer range is hardcoded to offer good results in the range of 
0.1 - 1000 or so. The Axes actually does have a sense of its size, so I guess 
it should be possible to set the Z-buffer range accordingly. Allowing the user 
to override the default behavior would be helpful too.

Original comment by almar.klein@gmail.com on 19 May 2013 at 1:57