三维黑洞渲染
项目地址: https://github.com/rossning92/Blackhole
1 | git clone https://github.com/rossning92/Blackhole.git |
为了避免一些莫名其妙的问题, 我的编译环境全程在容器中进行, 大家可以根据 教程 安装 Docker
我选择的镜像为 nvidia/opengl:1.0-glvnd-devel-ubuntu22.04
, 执行下面的语句拉取
1 | docker pull nvidia/opengl:1.0-glvnd-devel-ubuntu22.04 |
1 | apt update && apt upgrade -y && apt install -y git build-essential wget curl cmake |
添加 conan
默认配置
1 | cat << EOF > ~/.conan/profiles/default |
执行命令开始编译
1 | Configure the project and generate a native build system. |
最后在build
文件夹内生成Blackhole
二进制文件
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments