trešdiena, 2022. gada 30. marts

NVIDIA nerf graphics primitives also 2d images to 3d (TRY MESHROOM INSTEAD!)

NVIDIA thing really does not work well, trying meshroom has better  output, my advice would be downloading some sort of 3d scanner app for phone, make dataset of images of the object, copy images to pc, download background remover - https://github.com/nadermx/backgroundremover or use green screen. create .obj file, degrade vertices and use it.



https://github.com/lv88h/instant-ngp

So for this to work You have to have g++/gcc version 10. Cmake has to be set to use it. 

Later, might try to make up some 3d objects from pictures I could use for already made game code (implementation).









My code that could help idea - 


/opt/cmake-3.22.3-linux-x86_64/bin/cmake  -B build
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Mon_May__3_19:15:13_PDT_2021
Cuda compilation tools, release 11.3, V11.3.109
Build cuda_11.3.r11.3/compiler.29920130_0




CMake Error in /home/ronalds/Desktop/GECKOS/instant-ngp/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
  CUDA_ARCHITECTURES is empty for target "cmTC_9c06a".


CMake Error in /home/ronalds/Desktop/GECKOS/instant-ngp/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
  CUDA_ARCHITECTURES is empty for target "cmTC_9c06a".


CMake Error at /opt/cmake-3.22.3-linux-x86_64/share/cmake-3.22/Modules/CMakeTestCUDACompiler.cmake:43 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  CMakeLists.txt:18 (PROJECT)



Build cuda_11.3.r11.3/compiler.29920130_0


the thing that builds -- 
/opt/cmake-3.22.3-linux-x86_64/bin/cmake  -B build


cmake --build build --config RelWithDebInfo -j 16



the thing that installs -- 
/opt/cmake-3.22.3-linux-x86_64/bin/cmake --build build --config RelWithDebInfo -j 16



update-alternatives --config gcc

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 50

nvcc --compiler-bindir=/usr/lib/gcc hello.cu -o hello


running nerf fox --

instant-ngp$ ./build/testbed --scene data/nerf/fox

Nav komentāru:

Ierakstīt komentāru