|
5 | 5 | from dataclasses import dataclass, field |
6 | 6 | from typing import Dict, Optional, Tuple |
7 | 7 |
|
| 8 | +from utils.blender_version import get_eevee_engine_name |
| 9 | + |
8 | 10 |
|
9 | 11 | _VALID_RECON_MODES = {"legacy", "loft_profile", "silhouette_intersection"} |
10 | 12 | _VALID_JOIN_MODES = {"auto", "boolean", "voxel", "simple"} |
|
13 | 15 | _VALID_FILL_STRATEGIES = {"interp_linear", "interp_nearest", "constant"} |
14 | 16 | _VALID_CANON_ANCHORS = {"center", "bottom_center"} |
15 | 17 | _VALID_CANON_INTERP = {"nearest"} |
16 | | -_VALID_RENDER_ENGINES = {"BLENDER_EEVEE", "WORKBENCH"} |
| 18 | +_VALID_RENDER_ENGINES = {"BLENDER_EEVEE", "BLENDER_EEVEE_NEXT", "WORKBENCH"} |
17 | 19 | _VALID_COLOR_MODES = {"BW", "RGBA"} |
18 | 20 | _VALID_CONTOUR_MODES = {"external", "ccomp", "tree", "hierarchy"} |
19 | 21 | _VALID_BOOLEAN_SOLVERS = {"auto", "EXACT", "MANIFOLD", "FLOAT", "FAST"} |
@@ -124,7 +126,7 @@ class RenderConfig: |
124 | 126 | """Configuration for rendering orthographic silhouettes.""" |
125 | 127 |
|
126 | 128 | resolution: Tuple[int, int] = (512, 512) |
127 | | - engine: str = "BLENDER_EEVEE" |
| 129 | + engine: str = field(default_factory=get_eevee_engine_name) |
128 | 130 | transparent_bg: bool = True |
129 | 131 | samples: int = 1 |
130 | 132 | margin_frac: float = 0.08 |
|
0 commit comments