[Matplotlib-devel] 3D experiments

Nicolas Rougier Nicolas.Rougier at inria.fr
Wed Aug 7 07:18:41 EDT 2019


I’m playing a bit with 3D rendering in matplotlib using the regular API (LineCollection and PolyCollection) to see how far we can go. Here are some results. I’m using a regulat axis, homogenous coordinates (that simplify everything), a model/view/projection transform, z-depth sorting, lightning and backface culling (removal of hidden triangles). I’m quite happy with the results so I share them with you. The code is not yet online because it’s still a bit messy but it is reasonably fast (but slower than the regular 3D axis projection I would say).




I’m not familiar enough with the regular 3D axis projection to know if these experiments are useful or not but I’ll be happy to explain details if you want.


Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20190807/19f74640/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bar-3d.png
Type: image/png
Size: 147528 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20190807/19f74640/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bunny.png
Type: image/png
Size: 142826 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20190807/19f74640/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: line-3d.png
Type: image/png
Size: 106416 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20190807/19f74640/attachment-0005.png>


More information about the Matplotlib-devel mailing list