Skip to content

Commit

Permalink
Jittered sampling and numerical normals
Browse files Browse the repository at this point in the history
  • Loading branch information
iveevi committed Dec 23, 2023
1 parent bbac4f6 commit 6b808f5
Show file tree
Hide file tree
Showing 36 changed files with 1,472 additions and 3,457 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ output/
results/
runs/
scenes/
evals/
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ project(nsc CXX)

set(CMAKE_CXX_STANDARD 17)

find_package(glfw3 REQUIRED)
# find_package(glfw3 REQUIRED)

add_executable(simplify tools/main.cpp)
add_executable(quadrangulate tools/quadrangulate.cpp)
add_executable(convert tools/convert.cpp)
# add_executable(quadrangulate tools/quadrangulate.cpp)
# add_executable(convert tools/convert.cpp)
add_executable(headless tools/headless.cpp)

target_compile_options(simplify PRIVATE -Wall -Wextra -Wpedantic)
target_compile_options(quadrangulate PRIVATE -Wall -Wextra -Wpedantic)
target_compile_options(convert PRIVATE -Wall -Wextra -Wpedantic)
# target_compile_options(quadrangulate PRIVATE -Wall -Wextra -Wpedantic)
# target_compile_options(convert PRIVATE -Wall -Wextra -Wpedantic)
target_compile_options(headless PRIVATE -Wall -Wextra -Wpedantic)

target_link_libraries(quadrangulate assimp)
target_link_libraries(convert assimp)
# target_link_libraries(quadrangulate assimp)
# target_link_libraries(convert assimp)
target_link_libraries(headless glfw)

include_directories(. glm)
87 changes: 0 additions & 87 deletions configs/activations.json

This file was deleted.

41 changes: 15 additions & 26 deletions configs/armadillo.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,40 @@
{
"name": "armadillo",
"target": "meshes/armadillo/target.obj",
"directory": "results/armadillo",
"clusters": 200,
"batch_size": 40,
"resolution": 16,
"experiments": [
{
"name": "lod4",
"source": "meshes/armadillo/source-lod4.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": 10,
"resolution": 16
"encoder": "sincos",
"encoding_levels": 10,
"features": 20
},

{
"name": "lod3",
"source": "meshes/armadillo/source-lod3.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": 10,
"resolution": 16
"encoder": "sincos",
"encoding_levels": 10,
"features": 20
},

{
"name": "lod2",
"source": "meshes/armadillo/source-lod2.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": 10,
"resolution": 16
"encoder": "sincos",
"encoding_levels": 10,
"features": 20
},

{
"name": "lod1",
"source": "meshes/armadillo/source-lod1.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": 10,
"resolution": 16
},

{
"name": "lod0",
"source": "meshes/armadillo/source-lod0.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": "lambda r: 10 if r < 16 else 2",
"resolution": 16
"encoder": "sincos",
"encoding_levels": 10,
"features": 20
}
]
}
59 changes: 23 additions & 36 deletions configs/chinese.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,38 @@
{
"name": "chinese",
"target": "meshes/chinese/target.obj",
"directory": "results/chinese",
"clusters": 50,
"batch_size": 50,
"resolution": 16,
"experiments": [
{
"name": "lod4",
"source": "meshes/chinese/source-lod4.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": 10,
"resolution": 16
},

{
"name": "lod3",
"source": "meshes/chinese/source-lod3.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": 10,
"resolution": 16
},

{
"name": "lod2",
"name": "numerical",
"source": "meshes/chinese/source-lod2.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": 10,
"resolution": 16
"encoder": "sincos",
"encoding_levels": 10,
"features": 20,
"jittering": false,
"normals": "numerical"
},

{
"name": "lod1",
"source": "meshes/chinese/source-lod1.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": 10,
"resolution": 16
"name": "default",
"source": "meshes/chinese/source-lod2.obj",
"encoder": "sincos",
"encoding_levels": 10,
"features": 20,
"jittering": false,
"normals": "geometric"
},

{
"name": "lod0",
"source": "meshes/chinese/source-lod0.obj",
"method": "lrelu/linear",
"clusters": 250,
"batch": "lambda r: 10 if r < 16 else 2",
"resolution": 16
"name": "jittering",
"source": "meshes/chinese/source-lod2.obj",
"encoder": "sincos",
"encoding_levels": 10,
"features": 20,
"jittering": true,
"normals": "geometric"
}
]
}
26 changes: 10 additions & 16 deletions configs/dragon-statue.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
{
"target": "meshes/dragon-statue/target.obj",
"directory": "results/dragon-statue",
"clusters": 20,
"batch_size": 10,
"clusters": 100,
"batch_size": 50,
"resolution": 16,
"experiments": [
{
"name": "sincos",
"name": "jittering",
"source": "meshes/dragon-statue/source-lod2.obj",
"encoder": "sincos",
"encoding_levels": 10,
"features": 20
"features": 20,
"jittering": true
},

{
"name": "skewed",
"name": "default",
"source": "meshes/dragon-statue/source-lod2.obj",
"encoder": "skewed",
"encoding_levels": 20,
"features": 20
},

{
"name": "extint",
"source": "meshes/dragon-statue/source-lod2.obj",
"encoder": "extint",
"encoding_levels": 16,
"features": 20
"encoder": "sincos",
"encoding_levels": 10,
"features": 20,
"jittering": false
}
]
}
Loading

0 comments on commit 6b808f5

Please sign in to comment.