117 lines
2.9 KiB
YAML
117 lines
2.9 KiB
YAML
# KiBot output for generating PCB 3D model PCB3D Blender format
|
|
# https://kibot.readthedocs.io/en/latest/configuration/outputs/PCB2Blender_ToolsOptions.html
|
|
|
|
# The lighting setup allows for even, diffuse background lighting as well as
|
|
# a focused light for shadows/depth. The six area lights form a rough ring
|
|
# around the top of the board, while the point light illuminates from behind
|
|
# and to the right of the camera. For top/bottom renders that look directly
|
|
# down at the board, set @SPOT_LIGHT@ to 0.01 (a value of 0 tells KiCad to
|
|
# auto-calculate the intensity). A value for @DIFFUSE_LIGHT@ of 0.3-0.4 seems
|
|
# to work well as a starting point.
|
|
|
|
kibot:
|
|
version: 1
|
|
|
|
outputs:
|
|
- name: @NAME@
|
|
output_id: @NAME@
|
|
comment: '@COMMENT@'
|
|
type: blender_export
|
|
category: '@DIR@'
|
|
dir: '@DIR@'
|
|
options:
|
|
auto_camera_z_axis_factor: 1.1
|
|
pcb_import:
|
|
enhance_materials: true
|
|
texture_dpi: @TEXTURE_DPI@
|
|
|
|
pcb3d:
|
|
download: true
|
|
download_lcsc: true
|
|
dnf_filter:
|
|
- @DNF_FILTER@
|
|
|
|
render_options:
|
|
auto_crop: true
|
|
transparent_background: true
|
|
samples: @SAMPLES@
|
|
resolution_x: @RESOLUTION_X@
|
|
resolution_y: @RESOLUTION_Y@
|
|
|
|
point_of_view:
|
|
rotate_x: @ROTATE_X@
|
|
rotate_y: @ROTATE_Y@
|
|
rotate_z: @ROTATE_Z@
|
|
view: @VIEW@
|
|
|
|
outputs:
|
|
- type: render
|
|
output: '%f-%I%v.%x'
|
|
|
|
light:
|
|
- name: kibot_light_spot
|
|
energy: @SPOT_LIGHT@
|
|
pos_x: -size*3.33
|
|
pos_y: size*3.33
|
|
pos_z: size*5
|
|
type: POINT
|
|
|
|
- name: kibot_area_light_1
|
|
energy: @DIFFUSE_LIGHT@
|
|
pos_x: size
|
|
pos_y: 0
|
|
pos_z: size*10
|
|
type: AREA
|
|
|
|
- name: kibot_area_light_2
|
|
energy: @DIFFUSE_LIGHT@
|
|
pos_x: -size
|
|
pos_y: 0
|
|
pos_z: size*10
|
|
type: AREA
|
|
|
|
- name: kibot_area_light_3
|
|
energy: @DIFFUSE_LIGHT@
|
|
pos_x: size*0.71
|
|
pos_y: size*0.71
|
|
pos_z: size*10
|
|
type: AREA
|
|
|
|
- name: kibot_area_light_4
|
|
energy: @DIFFUSE_LIGHT@
|
|
pos_x: -size*0.71
|
|
pos_y: size*0.71
|
|
pos_z: size*10
|
|
type: AREA
|
|
|
|
- name: kibot_area_light_5
|
|
energy: @DIFFUSE_LIGHT@
|
|
pos_x: size*0.71
|
|
pos_y: -size*0.71
|
|
pos_z: size*10
|
|
type: AREA
|
|
|
|
- name: kibot_area_light_6
|
|
energy: @DIFFUSE_LIGHT@
|
|
pos_x: -size*0.71
|
|
pos_y: -size*0.71
|
|
pos_z: size*10
|
|
type: AREA
|
|
|
|
...
|
|
definitions:
|
|
NAME: blender
|
|
COMMENT: PCB 3D model in PCB3D Blender format
|
|
DIR: renders
|
|
DNF_FILTER: _kibom_dnf_Config
|
|
SAMPLES: 5
|
|
RESOLUTION_X: 1280
|
|
RESOLUTION_Y: 1280
|
|
TEXTURE_DPI: 1031.0
|
|
DIFFUSE_LIGHT: 0.3
|
|
SPOT_LIGHT: 0.01
|
|
ROTATE_X: 0
|
|
ROTATE_Y: 0
|
|
ROTATE_Z: 0
|
|
VIEW: top
|