Viewer refactor with state sync (#212)

* initial commit for viewer refactor

* updating name change to nerfactory

* adding headers

* making the rendering fix which broke from a merge

* things are starting to work. removing old commands now

* removed prints

* cleanup

* updating state works now even for nested dictionaries

* updating state in redux. listening for state changes. trying to draw three.js now

* added drawing functionality. need to fix translation of frustums and image planes

* images and frustums drawn correctly

* fixing lint

* github actions

* back to npm

* fixing eslint

* remove package.json from root

* new favicon

* some viewer cleanup

* notebook

* fixed camera drawings speed to avoid redraw

* trying to get Leva to update

* quick fix

* synced config panel

* adding notebook

* fixing output print error
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-08-02 16:02:07 -05:00
1 parent 966374474d
commit 73fedc7593
67 files changed
+2510 -14057

No files matched your search

+17 -4
View File
@@ -4,6 +4,13 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome against localhost",
"request": "launch",
"type": "chrome",
"url": "http://localhost:4000",
"webRoot": "${workspaceFolder}/nerfactory/viewer/app"
},
{
"name": "Python: Current File",
"type": "python",
@@ -25,7 +32,9 @@
"request": "launch",
"program": "scripts/run_train.py",
"console": "integratedTerminal",
"args": ["machine.num_gpus=0"]
"args": [
"machine.num_gpus=0"
]
},
{
"name": "Python: run_train ngp (gpu)",
@@ -33,7 +42,9 @@
"request": "launch",
"program": "scripts/run_train.py",
"console": "integratedTerminal",
"args": ["--config-name=graph_instant_ngp.yaml"]
"args": [
"--config-name=graph_instant_ngp.yaml"
]
},
{
"name": "Python: run_train mipnerf 360 (gpu)",
@@ -41,7 +52,9 @@
"request": "launch",
"program": "scripts/run_train.py",
"console": "integratedTerminal",
"args": ["--config-name=graph_mipnerf_360.yaml"]
"args": [
"--config-name=graph_mipnerf_360.yaml"
]
},
{
"name": "Python: run_train nerfw (gpu)",
@@ -66,4 +79,4 @@
]
}
]
}
}
+34 -3
View File
@@ -8,6 +8,21 @@
"**/temp*": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.configPath": ".prettierrc.js",
"typescript.suggestionActions.enabled": false,
"javascript.suggestionActions.enabled": false,
"[python]": {
"editor.defaultFormatter": "ms-python.python",
"editor.codeActionsOnSave": {
@@ -17,11 +32,17 @@
"editor.formatOnSave": true,
"python.envFile": "${workspaceFolder}/.env",
"python.formatting.provider": "black",
"python.formatting.blackArgs": ["--line-length=120"],
"python.formatting.blackArgs": [
"--line-length=120"
],
"python.linting.pylintEnabled": true,
"python.linting.flake8Enabled": false,
"python.linting.enabled": true,
"python.sortImports.args": ["--src=${workspaceFolder}", "--profile", "black"],
"python.sortImports.args": [
"--src=${workspaceFolder}",
"--profile",
"black"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.linting.ignorePatterns": [
@@ -29,6 +50,16 @@
".vscode/*.py",
"external/**/*.py"
],
"esbonio.sphinx.confDir": "",
// eslint extension options
"javascript.validate.enable": false,
"eslint.enable": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"C_Cpp.errorSquiggles": "Disabled",
"files.associations": {
"array": "cpp",
@@ -96,4 +127,4 @@
"__node_handle": "cpp"
},
"python.analysis.typeCheckingMode": "basic"
}
}