Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.46 KB

1.下载编译运行ngp.md

File metadata and controls

41 lines (34 loc) · 1.46 KB

下载编译运行ngp

https://nvlabs.github.io/instant-ngp/

一. 下载代码

git clone --recursive https://github.com/nvlabs/instant-ngp
cd instant-ngp

#看看依赖项目
$ git submodule foreach --recursive  git remote get-url origin

确保依赖库都下载成功

  1. 'dependencies/args' https://github.com/Taywee/args
  2. 'dependencies/dlss' https://github.com/NVIDIA/DLSS
  3. 'dependencies/dlss/NVIDIAImageScaling' https://github.com/NVIDIAGameWorks/NVIDIAImageScaling
  4. 'dependencies/eigen' https://github.com/Tom94/eigen
  5. 'dependencies/glfw' https://github.com/Tom94/glfw
  6. 'dependencies/imgui' https://github.com/ocornut/imgui.git
  7. 'dependencies/pybind11' https://github.com/Tom94/pybind11
  8. 'dependencies/tiny-cuda-nn' https://github.com/NVlabs/tiny-cuda-nn
  9. 'dependencies/tiny-cuda-nn/dependencies/cutlass' https://github.com/NVIDIA/cutlass
  10. 'dependencies/tiny-cuda-nn/dependencies/fmt' https://github.com/fmtlib/fmt
  11. 'dependencies/tinylogger' https://github.com/Tom94/tinylogger

二. windows环境

  • vs2019
  • python
  • cuda13.6,注意官网说支持的10.2编译不过,nvcc编译json.hpp报错
  • 光线追踪库OptiX,并设置环境变量OptiX_INSTALL_DIR为安装目录
  • vulkan,并设置环境变量VULKAN_SDK为安装目录

三. 编译ngp

直接使用cmake-gui

四. 运行ngp

  • cropsize:支持剪裁模型
  • aabb:支持调整场景位置
  • CameraPath:支持定义渲染路径,导出到视频