Skip to content

daviesthomas/sdfSphereMarcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sphereMarcher

A tool for sphere marching over mlps trained to produce sdf values given point queries... Makes pretty renders!

Installation

First clone repo (and all dependencies)

git clone --recursive https://github.com/daviesthomas/sdfSphereMarcher.git
cd sdfSphereMarcher
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 8

Usage

./sdfViewer_bin 
    -H image height
    -W image width
    -i input mesh or weights
    -o output image path
    -s shading type (0: outline, 1: grayscale, 2: phong)

render cheburashka weights onto a 512x512 image with phong shading! (example seen below)

./sdfViewer_bin -H 512 -W 512 -i ../examples/weights/cheburashka.h5 -o ../examples/images/cheburashka.png -s 2

render cheburashka mesh for comparison :)

./sdfViewer_bin -H 512 -W 512 -i ../examples/mesh/cheburashka.obj -o ../examples/images/cheburashka-real.png -s 2

Example Images!

Phong rendering

alt text alt text alt text alt text

Gray Rendering

alt text alt text alt text alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published