-
Notifications
You must be signed in to change notification settings - Fork 461
[3d] add output preview screen for load3d node #2464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
huchenlei
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible we build the UI with Vue/PrimeVue here? We don't need to reinvent some basic components like slider and svg icons.
You can reference
ComfyUI_frontend/src/components/sidebar/tabs/NodeLibrarySidebarTab.vue
Lines 126 to 132 in a914456
| renderDragPreview(container) { | |
| const vnode = h(NodePreview, { nodeDef: node.data }) | |
| render(vnode, container) | |
| return () => { | |
| render(null, container) | |
| } | |
| }, |
| container.classList.add('comfy-load-3d') | ||
|
|
||
| const load3d = new Load3d(container) | ||
| const load3d = new Load3d(container, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer using kwargs here. A boolean true second param will make reader confused.
| container.classList.add('comfy-load-3d-animation') | ||
|
|
||
| const load3d = new Load3dAnimation(container) | ||
| const load3d = new Load3dAnimation(container, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer using kwargs here. A boolean true second param will make reader confused.
|
|
||
| constructor( | ||
| container: Element | HTMLElement, | ||
| createPreview: boolean = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer using kwargs here. A boolean true second param will make reader confused.
|
close it for now, I will use vue to re-write first |
add a output preview screen for load3d, because at before, it is hard to know the output exactly.
also moved two params (fov and light intensity) from node panel to the scene.
here is the demo:
https://github.com/user-attachments/assets/401f7773-a219-47de-b529-864c83ba7370
need Comfy-Org/ComfyUI#6742 as BE change
┆Issue is synchronized with this Notion page by Unito