125 points by outer_core 6 months ago flag hide 44 comments
serenity_css 6 months ago next
Exciting stuff! I've used Rust for some projects lately and I'm curious to try generative art with the language.
johncarpenter 6 months ago prev next
This is such an interesting topic! I'm really looking forward to exploring this more with Rust.
creativecoder 6 months ago next
Have you seen the `accelerate` crate by Max Masnick for integrating Rust code with the GPU? I used it in my latest generative art project and it was a game changer!
oopbeans 6 months ago prev next
I've been looking at `microbit` a lot lately to create simple drawing apps for kids, but having a 3d capable app would be fascinating. Anyone know if this has been attempted with Rust?
randomuser123 6 months ago prev next
I've been experimenting with generative art in Rust recently and I have to say, the language is so well suited for this kind of thing. Excellent choice!
gordonh 6 months ago next
The documentation for `minifb` is quite limited, but I was wondering if anyone's tried integrating it with procedural macros for possible extensions?
emmakeen 6 months ago prev next
The Rust ecosystem is really coming along, especially with the addition of crates like `minifb` for creating graphics. Excited to see what people come up with! #generativeart #learningrust
rustacean007 6 months ago next
I agree, the `minifb` crate is a game changer. Not to mention the `luminance` crate for various graphics operations!
honest_hypatia 6 months ago prev next
Does `minifb` have multi-threading capabilities? Asking for a project idea ☺️
quantumprogrammer 6 months ago prev next
`minifb` is definitely well suited for generating art but what about 3d graphics? Any suggestions for that?
windmillcc 6 months ago next
A lot of people in the Rust community have been using `glium` for 3d graphics. It's pretty fast and allows for GPU shaders written in Rust. You can also try `gfx-hal` for powerful, portable abstractions for graphics and compute.
alice1313 6 months ago prev next
I'm new to Rust and this looks fascinating. Do any of you have any recommendations on where to start?
greenthumbs 6 months ago next
The `Rust by Example` book has a good chapter on graphics, which has been very helpful to me as a beginner. Also checking out `minifb` and `luminance` crates is a great start!
rustcurious 6 months ago prev next
I highly recommend the `Rust for WebAssembly` book by Jessica Chadwick, especially if you're interested in generating art in the browser using Rust. The `glium` crate is also very helpful for more serious projects.
calamitychris 6 months ago prev next
If you're interested in learning about creating beautiful 3d formas and shapes, I'd recommend `curv` by tweag. It might take you some time to understand it, but once you get the grasp, it's amazing what you can do with such a small library.
retrogrouch 6 months ago prev next
I've always been fascinated by how early computer artists used assembly code and hardware manipulation to create their works. Excited to see some generative art coming back to the metal with Rust.
valuedoubleu 6 months ago next
There's an incredible project on GitHub called `tinyrenderer` by Nicholas Rougeux that explores generating 3d graphics with POSIX shell scripting. I think that, as an artist, it might spark some interest in creating your own generative art with Rust!
noxhouse 6 months ago prev next
If you're interested in exploring hardware and Rust, you should check out the Procfs Playground (<https://play.golang.org/p/AAdxRX-t1c>). You can manipulate low-level Linux functionalities like process memory management and check out the Rust wrappers for these functionalities as well.
noobletmom 6 months ago prev next
I'm excited to start a side project generating art with Rust, but I'm not sure where to put the pieces. Any suggestions on platforms with Rust compatibility and a good art community?
pixelpusher 6 months ago next
`deviantART`, `ArtStation` and `Dribbble` all have good support for rendering and embedding art created in various languages. You may get better traction in the Rust community by hosting on GitHub and sharing the link there.
pixeltryer 6 months ago next
I've had pretty good luck with `wercker` as a continuous integration/deployment service for Rust projects. It integrates well with free hosting options like `GitHub Pages` as well!
ergonomic 6 months ago prev next
A fun little aside about everyone's favorite `minifb` - have you seen its creator's talk about it in the Rust community? It's quite entertaining and definitely worth a watch!
advent_rust 6 months ago prev next
If you'd like to help the ecosystem and newcomers, why not contribute to `minifb` and add support for WebGL or WebAssembly?
rustrelation 6 months ago prev next
Rust is indeed an excellent fit for generative art. After experimenting a bit, I've been able to achieve beautiful results. If you'd like me to share some, let me know. #generativeart #exploration
jenkinsfiles 6 months ago prev next
I'm trying to contribute to open source Rust projects myself and I've been looking into painting apps. I wonder if there's any Rust community interest in that?
rustagonaut 6 months ago next
I know a bunch of people who have been looking for a painting app written purely in Rust. Sounds like the perfect opportunity! I've seen some cool graphics apps but not so much for painting.
miskohevery 6 months ago prev next
There's actually a painting app in Rust called Concepts: <https://play.google.com/store/apps/details?id=com.topografix.motion.concepts&hl=en_US&gl=US>. you can contact the author and collaborate maybe?
rustican 6 months ago prev next
For effortless windowing in the backend of a painting app, you can definitely look into the `conrod` crate. It's designed to be responsive, efficient and extremely customizable.
rustspecter 6 months ago prev next
If anyone is looking for a way to parse `.svg` and other vector files, `rust-svg` crate just might be of use. It handles parsing and modifying SVG files through a nice API, which I believe might be a solid foundation for a generative art app.
rusteration 6 months ago prev next
When developing `ginger-rs` and working with low-level procedural macro generation and custom DSLs, I've found a Rust library that is really helpful: `syn`. It's a syntactic parser, so it can generate Rust ASTs using procedural macros!
transistorist 6 months ago prev next
*cough* *cough* anyone looking for a doodling app in Rust that works on iOS? I've been looking to develop that and would love the help from the Rust community *_/*
opanpan 6 months ago next
I can definitely get on board with that. I've tried out some Rust drawing apps, but they're always for desktop. I think there's something interesting about pen and paper with an iPad. Let's do it!
crocodile_rust 6 months ago prev next
I've seen some cool reactive rendering already in Rust. You should check out this gist for some pointer libs. Maybe we could make a vector-based app for iOS?
shuristic 6 months ago prev next
Amazing stuff! Have any of you guys used `tetra` by Kevin Hoffman for 3d graphics with Rust? I've seen it used to create 3d models, and it looks nice.
hikingnshooting 6 months ago next
I've seen `tetra` used for 2d game creation, but I believe `gfx` by `glium` contributors is better suited for 3d. Have you tried `gfx` for such projects?
ladyjean 6 months ago prev next
I'm just starting to learn Rust and I'd love to create an art-centric procedural macro. Any suggestions on topics, name dropping, or other guidance?
lilgreenhat 6 months ago next
`proc-macro-hackery` is an excellent resource for building a `derive` procedural macro in Rust, it covers all the nitty gritty and breaks it down quite well. Highly recommended if you're interested in diving deep!
notoriousrust 6 months ago prev next
The book 'Programming Rust 2nd Edition' has a tremendous amount of time dedicated to procedural macros. If you're new, I highly recommend checking it out and following along with the examples as you create your macro.
rustisgood 6 months ago prev next
A classic Rust macro project is `#[derive]`, which allows you to create derive macros in a semi-syntactic fashion. I've used it in a few projects and will likely use it again for immutability logging. Might be a good topic to cover!
rustchic 6 months ago prev next
I'd love to see more generative nature art projects, perhaps using ` Perlin and Simplex Noise` for more organic shapes, and then rely on blending modes for more aesthetically pleasing results. I think that could be an exciting project!
vimholding 6 months ago next
Sounds lovely! I've recently used `noise` for some volumetric rendering techniques and the results were pretty amazing. Logarithmic expansion to `simplex noise` is quite fascinating, very helpful for realistic results.
rustnull 6 months ago prev next
I'm working on a fractal algorithm, but I think I need some more imagination to make it beautiful. Anyone interested in a fractal bombardment brainstorming?
progrustrian 6 months ago prev next
I've been experimenting with generative art using Rust and `Hash Life` algorithm, something which I believe works really well. A small blog post about that can be found in this link: <https://evansmurray.com/posts/hash-life-rust/>
graphemi 6 months ago prev next
When using `Hash Life`, another approach to consider is to use well known algorithms. I've used `Reversible Logic` Algorithms in particular with quite fascinating results. You can find more info here: <https://hackingand.show/2020/01/04/dithering-and-more.html>