-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
NodeMaterial: Playground - WebGL #22833
Conversation
This is awesome! May I suggest adding a dropdown with a few pre-made graphs? Easier to get familiar with the nodes with a few examples already built |
Lovely library! Just a curiosity, what's the reason behind your decision to make the flow go right-to-left instead of left-to-right like it is in any other software using nodes? |
I think that's a fair point. Better to follow the patterns people are already used to. |
@gsimone Thanks! It sounds like a good idea.
@marcofugaro Thanks! In theory, it seemed more appropriate, because we look for the most predominant data first and then go on to the details, as we started reading from left to right, this would be the logic. This is also true in programming language and in mathematics, for example:
You might also notice that this way, we don't even need to drag the canvas to start creating. |
Actually, I think that's very valid. I think I prefer right-to-left now 😅 |
@mrdoob No problems for me!! I can change again. I made an API for this so it was easy :) |
Let's make it configurable then 😝 |
Right to left by default and configurable? 🤓 |
People really seem to like left-to-right... https://twitter.com/threejs/status/1460337913703587850 Okay, let's do left-to-right then. No need to make it configurable 👍 |
Thanks! |
Only works in browsers that support import maps. |
Introduction
This is a minimal version of
Visual Node Editor
using newNode Material System
. Here contains a base to added of more editable nodes, the serialization and deserialization process is practically automatic, is possible create various type of nodes changing only inputs/elements with new*Editor
class.Hierarchy:
I create a playground version, with Save/Load, this way it will be easier to test the new
Node Material System
too.Every week I will be adding new nodes and features until the system be more complete.
Soon we can add this in three.js editor too.
Preview
https://raw.githack.com/sunag/three.js/dev-flow-ui/examples/?q=playground#webgl_materials_nodes_playground
Dependencies
flow ui - https://github.com/sunag/flow
tabler icons - https://tablericons.com/
open-sans font - https://fonts.google.com/specimen/Open+Sans
This contribution is funded by Google via Igalia.