Live data from Hacker News

Show HN: Nexus.js - Fabric.js for 3D

punk.cam

21–29 of 29 posts

Re: Show HN: Nexus.js - Fabric.js for 3D

#22
Ha, that brings me back trying to make Fabric.js somehow usable for a 3D viewport at a startup I was working at a while ago. (We used esm.js instead of WASM for the 3d engine, to give you an idea)

It was a lot of wrangling and unexpected behavior, and we ultimately ended up implementing a more traditional 3d gizmo - though the application was also really only meant to be used at a desktop with a mouse instead of also supporting touch controls.

Re: Show HN: Nexus.js - Fabric.js for 3D

#23
post #7

This is pretty interesting - how has your experience been with R3F? I've built a small game level with it before and I'm wondering if I want to go all the way and build something larger. Also, are you planning on making this open source at some point? Fabric is nice in that it manages 2D canvas objects for you & you can build things like an editor on top, in this case as a library what would you consider the primitiv…

It's great for organizing your scenes, and at least for me, it's far more readable than raw Three.js code. Unfortunately, games, especially real-time ones, don't map well to idiomatic React code. You might find yourself putting bits of game logic into various awkward places. Still, I don't think there's a better alternative for the web, except maybe Threlte if you're fine with a smaller ecosystem.

Re: Show HN: Nexus.js - Fabric.js for 3D

#25
Really impressive app! I'm not sure what I would use it for but definitely cool and impressive.

I built something similar a few years back. My thing doesn't do textures its essentially just icons, text or shapes that can be layered, colored or extruded in 3d space on a 2d design canvas. demo: https://sg.halbe.works/

I built it on Skia, three.js and my own layer algorithm.

Post reply on HN