made this in blender and react. still surprising how powerful a tool functional composition is.
30,527 次观看
10 条评论
评论来自 X (Twitter) 上的原帖

@0xca0a
also a nice example to highlight the workflow between blender and your web app. a single command: npx gltfjsx kitchen.glb --transform has turned a 134MB model into just 2MB, that's 98% compression. but it also made the whole scene declarative. adding selections is easy.
58 个赞

@seflless
Nit pick and you know I'm an r3f fan boy. Nothing about imperative/OO is less compositional. Most games engines are imperative OO/component systems. The issue is that three.js never came up with a component system and if it had the value gap with r3f would have closed a bit. Being react and a protocol/composition system that everyone knows is definitely a big deal though.
5 个赞

@emaalozada
it is possible to get similar results replacing blender with Spline?
1 个赞

@0xca0a
I would think so
2 个赞

@shabaniddrisu
@Andersonmancini This is great; however, to gain more clarity on why you say “Imperative JavaScript and Object Oriented Programming” lacks “Composition”, is it that without React, one can not use any means to achieve a “Composition” kind of “Declarative JavaScript” in pure JS..?
1 个赞

@0xca0a
@Andersonmancini pure js can do it in its domain, think lodash or ramda, they functionally compose. if UI is involved js can not, it would require a component paradigm. if you want to try it, make a ticker in pure threejs and lets compare notes, im curious what people would come up with.
2 个赞

@AnidaDump
This is amazing, are there any similar projects with tutorials that I could learn from?

@0xca0a
i wanted to make this a tutorial at first but i got no time. you learn how to make this in @bruno_simon's threejs journey. today's 50% off if you catch someone post their code. i posted earlier, try if it's still valid. best learning resource for this kind of thing on the web.
4 个赞

@michae1becker
Looks cool! Uh What *is* it

@0xca0a
it ... being ... the kitchen?