Better HN
topnewbestaskshowjobs
Log inSign up

jimfx

315 karma · joined May 17, 2022 (4y ago) · 44 submissions

https://max-richter.dev
Submissions

1.

Show HN: Simulate 3D Plants in the Browser with Nodes(nodes.max-richter.dev ↗)

1 points · by jimfx · 1mo ago · 1 comment

comment 6mo ago · link · parent

I am working on a WASM based procedural plant generator:

https://nodes.max-richter.dev https://github.com/jim-fx/nodarium

comment 2y ago · link · parent

Pretty sure the gif is from the short movie Cosmo Laundromat by Blender Studios, would definitely recommend giving it a watch:

https://gooseberry.blender.org

comment 2y ago · link · parent

Thanks for the Feedback!

I tend to get blond to those small usability bugs, so it is very valuable.

Should both be fixed in the coming days :)

comment 2y ago · link · parent

Plantarium was also developed in Firefox ;)

comment 2y ago · link · parent

I think you would be right that simulation was a bit misleading. In my experience, a simulation is related to time, and updated in discrete time steps. Maybe "Procedural Generation" would be a better term...

comment 2y ago · link · parent

Thanks :) That came from some feedback I got the last time I posted this project to hn

comment 2y ago · link · parent

That is a nice idea! The tricky part is going to be how to integrate animations without having to rebuild the entire mesh every frame... Though, I think it would be very easy to export a skeleton from the generator and then use that to animate the plant.

comment 2y ago · link · parent

That's super cool! And thank you for the nice words :)

A rust/Wasm rewrite of the geometry generator is very much on the roadmap. Currently getting my feet wet with rust during advent of code.

comment 2y ago · link · parent

I learned a lot about webgl and procedural geometry in the process of making this :)

comment 2y ago · link · parent

Yup, I use github.com/oframe/ogl, which makes webgl a bit mor usable for the average programmer. You could also probably achieve the same thing with webgpu, but for the time being i have not yet had a reason to switch :)

comment 2y ago · link · parent

One of my ideas is to build a virtual garden where your plants can grow and you have to take care of them tamagotchi style :)

Not connected to any scientific projects, just a nerd that likes plants. But projects can have a gbif.org id and then some extra information is loaded through the gbif api :)

comment 2y ago · link · parent

Thank you so much, I love graph/node editors :)

comment 2y ago · link · parent

You're right that it is procedurally based; however, I have not yet implemented L-Systems. I am a long-time Blender Nerd, and if you look in the GitHub repository, there is an ideas/blender-plugin.md file since last year. Unfortunately, I haven't found time to start building it since I spend most of my time trying to get my startup off the ground.

comment 2y ago · link · parent

Thank you so much!

comment 2y ago · link · parent

Thanks :) In my opinion we programmers tend to take our projects/ourselves too seriously so I like to add some sillyness here and there

comment 2y ago · link · parent

Very good feedback, I should probably add a debounce to the automatic centering of the camera :)

comment 2y ago · link · parent

I am currently away from home, don't have access to my pc and just saw that the post gained some traction. I am crossing my fingers ;)

comment 2y ago · link · parent

Thank you so much :)

I have a lot of ideas for further usecases for this tool, and I am probably going to write my bachelor thesis about it :)

20.

Show HN: Simulate 3D plants in the browser(plant.max-richter.dev ↗)

439 points · by jimfx · 2y ago · 49 comments

21.

Show HN: Plantarium – Create 3D Plant Models with Blender-Style Nodes(plant.max-richter.dev ↗)

2 points · by jimfx · 3y ago · 1 comment

comment 4y ago · link · parent

This sounds like a super nice idea! I had a similar idea, where you could use an adversarial neural network that creates random plants, and you would have a fitness function that determines how well a plant survives...

And contextfreeart looks super interesting!

Thanks for the ideas :)

comment 4y ago · link · parent

:)

comment 4y ago · link · parent

At the moment only .obj, but .gtlf/.glb and .fbx are planned!

comment 4y ago · link · parent

I looked shortly at Rete.js but for some reason it did not immediately click for me? And I was already thinking about how to implement it myself, so I just did that.

comment 4y ago · link · parent

BrowserStack is amazing for this, I just used the free tier, where you have like one minute with a remote safari session.

And can just open DevTools and look at the error. But it's a bit stressful because of the time limit

comment 4y ago · link · parent

Nope, not really, some people mentioned L-Systems maybe in the future I will implement them in Plantarium. For me, they always seemed a bit too mathematically and structured and not so natural...

comment 4y ago · link · parent

I am very creative in naming!

comment 4y ago · link · parent

I am a huge blender nerd, so definitely! The development of this was 100% inspired by Jacques Luckes animation nodes.

Regarding safari, i just found out that window.structuredClone is not available in Safari, the fix should be out shortly!

comment 4y ago · link · parent

Thank you! It was definitely not a rational decision implementing my own node system, but I wanted to explore how they work and what challenges there are to solve.

The most difficult thing was definitely the positioning of the connections and the scaling/transforming and converting between global coordinates and local coordinates.

Would recommend trying it though, it was a lot of fun!

12