Closed rramprasad closed 6 years ago
Any idea about this issue?
Hi @rramprasad thank you for submitting this issue. The lighting on the asset in your screenshot definitely doesn't look right. It looks like there are a few different issues:
Ns 50.000000
in your .mtl file. That is requesting a material with a very high phong exponent, which in our lighting model maps to a very low roughness. Try setting the 'roughness' parameter in your .sfa
to 1.0 and rebuild..obj
file..sfb
is computed; closing the asset in android studio and re-opening should work.@AdrianAtGoogle,please see comments below,
If you're concerned about shininess, this is happening because of the line Ns 50.000000 in your .mtl file. That is requesting a material with a very high phong exponent, which in our lighting model maps to a very low roughness. Try setting the 'roughness' parameter in your .sfa to 1.0 and rebuild.
Yes,Already my .sfa roughness parameter is 1.0. So the output is same as above screenshot.
It looks like the geometry with the icon texture isn't exported with normals. There is an issue in the 1.01 release where normal generation always makes a fully smoothed model, which is rarely what people want. This will be addressed in the next release; in the meantime you can work around by exporting explicit normals to your .obj file.
I think already by .obj contains normals. I have attached my .obj file(renamed .obj to .txt). Is it anything issue in this .obj file? icon_03.txt
Hi @rramprasad,
You're correct that the model already has normals - in fact it seems that is the problem.
I saved your linked text file as an .obj
, made the .mtl
and the .jpg
from the contents of the OP, and imported the model into blender 2.79 - the result has the same issues present in the sceneform asset.
Here is a screenshot:
The normals in the asset do not seem to be correct; many of them are inward facing (causing the lighting seams across triangles). The normal issues need to be fixed in the source asset
Sounds like this resolved - please reopen if not. Thanks!!
I have converted .obj file with .mtl and .jpg texture. It converts to sfa and sfb. But the texture is having some issues like below,what is missing in this?
created .sfa file:
icon_03.mtl
Issue in texture:
Original texture:(.jpg file)
Android Studio 3.1.2 Build #AI-173.4720617, built on April 14, 2018 JRE: 1.8.0_152-release-1024-b02 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0