Line data Source code
1 : import type { SettingParams } from '@comfyorg/settings-core/types'
2 :
3 2355 : export const load3dSettings: SettingParams[] = [
4 : {
5 : id: 'Comfy.Load3D.ShowGrid',
6 : category: ['3D', 'Scene', 'Initial Grid Visibility'],
7 : name: 'Initial Grid Visibility',
8 : tooltip:
9 : 'Controls whether the grid is visible by default when a new 3D widget is created. This default can still be toggled individually for each widget after creation.',
10 : type: 'boolean',
11 : defaultValue: true,
12 : experimental: true
13 : },
14 : {
15 : id: 'Comfy.Load3D.BackgroundColor',
16 : category: ['3D', 'Scene', 'Initial Background Color'],
17 : name: 'Initial Background Color',
18 : tooltip:
19 : 'Controls the default background color of the 3D scene. This setting determines the background appearance when a new 3D widget is created, but can be adjusted individually for each widget after creation.',
20 : type: 'color',
21 : defaultValue: '282828',
22 : experimental: true
23 : },
24 : {
25 : id: 'Comfy.Load3D.CameraType',
26 : category: ['3D', 'Camera', 'Initial Camera Type'],
27 : name: 'Initial Camera Type',
28 : tooltip:
29 : 'Controls whether the camera is perspective or orthographic by default when a new 3D widget is created. This default can still be toggled individually for each widget after creation.',
30 : type: 'combo',
31 : options: ['perspective', 'orthographic'],
32 : defaultValue: 'perspective',
33 : experimental: true
34 : },
35 : {
36 : id: 'Comfy.Load3D.LightIntensity',
37 : category: ['3D', 'Light', 'Initial Light Intensity'],
38 : name: 'Initial Light Intensity',
39 : tooltip:
40 : 'Sets the default brightness level of lighting in the 3D scene. This value determines how intensely lights illuminate objects when a new 3D widget is created, but can be adjusted individually for each widget after creation.',
41 : type: 'number',
42 : defaultValue: 3,
43 : experimental: true
44 : },
45 : {
46 : id: 'Comfy.Load3D.LightIntensityMaximum',
47 : category: ['3D', 'Light', 'Light Intensity Maximum'],
48 : name: 'Light Intensity Maximum',
49 : tooltip:
50 : 'Sets the maximum allowable light intensity value for 3D scenes. This defines the upper brightness limit that can be set when adjusting lighting in any 3D widget.',
51 : type: 'number',
52 : defaultValue: 10,
53 : experimental: true
54 : },
55 : {
56 : id: 'Comfy.Load3D.LightIntensityMinimum',
57 : category: ['3D', 'Light', 'Light Intensity Minimum'],
58 : name: 'Light Intensity Minimum',
59 : tooltip:
60 : 'Sets the minimum allowable light intensity value for 3D scenes. This defines the lower brightness limit that can be set when adjusting lighting in any 3D widget.',
61 : type: 'number',
62 : defaultValue: 1,
63 : experimental: true
64 : },
65 : {
66 : id: 'Comfy.Load3D.LightAdjustmentIncrement',
67 : category: ['3D', 'Light', 'Light Adjustment Increment'],
68 : name: 'Light Adjustment Increment',
69 : tooltip:
70 : 'Controls the increment size when adjusting light intensity in 3D scenes. A smaller step value allows for finer control over lighting adjustments, while a larger value results in more noticeable changes per adjustment.',
71 : type: 'slider',
72 : attrs: {
73 : min: 0.1,
74 : max: 1,
75 : step: 0.1
76 : },
77 : defaultValue: 0.5,
78 : experimental: true
79 : },
80 : {
81 : id: 'Comfy.Load3D.3DViewerEnable',
82 : category: ['3D', '3DViewer', 'Enable'],
83 : name: 'Enable 3D Viewer (Beta)',
84 : tooltip:
85 : 'Enables the 3D Viewer (Beta) for selected nodes. This feature allows you to visualize and interact with 3D models directly within the full size 3d viewer.',
86 : type: 'boolean',
87 : defaultValue: true,
88 : experimental: true
89 : },
90 : {
91 : id: 'Comfy.Load3D.PLYEngine',
92 : category: ['3D', 'PointCloud', 'Point Cloud Engine'],
93 : name: 'Point Cloud Engine',
94 : tooltip:
95 : 'Select the engine for loading point cloud PLY files. "threejs" uses the native Three.js PLYLoader (handles binary + ASCII, mesh-capable). "fastply" uses an optimized parser for ASCII PLY files. 3D Gaussian Splat PLYs are detected automatically and always rendered via sparkjs regardless of this setting.',
96 : type: 'combo',
97 : options: ['threejs', 'fastply'],
98 : defaultValue: 'threejs',
99 : migrateDeprecatedValue: (value) =>
100 : value === 'sparkjs' ? 'threejs' : value,
101 : experimental: true
102 : }
103 : ]
|