immersive-web / model-element

Repository for the <model> tag. Feature leads: Marcos Cáceres and Laszlo Gombos
https://immersive-web.github.io/model-element/
Other
63 stars 11 forks source link

Setting the image-based lighting (IBL) #47

Open marcoscaceres opened 2 years ago

marcoscaceres commented 2 years ago

In order for models to be rendered appropriately within the context of web document, it might be useful to give developers some means of controlling the IBL.

For example, it might not make sense to use sunny environment light for models sitting on a predominately dark document (and vice versa).

There may be some overlap here with light/dark mode in CSS... but not sure.

mrdoob commented 2 years ago

What hdr file formats are you thinking of?

marcoscaceres commented 2 years ago

I'm not just yet 😅 But yeah, we might need to inevitably discuss formats.

Right now, I'm just thinking of the UA provided IBL.

AdaRoseCannon commented 2 years ago

Ideally this could also be plugged into the textures from the lighting estimation API under the hood for AR uses

On Tue, 9 Aug 2022, 07:43 Marcos Cáceres, @.***> wrote:

I'm not just yet 😅 But yeah, we might need to inevitably discuss formats.

Right now, I'm just thinking of the UA provided IBL.

— Reply to this email directly, view it on GitHub https://github.com/immersive-web/model-element/issues/47#issuecomment-1208977311, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAHSMTTJQD7O564GPWDQDLVYH42LANCNFSM557JVSVQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

cabanier commented 2 years ago

Ideally this could also be plugged into the textures from the lighting estimation API under the hood for AR uses

Using lighting estimation would require a permission prompt. I believe we agreed that we wanted use to be low friction.

cabanier commented 2 years ago

In order for models to be rendered appropriately within the context of web document, it might be useful to give developers some means of controlling the IBL.

For example, it might not make sense to use sunny environment light for models sitting on a predominately dark document (and vice versa).

I think we can leave that to the UA to decide.