https://kotlinlang.org logo
#compose
Title
# compose
a

andrew

03/20/2022, 12:32 AM
Had some help from @romainguy, wrangling filament for this, still very rough but I wrote composable wrappers for some imperative APIs for Filament's model viewer. Also these are real IoT devices I'm triggering in the office around 1k miles away in Philadelphia. I'm in Florida, and I hope no one wonders why a light is going on/off 😂
r

romainguy

03/20/2022, 12:45 AM
Gotta increase the indirect light intensity :)
a

andrew

03/20/2022, 1:01 AM
Will do that next while it’s on my mind 😛
After that, since I just hooked up the device api, I was gonna add a ControlsProviderService 🙂
Increasing the intensity also blows it out in light mode, I guess I need to investigate inverse tone mapping as you suggested to mitigate this?
I also need to investigate lighting this with a spotlight or something to cast a shadow from the switch onto the base plate
Similar to this
r

romainguy

03/20/2022, 4:42 AM
You can also get some shadowing by enabling ambient occlusion
As for being blown out, reduce the intensity :)
Find the right balance between the two
Btw you can export your spot lights with gltf
Filament will import them
a

andrew

03/20/2022, 7:42 AM
Ah, that's awesome to know!
5 Views