-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Docs for kiuikit | ||
|
||
We use [sphinx](https://www.sphinx-doc.org/en/master/) and [m2r2](https://github.com/CrossNox/m2r2) to build the documentation in markdown language. | ||
|
||
### Usage | ||
|
||
Since sphinx needs to import the module for auto-doc, we need to install full dependency first: | ||
```bash | ||
pip install -e ".[full]" | ||
pip install -r docs/requirements.txt | ||
``` | ||
|
||
Build the docs by: | ||
```bash | ||
cd docs | ||
make html | ||
``` | ||
|
||
View the local [html](docs/build/html/index.html) by VSCode `Live Server` extension. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# Blender | ||
# Blender Scripts | ||
|
||
To render complex 3D models (specifically with multiple submeshes), the only choice is to use `blender` and `bpy`. | ||
|
||
We provide an example code for rendering with blender: | ||
|
||
```bash | ||
# make sure you are using python 3.10 | ||
# make sure you are using python>=3.10, tested with bpy==4.0.0 | ||
pip install bpy mathutils | ||
|
||
# help | ||
python -m kiui.cli.blender_render --help | ||
|
||
# example | ||
python -m kiui.cli.blender_render --mesh chest.glb --gpu 0 --depth --normal --albedo | ||
python -m kiui.cli.blender_render --mesh chest.glb --gpu 0 --depth --normal --albedo --camera --blend | ||
``` | ||
|
||
Features include: | ||
* Set which GPU to use with `--gpu 0` for `CYCLES` rendering engine. | ||
* Render with random HDRI environment texture shading (check `assets/blender_lights`). | ||
* Render depth (`exr`), normal, and albedo. | ||
* Render with random built-in HDRI environment texture shading (check `assets/blender_lights`). | ||
* Optionally render depth (`exr`), normal, and albedo. | ||
* Empirical cleaning of the scene (remove the annoying plane under the object). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters