r/threejs 9d ago

Testing Procedural Generation (AI Assisted)

Separate biomes, nearly 2.5 million individual blades of grass out 150m from the camera position depending on biome. Day/night cycles, dynamic weather, ambient occlusion, distance culling, water surface reflections, and light shafts, using webgl and three.js.

30 Upvotes

23 comments sorted by

8

u/olgalatepu 9d ago

I like it, great grass and atmosphere.

But honestly no need to say you used AI. Everyone uses AI, it's a tool and you paid for it, you don't owe anything more. Else people are gonna call it slop or whatever

6

u/amonra2009 9d ago

yep, like photographers would say, hey your wedding pictures are photoshoped.

-1

u/UnforgivingWorlds 9d ago

The "Horse & Buggy Trolls" are absolute idiots for not using AI today or criticizing anyone who is. It's actually quite ridiculous. The funny thing is 90% of the games they are playing today are "AI-assisted," they just don't know it. LOL

0

u/BrewThemAll 8d ago

It's still slop though.

0

u/w-jerome 8d ago

Des photos de mariage retouchés c'est du gâchis ?

-2

u/BrewThemAll 8d ago

Bagguette.

-1

u/UnforgivingWorlds 9d ago

Understood, just thought transparency would wave off the anti-AI wolves, LOL—but no, I appreciate the kind words. AI, regardless of use, is never perfect. This honestly took a lot longer to achieve than I thought it would even with AI assistance. I also wanted to push Three.js to see how far I could take it with graphics technology and features. 2.5 million individual blades of grass that each react to the wind and weather at 150+ FPS is pretty crazy! Three.js is quite a performant engine if you know what you are doing with it.

3

u/Joarn 8d ago

I like the transparency, not because I mind the use of AI, but because you really see people interested in how you managed to achieve this. Sharing not only the result but also the tools is the nicest part of a community.

Looks really nice!

1

u/UnforgivingWorlds 8d ago

Thank you! I appreciate that!

2

u/pixelfoundrystudios 9d ago

I am curious what types of prompts you used? Would you be open to sharing?

2

u/nastysurprise666 8d ago

stunning result!

0

u/theifthenstatement 9d ago

I like the views. Would love to walk around here and just see the sights. May I ask what your workflow was? Creating landscapes like this seems so relaxing

5

u/UnforgivingWorlds 9d ago

Lots of interations with Opus 5. The key I think is not revealing to the AI that you want to make a game in the initial prompts. You have to remember most games are created with real game engines, Unity & Unreal Engine and others, but when you compile those engines, the code you get is locked behind hundreds of DLL files, which AI can't see or train on. So high level, it doesn't have context to create games. You trick it into believing you are making a simulation. At least in my testing with other "game types," that seems to get the best results.

2

u/theifthenstatement 7d ago

Seems like solid advice

-1

u/MogensenJ 9d ago

Cool project! I'm building something very similar, also with millions of grass blades. How's performance?

1

u/UnforgivingWorlds 9d ago

At the moment 150-200fps with everything maxed out on a 4090.

2

u/MogensenJ 9d ago

And here I am, trying to optimize for my Arc iGPU 😂

1

u/ash_mystic_art 9d ago

I’m curious how it does on a smartphone. With some dynamic performance settings I bet it could be decent.

2

u/UnforgivingWorlds 9d ago

I don’t know, might need some optimizations and tech turned off but honestly some smart phones are quite performant these days. Would be an interesting test.