google-ar / sceneform-android-sdk

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

Tiling with .glTF #392

Open terezo opened 5 years ago

terezo commented 5 years ago

Hi,

we are currently optimizing download size and memory consumption of our models. We have multiple variations (colors, textures) for each model we download and load at runtime. We need to reuse textures as much as possible. We want to use .glTF, because .sfb does not provide file references to textures.

Tiling

Big memory optimization for us is tiling. Here #190 is described how to tile textures with .sfb. glTF Documentation says something about scaling, but it seems to be not working. Our modelers use Blender with .glTF exporter 2.0.

We also designing some sort of "model config json" needed for iOS models where we use scale factor for tiling programmatically for given material, which iOS can access by the name.

As described #315, now is only index you can use to access material in sceneform. Would be really helpful for us to be able to use also material name to access and modify material programmatically.

Thanks for any advice!

ghost commented 5 years ago

Tiling should be working to our knowledge, if you have an asset which isn't working we can take a look.

jknazko commented 5 years ago

I have same problem with this asset tiling test.zip

bestog commented 5 years ago

I have the same problem. How can i change the uv scaling for a texture on runtime? #825