Giter Club home page Giter Club logo

Comments (5)

rramprasad avatar rramprasad commented on June 15, 2024

Any idea about this issue?

from sceneform-android-sdk.

AdrianAtGoogle avatar AdrianAtGoogle commented on June 15, 2024

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:

  • 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.
  • 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.
  • Note that a separate issue in 1.01 is the view does not consistently update when a new .sfb is computed; closing the asset in android studio and re-opening should work.

from sceneform-android-sdk.

rramprasad avatar rramprasad commented on June 15, 2024

@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

from sceneform-android-sdk.

AdrianAtGoogle avatar AdrianAtGoogle commented on June 15, 2024

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:
image

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

from sceneform-android-sdk.

claywilkinson avatar claywilkinson commented on June 15, 2024

Sounds like this resolved - please reopen if not. Thanks!!

from sceneform-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.