ssatguru / BabylonJS-CharacterController

A CharacterController for BabylonJS
Apache License 2.0
215 stars 46 forks source link

How can I change brightness of the avatars? #69

Open chopin opened 11 months ago

chopin commented 11 months ago

Hi. Thanks for sharing this great controller.

I upgraded my previous controller version 0.1.0 to 0.4.3 with the avatars in the demo site opened.

I found that the avatars looked too dark (both Vincent, and Npc) in the demo site. They look almost black when I look at the shadowed side without lighting in my web site.

The avatars in the old version looked pretty bright and clearly visible from all directions even without light. It seems that something changed about the brightness of avatars in version 0.4.3 (or before it).

How can I change the brightness of the avatars? I don't use any mesh editor, and I hope that there is an easy way to change brightness of a loaded mesh.

Thanks in advance.

chopin commented 11 months ago

I tried mesh.material.emissiveColor= BABYLON.Color3(1,1,1). But, it had no difference.

ssatguru commented 11 months ago

Hi, I am not sure how I can help with that. The character controller doesn't influence the material property of the avatars. Also, the avatars show up ok in my browser. Try turning off shadow and see if that helps.