跳过导航
made this in blender and react. still surprising how powerful a tool functional composition is.
0:00 / 0:29

made this in blender and react. still surprising how powerful a tool functional composition is.

☄︎

@0xca0a5.8万 位关注者

在 X 上查看
365 个赞下载原帖

30,527 次观看

made this in blender and react. still surprising how powerful a tool functional composition is. the ticker is solved with minimal effort, same semantics devs would use on the web. this is a side that is generally ignored in webgl/threejs. canvas3d is thought of in terms of scene primitives, math and shaders. these are all good to know. but i see people all the time trying to use these for solving problems that are inherently of a compositional nature, and fail. imperative javascript and oop lack composition. this is the only thing react adds to threejs (and any other platform it renders to), it allows it to compose.

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 个赞

  • Francois Laberge ✍️ 的头像

    @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 个赞

  • ema.fig 的头像

    @emaalozada

    it is possible to get similar results replacing blender with Spline?

    1 个赞

  • ☄︎ 的头像

    @0xca0a

    I would think so

    2 个赞

  • Shaban Iddrisu 的头像

    @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 个赞

  • Craven Moorehead 的头像

    @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 个赞

  • Michael Becker 的头像

    @michae1becker

    Looks cool! Uh What *is* it

  • ☄︎ 的头像

    @0xca0a

    it ... being ... the kitchen?