Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.03k stars 1.13k forks source link

How to proper light up an FBX in ARFoundation ? #733

Closed alexs7 closed 3 years ago

alexs7 commented 3 years ago

I am exporting a FBX model (and a DAE model) from Sketchup and the model looks fine in the Scene Viewer. The moment I render it in AR on a tracked image it gets really dark.

Do I have to code anything extra related to light ?

Thanks

tdmowrer commented 3 years ago

This doesn't sound like it is related to AR. What happens if you place the model in an otherwise empty scene and build the Player (that is, without AR enabled)?

alexs7 commented 3 years ago

I think I got it. I added a bunch of directional lights and the model lights up now. But I was wondering if there is an ambient light solution. The closest thing I could find was a light called "point light"

tdmowrer commented 3 years ago

But I was wondering if there is an ambient light solution.

Yes; please see https://docs.unity3d.com/Manual/lighting-ambient-light.html

alexs7 commented 3 years ago

Ok great! Thanks!