google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 603 forks source link

Can not apply textures of fbx model #270

Closed dementia2029 closed 5 years ago

dementia2029 commented 6 years ago

I have an FBX model and textures: https://drive.google.com/file/d/1LI9qP-NnqVejJ7kRgyHHRA3ssu6ArPhZ/view?usp=sharing When i try to setup textures in sfa file like this:

name: "cloth__",
        parameters: [
           {
              baseColorMap: "close_base",
           }
.......
samplers: [
         {
            file: "sampledata/models/cloth___Base_Color.jpg",
            name: "close_base",
            params: {
                usage_type: "Data"
            }
         }

Or like this:

 name: "wood",
         parameters: [
            {
               baseColorMap: "wood_base",
            }
......
{
            file: "sampledata/models/wood_Base_Color.png",
            name: "wood_base",
            params: {
                usage_type: "Color"
            }
         }

Textures does not apply. But i am able to setup baseColor and it works. Also, if i add pipeline_name then an error during building is occurred. Pls, any help. Thanks.

dementia2029 commented 6 years ago

My latest sfa file: Divan.sfa.zip

dementia2029 commented 6 years ago

Anyone?

dementia2029 commented 6 years ago

How to resolve error "layered textures not supported"?

malik-at-work commented 6 years ago

Sorrry for the long response time. We did track this issue as a bug and we resolved it in Sceneform 1.5 Please retest this.

claywilkinson commented 5 years ago

Please reopen this issue if you are still having issues with the latest Sceneform SDK.