跳过导航
bug fixes to environment & lightformer in drei.
0:00 / 0:39

bug fixes to environment & lightformer in drei.

☄︎

@0xca0a5.6万 位关注者

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

18,144 次观看

bug fixes to environment & lightformer in drei. making your own environment maps with code has real benefits: they're tiny—a few bytes, you have full creative control, and looks good! the demo re-creates THREE.RoomEnvironment w/ an additional ring light.

10 条评论

评论来自 X (Twitter) 上的原帖

  • ☄︎ 的头像

    @0xca0a

    THREE.RoomEnvironment in r3f this is a little easier because you can mount this stuff directly into the drei component. then abstracts some nice-to-have photographic soft box attributes (form:rect-ring-circle-box, intensity, and so on).

    6 个赞

  • ☄︎ 的头像

    @0xca0a

    the bugfixes: - environment had some HMR issues and didn't always update correctly - lightformer was hard to orient. it will look to 0/0/0 or the target prop by default now, unless you give it a specific rotation

    3 个赞

  • The Ebenezer 的头像

    @th_ebenezer

    This is a highly underrated feature!! I’ll start using this more from now on.🙌

    2 个赞

  • Anderson Mancini 的头像

    @Andersonmancini

    Amazing work guys. Can I ask for a future feature? Can we control the parameters also when we use the ground property? Today, when we set the ground, we lose control over rotation, intensity, etc. Please please please 🙏🏻 😀 . Thank you so much for your amazing work as always.

    1 个赞

  • ☄︎ 的头像

    @0xca0a

    im not sure, but i think the ground projection is not really an environment. but i think you are right, props that could transfer over should. @CantBeFaraz do you know if that's possible?

    1 个赞

  • Anderson Mancini 的头像

    @Andersonmancini

    Would be so amazing if we could make the light former visible only for the reflection but not the background. In some cases, we need to use spheres to fake the environment so we don't show the light formers in the background. That would be super useful too. Again, just suggestions okay? The component is perfect the way it is 😍👏🏻.

    1 个赞

  • ☄︎ 的头像

    @0xca0a

    could you clarify? the background is optional via the "background" prop. you can also make an env specifcally for the background, and one more specifically for reflections: <Environment background="only"> <foo /> ... <Environment> <bar />

    4 个赞

  • Brian Breiholz 的头像

    @BrianBreiholz

    My latest goto for a quick environment is using <Sky/> inside <Environment> works really well for Outdoor scenes

    4 个赞

  • ☄︎ 的头像

    @0xca0a

    i tried this in a small game once, mounting the same <Game /> additionally into <Environment resolution={64} /> and it kind of somewhat worked. 😄

    2 个赞

  • Tyson Skakun 的头像

    @TysonJeremy

    I know compression will kill the video, but its beautiful. I immediately updated to test it out.

    3 个赞