Git Product home page Git Product logo

Comments (8)

Seneral avatar Seneral commented on May 30, 2024

Indeed a good idea, I will add an option to customize the connections of an output. Though I think too much colors for one type are impractical. For boolean his may work, but not for a float;) Rather, I'd think of displaying the value on the connection itslef with a box label... I will try doing this in the best way possible;)

from node_editor_framework.

pmhpereira avatar pmhpereira commented on May 30, 2024

For floats it may not make much sense, but I think it would still be nice if there was an easy way to override the default implementation for the colors (knobs and connections) without creating a new type and/or without tweaking with your code.

from node_editor_framework.

WeslomPo avatar WeslomPo commented on May 30, 2024

I think there need a more complex work than colorize lines. First of all, need to separate node building and rendering. Need to make a node skeleton, where are you can add components and stop thinking about what is in your script file, stop visualize elements hand by hand.
Than make some thing like a cascade style sheet, or just skin.
Skin is view, components is model.
After It we can talk about colorize lines and so on. Now very hard to make any change in code, because elements need to be coded manually, including rendering of nodes. Yes, it will cool on start, when you have only principe of rendering of nodes, now you need to start thinking to what it can be, what it can become.

from node_editor_framework.

Seneral avatar Seneral commented on May 30, 2024

You're right, it may seem hard at first to customize that. But, it's essentially just DrawNode, DrawKnobs, DrawConnections, etc. inside Node which you need to modify. I already made DrawNode virtual to make overriding possible, maybe doing that on the other ones, too.
I'm not exactly sure if I understood your Skin/Component model of doing things. It may have benefits, but in a final product, the Nodes probably would have a uniform style, either way. You could modify DrawKnobs right now to achive the kind of look as in, fE., NodeCanvas:

You're always free to implement that, so we can get a better idea of what you mean:)

from node_editor_framework.

WeslomPo avatar WeslomPo commented on May 30, 2024

I talk about that need to build a system that no need to write any script, and best solution for that I see trough a component/entity model. Skin - It's like a... skin >__<. Do you ever use a WinAmp?

I need a time to reply to you in details.

p.s. I'm sorry for my english, I'm not native speaker.

from node_editor_framework.

Seneral avatar Seneral commented on May 30, 2024

No problem, I'm no native english either;)
I understand, but I don't think it's really that useful, tbh. I will work on the system to make it more customizeable per type and make it possible to overwrite per node / connection. That might be the best option here. Because, there's really not much to tweak about Layout and skin of Nodes...
Layout includes just the base node (currently header+body, but can be overridden through DrawNode in Node), knob positioning (done with side, position and offset values), etc.
Skin is already covered by knob textures and color, and stuff in NodeEditorGUI.cs

What I think will help:
Per Connection Type:

  • Option to display values on the connection (function)
  • Color (optionally based on value)
  • Draw Method (Straight line, Bezier Curve (default), Cubic line (like in the screen above), etc.)

Per Node:

  • Overwrite everything from connection type per connection
  • Placement of Knobs
  • Body layout overwriting

But always feel free to comment and improve or implement your idea yourself:)

from node_editor_framework.

Seneral avatar Seneral commented on May 30, 2024

This will be adressed more closely soon, after the statemachine and action node is done. Atleast on my part, if anyone wants to do it, no problem:)

from node_editor_framework.

Seneral avatar Seneral commented on May 30, 2024

Part of connection refactoring in #74

from node_editor_framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.