Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions