Replies: 3 comments
-
three has color encoding which affects how the end result looks. i dont know what the editor configures but theres no difference between threejs and r3f, ambientlight is the same, given that you configure your canvas in the same way. try <Canvas colorManagement ... > which uses srgencoding and acisfilmictonmapping. otherwise use the same enconding and tonemapping as the editor. here's an exanple using ambientlight https://codesandbox.io/s/hungry-easley-lwmpi |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for the reply! |
Beta Was this translation helpful? Give feedback.
-
Hey, i would like to ask about, if i am mapping a baked texture on a self made glb file, and i am trying to add ambient light ( or any kind of light because, i want not baked light on my scene too )i am applying meshStandard material for the mapped texture, the whole glb object start to vibrating, as if the light vibrating. Did you guys dealt with this problem? |
Beta Was this translation helpful? Give feedback.
-
When using ambientLight compontent in threejs editor (left) and a simple r3f project (right) the result is completely different for models with dark materials and textures. As if effect of ambient light reduces on darker surface. Here is the model I used and the comparison of same settings in r3f and threejs editor examples. (Both scenes have directional light with same values too.)
monkey.zip
How can I achieve the same result in a r3f scene?
Beta Was this translation helpful? Give feedback.
All reactions