-
-
Notifications
You must be signed in to change notification settings - Fork 67
More geometry primitives #60
Comments
I agree, all these nodes would be quite useful 😄. Is this something you'd like to tackle? I can offer some guidance. Otherwise I can look at this after I get the next big feature merged. |
Yeah, I'm interested in giving it a try. Seemed like a good starting project. I'd definitely appreciate some pointers if you have the time. Any similar stuff you think is worth adding to the list? |
Great! 😄 Primitives are one of the most approachable bits of the codebase, so it's indeed a great way to get to know more about the project. If you want to define new mesh primitives, you can find the implementation in
Once you define your node in Lua, you should be able to add it to a graph using the UI. A tip for quicker development is that the Lua code hot-reloads from disk, so once you're defining the nodes in Lua, you don't need to close blackjack to introduce new node definitions, just save the file and it will pick it up (you will also see any errors on the terminal). However, if you change a node's parameters you will have to delete that node and re-add it again (This is a limitation I just fixed on my dev branch, btw 😄).
Yes! In fact, you'll see the
I'm out of ideas at the moment 🤔, but I will post if I think of something! Good luck! And make sure to post any doubts here. I'd be happy to help :) |
Thanks! That was really helpful. It would be worth copying that to a doc somewhere as an example of how to add new nodes. |
Thanks a lot for the PR! Let's keep the issue open until we get a few more primitives 😄
Will do! Let me find a good place for this... |
A few common shapes are bit tricky to create with the existing nodes, it would be nice to have more built-in geometry primitives. Matching the primitives in Blender would be a good starting point.
The text was updated successfully, but these errors were encountered: