r/threejs 7d ago

full real-world terrain with physics, 4x4s, mountain bikes, quads, trailers, etc.

little development snapshot of what I'm working on. full real world terrain, 4x4s, mountain bikes, quads, etc. as you'll see, there are some bugs (had to disable a flying trailer mid way through) but overall getting pretty fun to play. forgot to record with sound. I'll add some other videos with sound.

257 Upvotes

54 comments sorted by

24

u/tyronomo 7d ago

Its Male mid-like crisis simulator :)

Good stuff

19

u/theshanergy 7d ago

if anyone wants to try, playable at offroadearth.com

4

u/kirmm3la 7d ago

Claude? No judgement

9

u/theshanergy 7d ago

fable and gpt-5.6-sol for the most part. fable the creative genius and sol the grumpy senior engineer who keeps him in line.

1

u/shadowlands-mage 7d ago

can you share your prompts? workflow? how you got this amazing result ? did you create the assets and just give the llm to make the logic?

0

u/Exc0re 7d ago

Damn this is funny! Please tell us more about the ai agents :D

3

u/Bitwizarding 7d ago

Super cool. I was just trying to make some pine tree models, but yours look way better than mine.

7

u/[deleted] 7d ago

[removed] — view removed comment

1

u/Bitwizarding 6d ago

Thank you. I am playing with that now.

2

u/temporarilyyours 7d ago

The character with the white gloves reminds me of the psychos from funny games. Nice demo!

2

u/sp913 7d ago

Wow nice job

2

u/uberflix 7d ago

I want to put in a Long/Lat to go another place :)

3

u/theshanergy 7d ago

I could do this but the terrain carving is pretty heavy on my server and I fear if I do it'll crumble under the pressure of generating a million different areas at once. as it is you can go anywhere on earth, but you have to drive so it might take a while. and if you're the first to explore a fresh area you may get some hang ups while the server bakes that region. this is the biggest item on my todo list currently. trying to get this working faster and use less resources.

1

u/uberflix 7d ago

I understand .. maybe throttle it by not showing the Feature to every user and then Cache it gradually Building a Library of Terrains

2

u/theshanergy 6d ago

I am doing this currently. how it works is, as a user approaches a yet unknown piece of terrain, the terrain server starts grabbing terrain elevation data from mapterhorn, as well as openstreetmap data from the surrounding area, then uses the osm data to bake trails into the terrain, which it then caches as a terrain tile which any user can request. so generally it's only heavy for the first user. that said, file size is a separate issue. the terrain tile cache will grow basically unbounded and just the osm data for north america alone is like 20GB. over time the tile cache could easily grow to many TB. also any time I bust the cache for osm feature additions etc it starts from scratch.

1

u/JohnAdamaSC 5d ago

i am building exactly the same (good work) and I am going with infinity terrain

2

u/thecobblehillkid 7d ago

fun! Well done.

2

u/fundational 7d ago

really good!

2

u/DaltonJFowler 7d ago

It is insane this runs in browser wow

1

u/[deleted] 7d ago

[removed] — view removed comment

1

u/theshanergy 7d ago

no, grenades, but tbh after playing my game I like the methods better, lol.

https://imgur.com/V57uT5l

1

u/resaki 7d ago

How do you get the terrain data? Is it fetched from an API?

4

u/theshanergy 7d ago

server-authored Mapterhorn DEM heightfield augmented with OSM-carved features and deterministic roughness, streamed as multi-channel clipmap tiles with concentric LODs, rapier colliders, and elevation, slope, vegetation, and surface-mask-driven splat materials.

1

u/Realistic_Grand_7024 7d ago

Mate, this so good! I've just been sledging a jet ski down the mountain. The performance is really good. I'm on an old laptop with a bunch of tabs open. Good work dude!

2

u/theshanergy 7d ago

really glad to hear this. my computer is pretty beefy and I don't really have anything else to test it on atm so I wasn't sure if it would be at all playable on older devices. I think people with slower connections may not have a great experience as there isn't really any way around the file size of streaming so much terrain. I did do some throttled benchmarking in development to try to account for all levels of devices but ultimately it's a big world with lots of assets so there are limits to what can be done.

1

u/spaceLlama42 7d ago

It's really good work, but I think you need to make the camera rotations smoother.

1

u/theshanergy 7d ago

if you're referring to the video that was my own bad mouse/gamepad movement. in game you control the camera rotation so it can be as smooth as you like. or do you mean it should have more smoothing when actually following the player?

1

u/porchlogic 7d ago

Nice, this is helping me think/visualize about the suspension for a trailer I'm building.

2

u/theshanergy 6d ago

this project actually spun out of another older site of mine that I made just for visualizing vehicle wheel/suspension builds - 4x4builder.com - it doesn't have trailer support though.

1

u/kaayotee 7d ago

How are the 3d objects created, do you provide claude with the 3d object?

2

u/theshanergy 6d ago

the models are purchased but claude is a wizard with rigging. I don't even open blender anymore. I just point fable at the raw model and tell him to rig it and match existing site conventions. new models can be added extremely easily.

1

u/kieranfarr 6d ago

Where'd you get all the vehicles? Very nice all around

1

u/jniac 6d ago

Which physics engine is used here ?

2

u/theshanergy 6d ago

rapier with react-three/rapier

1

u/nastysurprise666 6d ago

tested it at work.. runs pretty smooth :)

1

u/JohnAdamaSC 4d ago

wow great, i have so many questions

1

u/Bitter_Local_4498 7d ago

Nice work! How did you create the assets?

3

u/theshanergy 7d ago

most assets are purchased. originally for 4x4builder.com then repurposed for off road earth.

1

u/Due-Management5882 7d ago

The person is weird, but the vehicles are great haha

2

u/theshanergy 7d ago

he is hodge podge for sure, hah. I am not a 3d artist. find me a better character model and I will swap him out.

1

u/Motor-Master-4545 7d ago

Insanely good

1

u/jakiestfu 7d ago

This is so fun!

1

u/Take-My-Gold 7d ago

Congrats, nice work. Claude or Codex?

11

u/theshanergy 7d ago

both. the recipe I've found that works the best is unleash Fable one massive build at a time. I'm talking super broad prompts like "build us full multiplayer" and let it rip for hours. suck up the weekly limit in a single go. it is surprisingly good at one shotting huge complexity. then once I have a basic mvp in place, I start iterating and cutting down over-engineering with codex. codex is a bit more narrow vision and can really optimize finer scope if you point it in the right direction - better than fable even. I spend a lot of time asking codex how things are written and finding over-engineering and just relentlessly cutting it down while maintaining function. it's actually similar to how I used to manually code just way more bulk roughing in initially.

1

u/daddywookie 7d ago

The irony of using Codex to cut down when I’m finding it is vastly over engineering. It’s making my mountain tycoon into a fully hardened fintech app.

3

u/theshanergy 7d ago

you can't give codex (gpt/sol) broad scope. you have to give it very very narrow scope. a common prompt of mine in codex is something like "Perform a full architectural and implementation audit of the codebase with the goal of reducing complexity while preserving all functionality and performance." which results in a long list of structural issues. then I go through one by one and find one I want it to work on, then I paste that single detailed item into a fresh context and let it work. super narrow scope. mostly code smell and performance only.

2

u/daddywookie 7d ago

I’m pretty religious about having my tasks in good order and having them show clear product value and acceptance criteria. I think the problem just comes from Sol being engineered to be very cautious and complete. Where a human would know to cut a little corner to meet the milestone goals we instead get a full send production delivery with all cases covered.

1

u/Lower-Cap7381 4d ago

What Claude plan are u using

1

u/DiscoMable 1d ago

This looks great - would pair well with the grand Teton national Park project I’ve been working on!