Live data from Hacker News

Show HN: Simulate 3D plants in the browser

plant.max-richter.dev

21–30 of 51 posts

Re: Show HN: Simulate 3D plants in the browser

#21
post #18

What makes this a simulation and not just a model?

I guess because it is procedurally based, likely using an L-system.

https://en.m.wikipedia.org/wiki/L-system

We use things like this in 3D art and animation. For example the paint system in Maya. This was used to create the forests in Shrek.

Question to OP… have you considered making this available as a Blender plugin?

Re: Show HN: Simulate 3D plants in the browser

#22
post #5

This is so useful and nice for so many reasons. A well written browser based node graph editor that can create procedural 3d meshes _and_ export as .obj _and_ you've permissively licensed it. This could be the seed for a whole host of procedural tools. Thank you Jim.

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 :)

Re: Show HN: Simulate 3D plants in the browser

#23

I'm impressed with the complexity here. For folks wanting to take it for a quick spin... The tutorial is great but takes a few minutes to get to the fun. Instead just play with the sliders in the right pane and see how it modifies the fern. Also click library and load some other models to see what it can do. You can tell this is brand new because there are no penises to load in the user submitted models yet.

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 ;)

Re: Show HN: Simulate 3D plants in the browser

#24
post #9

Looks very nice, one small problem - when I change the values, the camera seems to "shake" because the shape of the plant changes, so it has to constantly readjust, and it's kind of annoying (at least for me). Maybe it could be possible to freeze the camera while the parameters are being changed?

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

Re: Show HN: Simulate 3D plants in the browser

#27
post #21
post #18

What makes this a simulation and not just a model?

I guess because it is procedurally based, likely using an L-system. https://en.m.wikipedia.org/wiki/L-system We use things like this in 3D art and animation. For example the paint system in Maya. This was used to create the forests in Shrek. Question to OP… have you considered making this available as a Blender plugin?

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.

Re: Show HN: Simulate 3D plants in the browser

#29
post #12

Fantastic. I can't wait to see a whole forest of crowdsourced algorithmic plants. Is this connected to any scientific projects? A cool feature would be an AI botanist that tells you how likely your plant would survive, what's the closest taxonomic reference, a nice recipe to go along with boiled rice,...

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 :)

Re: Show HN: Simulate 3D plants in the browser

#30

As far as I can tell this uses WebGL, I wonder if you could get these results just as easily using WebGPU

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 :)
Post reply on HN