ModernGL-Volume-Raycasting-Example学习笔记

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/cuidiwhere/article/details/78956949

前记:

      最近手头的project要用到ray casting,在github上找到一个现成的example。在MacBook上跑起来学习一下。谢谢example author的无私奉献。


项目ModernGL-Volume-Raycasting-Example 地址: https://github.com/ulricheck/ModernGL-Volume-Raycasting-Example 项目的文案写的非常清楚,严格follow即可。


第一步: 确认本机Dependencies是否都满足

利用which python3, which git, which pip3 本机均满足

利用pip3 list|grep Py*确认PyOpenGL版本已满足


第二步:follow Installation

第三步:Run Code

本机报错:ModuleNotFoundError: No module named 'PyQt5' 

利用pip3 install pyqt5安装解决Error。再run code就可以看到漂亮的Result啦。

 猜想: 如果在requirement.txt 加上一行pyqt5就能批量完成该example的依赖,无需单独执行pip3 install pyqt5。



猜你喜欢

转载自blog.csdn.net/cuidiwhere/article/details/78956949