diff --git a/process_mesh/README.md b/process_mesh/README.md deleted file mode 100644 index 376d7833a..000000000 --- a/process_mesh/README.md +++ /dev/null @@ -1,68 +0,0 @@ - - -## Instructions (for linux server) - -1. Run `git submodule update --init` in the infinigen repo to ensure the dependencies are populated - -2. Start an interactive GPU job and cd into `infinigen/process_mesh` - -3. Configure CMAKE by running - ``` - /usr/bin/cmake -S . -Bbuild -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_BUILD_TYPE=Release - ``` - which should print - ``` - -- The C compiler identification is GNU 8.5.0 - -- The CXX compiler identification is GNU 8.5.0 - -- Detecting C compiler ABI info - -- Detecting C compiler ABI info - done - -- Check for working C compiler: /usr/bin/gcc - skipped - -- Detecting C compile features - -- Detecting C compile features - done - -- Detecting CXX compiler ABI info - -- Detecting CXX compiler ABI info - done - -- Check for working CXX compiler: /usr/bin/c++ - skipped - -- Detecting CXX compile features - -- Detecting CXX compile features - done - -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") - -- Found OpenGL: /usr/lib64/libOpenGL.so found components: OpenGL EGL GLX - -- Configuring done - -- Generating done - -- Build files have been written to: infinigen/process_mesh/build - ``` - -4. Build the program - ``` - /usr/bin/cmake --build build --target all - ``` - -5. Run a test - ``` - ./build/process_mesh --height 1080 --width 1920 -out output_images -in /path/to/examples/INTVFSGK/frames_INTVFSGK_resmpl0 - ``` - - or to just check if OpenGL/EGL is working correctly, run - - ``` - ./build/process_mesh -in x -out x --height 100 --width 100 - ``` - which should print `ERROR: "x" does not exist.` - -## Arguments - -``` ---width Image Width ---height Image Height ---input_dir Input frames directory ---output_dir Output directory ---line_width Width of occlusion boundaries, in pixels [default: 2] ---subdivide How many depth samples per-pixel (squared) for fitting normals [default: 2] ---normal_receptive_field Radius of plane for fitting surface normals, in pixels [default 1] -``` - -## Other useful info - -To download EGL on Ubuntu -``` -sudo apt-get install libglfw3-dev libgles2-mesa-dev -``` diff --git a/process_mesh/depth_example.png b/process_mesh/depth_example.png deleted file mode 100644 index 9b732079c..000000000 Binary files a/process_mesh/depth_example.png and /dev/null differ diff --git a/process_mesh/normals_example.png b/process_mesh/normals_example.png deleted file mode 100644 index e01fb80af..000000000 Binary files a/process_mesh/normals_example.png and /dev/null differ diff --git a/process_mesh/shader.cpp b/process_mesh/shader.cpp index 4d7da9ab0..1c8b947e4 100644 --- a/process_mesh/shader.cpp +++ b/process_mesh/shader.cpp @@ -1,4 +1,4 @@ -// Taken from https://github.com/JoeyDeVries/LearnOpenGL license: CC BY-NC 4.0 +// Adapted from https://github.com/JoeyDeVries/LearnOpenGL/blob/master/src/7.in_practice/3.2d_game/0.full_source/shader.cpp license: CC BY 4.0 #include "shader.hpp" diff --git a/process_mesh/shader.hpp b/process_mesh/shader.hpp index 63687597d..6571b5203 100644 --- a/process_mesh/shader.hpp +++ b/process_mesh/shader.hpp @@ -1,4 +1,4 @@ -// Taken from https://github.com/JoeyDeVries/LearnOpenGL license: CC BY-NC 4.0 +// Adapted from https://github.com/JoeyDeVries/LearnOpenGL/blob/master/src/7.in_practice/3.2d_game/0.full_source/shader.h license: CC BY 4.0 #pragma once