webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
341 stars 207 forks source link

App: baked reflection probes #910

Open madjin opened 3 years ago

madjin commented 3 years ago

Testing using https://webaverse.com/assets/60 How it looks in Webaverse vs VRChat

image

Steps: add reflection probe, click it, bake it using the render tab, reflection change on the materials based on it in blender

avaer commented 3 years ago

I talked to jin about it.

avaer commented 3 years ago

Our blender plugin: https://github.com/webaverse/blender-plugin THREE.js Light probe: https://threejs.org/examples/#webgl_lightprobe_cubecamera

Maebbie commented 3 years ago

bakedreflprobetest.zip please see attached, stripped the skybox to make it look like i would have expected it to look in webaverse with the baked reflection probe.

avaer commented 3 years ago

image

I think we can source this cache from the blender script for our plugin.

avaer commented 3 years ago

Apparently this cannot be exported right now?

https://blender.community/c/rightclickselect/2Sbbbc/

avaer commented 3 years ago

If we could get that light bake cache we could put it into the material's envMaps. The envmaps could be generated with this: https://threejs.org/docs/#api/en/extras/PMREMGenerator