Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

My Quest to push native Three.js quality match AAA Game Engines (https://ben3d.ca)

166 points by bhouston 4 days ago | 83 comments | View on ycombinator

oooyay 4 days ago |

This was written by AI as other comments suggest but I still found it pretty informative. I have a side project that I use three.js on where I ended up having to play with lighting and reflection settings, so this write up was relevant enough for me to understand what the AI was talking about. If anyone is interested: https://portland.ooo-yay.com

greggman65 3 days ago |

The question is why? LLMs will write this stuff without three.js just fine.

See 4 examples I posted yesterday: https://news.ycombinator.com/item?id=50514583

Without three.js the LLMs are more free to write whatever is appropriate for the specific project, instead of having to work around three.js:s architectural decisions when they don't match the thing being made. They further don't need any of three.s infra.

Whether or not those examples are AAA, they are proof IMO that the LLMs can do it without the libraries AND they can do it better without the shackles. Take the GTA like one above, the LLM split the city in 128 triangle chunks and culls them all on the GPU, taking inspiration from Nanite. Any feature you want they will happily recreate in 1 or 2 prompts. And no, you don't need any special knowledge. You just need to ask the LLM to optimize over a few prompts and it will figure out solutions.

I know people will jump to three.js defense because it's well loved and a great library. At the same time, so many people are acknowledging that so many libraries in general are no longer needed. See shopify getting rid of middleware because the LLM doesn't needed it: https://shopify.engineering/back-to-native

It's the same with 3d libraries and game engines. Epic sees the writing on the wall. They can tell that there's much less need for Unreal today than ever and while Unreal is great and provides a ton of tools etc, every day LLMs get better at reproducing all of it, meaning they can see it has a shelf life. I think the same is true of most of these graphics libraries and game engines from the last 15 years.

matthova 3 days ago |

This is really cool and I learned a lot about it. My only question is with all of that information that you have and given that threejs works so well in browsers why not include some interactive examples in the browser?

I kept scrolling through looking for the payoff and didn’t find it, lol, all the same, I appreciate the technical details and the effort behind that.

dead_hn_theory 3 days ago |

Ben! Nice to see you on here.

Neat article. My one comment in all of this is that so much of what makes AAA games and game engines is in the application of much more than just graphics themselves (and very often the graphics of AAA games are "understood" by the time they come out as to be technically uninteresting). And then there is all the texture work and dramatization done by the art department. The title in the article is a better reflection (ahrem) of the subject matter.

Art9681 3 days ago |

Disregard all of the haters here who would have rather you toiled for hours writing something that is easily automated when you would rather spend your time building systems. They will be irrelevant soon enough. But your work will not. None of them would have won awards for prose either. And if they got with the times and used an agent to parse your blog and retrieve the bits that are relevant, no time would have been wasted.

Onward.

neomantra 3 days ago |

Why the haters? Somebody explored a topic deeply and shared the knowledge. They had LLMs help them, probably on both fronts. Would some AI tag have helped? The prose doesn't seem sloppy or too dense.

For me, I'm so used to reading AI tone/density now, it's fine. If I was looking for some deep heartfelt sentiment on Three.js and the community, then maybe then pure human authorship would be heralded.

Anyways, I'm building a Golang game engine. I've built these several times before over 30 years and the state-of-the-art changes and I only kept up with things that were relevant to my domain, such a data visualization and representations like Gaussian Splatting

So I loved seeing this. Yes, I read it with my eyes to learn. Then I told an LLM to read it and explore what would fold well into my engine. It helped fill holes in my knowledge (GI, SSR), as I'm not in the industry and not making scenes. So, Ben, despite the downvotes, keep building and sharing as there are people who will appreciate your manifestations.

Animats 3 days ago |

Nice. Questions:

- How do you do translucency? Depth sort and painter's algorithm in the CPU, order independent transparency in the GPU, or something else?

- How do are large scenes lit and shadowed without a cost of O(objects x lights)? This is where you tend to need access to a scene graph.

eska 3 days ago |

First paragraph: G-buffers, screen space reflections. These are considered outdated for years now in computer graphics and modern games have moved away from them.

Oarch 4 days ago |

I love it when a post leaves me dumbfounded and awed like this.

I thought I had the slightest idea about Three.js and computer graphics until this post burst that bubble!

nsainsbury 4 days ago |

Ben - since you're active in the comments here...what motivated you to fill your blog with Claude/AI slop? You're obviously a talented person who has been active in the space for a long time - don't you want to speak with your own voice? Who is your blog even for at this point? Humans don't want to read that - it's immediately off-putting (and in parts quite non-sensical). So who is this written for? For other Claude instances to use?

I don't understand at all people who are immediately surrendering their entire voice, personality, audience, credibility, etc. to Claude? I mean at this point why not just rename the entire site to "Claude's Blog" and tell it to adopt the persona of a Graphics Developer and "Write a post a day".

augment_me 4 days ago |

Excited about the idea but then immediately off-put by the slop.

If you intend no-one to use what you built except for LLMs, this is fine. If you intend for humans to read it and if you value your ideas in the context of other humans, you can't drop 15 pages of generated material. You can be a Nobel laureate and I will still feel like the text is a massive waste of time because I can't know if you even read it yourself.

sph 4 days ago |

Please don't waste my time with slop. If you ain't written it, I ain't reading it.

dorkwood 3 days ago |

[dead]

darig 4 days ago |

[dead]

kkukshtel 4 days ago |

This would be interesting to read if it wasn't just AI slop. I'm interested in this as an endeavor but if an AI is just writing about it's own progress with some nebulously defined goal, the only thing I care about is "does it work or not".

nnevatie 3 days ago |

Reading the first paragraph, it's clear it is just slop.

Slop has no gravity - why would I use your slop, when I can create mine?

jackb4040 4 days ago |

As someone who is actually trying to improve Three.js, this is almost pure slop and you may as well have just posted the prompt you used to generate it instead.