[Bf-committers] viewport bug #27979

Ingo Randolf ingo at quitch.net
Wed Aug 17 18:59:07 CEST 2011


Hello

I want to point some of your eyes attention to a little patch i wrote.

before submitting it to blender.org it would be great to get some critic... i'm quite new to the blenders source, so there might be more efficient / better ways to do things... i am willing to learn ;)

the patch itself proposes an object-based z-sorting in the viewports view3d_main_area_draw().

when drawing the objects:
- calculate distance to viewpoint
- sort the objects
- draw the objects in sort-order (also the selected ones...)

here the link to the bug-report (which is marked as closed?!)
http://projects.blender.org/tracker/?group_id=9&atid=498&func=detail&aid=27979


here the link to the patch:
http://www.bildstrom.at/dl/view3d_render_objzsort.patch


and here a .blend which demonstrates the problem:
http://www.pasteall.org/blend/6981


would be great if some would have the time to try it.
any comments are welcome.


cheers
ingo


More information about the Bf-committers mailing list