forked from johnbeard/kiplot
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Internal Templates][Added] 4 templates for simple 3D render using Bl…
…ender
- Loading branch information
Showing
7 changed files
with
100 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Blender 3D render | ||
kibot: | ||
version: 1 | ||
|
||
outputs: | ||
- name: _blender_3d@_KIBOT_IMPORT_ID@ | ||
comment: "HQ 3D Render of the PCB" | ||
type: blender_export | ||
dir: @_KIBOT_IMPORT_DIR@ | ||
options: | ||
render_options: | ||
transparent_background: true | ||
samples: 10 | ||
point_of_view: | ||
rotate_x: @_KIBOT_ROT_X@ | ||
rotate_y: @_KIBOT_ROT_Y@ | ||
rotate_z: @_KIBOT_ROT_Z@ | ||
view: @_KIBOT_3D_VIEW@ | ||
file_id: @_KIBOT_3D_FILE_ID@ | ||
outputs: | ||
- type: blender | ||
- type: render | ||
|
||
... | ||
definitions: | ||
_KIBOT_IMPORT_ID: '' | ||
_KIBOT_IMPORT_DIR: 'Render_3D' | ||
_KIBOT_3D_VIEW: top | ||
_KIBOT_3D_FILE_ID: '@_KIBOT_IMPORT_ID@' | ||
_KIBOT_ROT_X: 0 | ||
_KIBOT_ROT_Y: 0 | ||
_KIBOT_ROT_Z: 0 |
11 changes: 11 additions & 0 deletions
11
kibot/resources/config_templates/3DRender_bottom.kibot.yaml
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,11 @@ | ||
# Blender 3D render | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: 3DRender | ||
definitions: | ||
_KIBOT_IMPORT_ID: '_bottom' | ||
_KIBOT_3D_VIEW: bottom | ||
_KIBOT_ROT_Z: -20 | ||
_KIBOT_ROT_X: -30 |
9 changes: 9 additions & 0 deletions
9
kibot/resources/config_templates/3DRender_bottom_straight.kibot.yaml
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,9 @@ | ||
# Blender 3D render | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: 3DRender | ||
definitions: | ||
_KIBOT_IMPORT_ID: '_bottom_straight' | ||
_KIBOT_3D_VIEW: bottom |
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,10 @@ | ||
# Blender 3D render | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: 3DRender | ||
definitions: | ||
_KIBOT_IMPORT_ID: '_top' | ||
_KIBOT_ROT_X: 30 | ||
_KIBOT_ROT_Z: -20 |
8 changes: 8 additions & 0 deletions
8
kibot/resources/config_templates/3DRender_top_straight.kibot.yaml
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,8 @@ | ||
# Blender 3D render | ||
kibot: | ||
version: 1 | ||
|
||
import: | ||
- file: 3DRender | ||
definitions: | ||
_KIBOT_IMPORT_ID: '_top_straight' |