HMS-Core / hms-3d-modeling-demo

HUAWEI 3D Modeling Kit project contains a sample app. Guided by this demo, you will be able to implement full 3D Modeling Kit capabilities, including 3D object reconstruction and material generation.
Apache License 2.0
72 stars 20 forks source link

TextureMode.PBR - PBR textures are not included #12

Closed lvonasek closed 2 years ago

lvonasek commented 2 years ago

I tested object modeling with TextureMode.PBR: `` Modeling3dReconstructSetting setting = new Modeling3dReconstructSetting.Factory() .setReconstructMode(Modeling3dReconstructConstants.ReconstructMode.PICTURE) .setTextureMode(Modeling3dReconstructConstants.TextureMode.PBR) .create();

        Modeling3dReconstructInitResult modeling3dReconstructInitResult;
        modeling3dReconstructInitResult = modeling3dReconstructEngine.initTask(setting);


When I download the reconstructed model there is diffuse texture only. I tested it with both OBJ and GLTF.
coolleizhu commented 2 years ago

You can only get diffuse texture because you are download in normal mode.

You can configure the download settings with Modeling3dReconstructDownloadConfig.Factory interface to get the expected result.

There is development guide here:
https://developer.huawei.com/consumer/en/doc/development/graphics-Guides/reconstruct-engine-0000001156106863#section58372254289

You can find the download part in step 8.

lvonasek commented 2 years ago

Thank you for help. You do a great support👍.

It work for me now.