sceneform-android-sdk icon indicating copy to clipboard operation
sceneform-android-sdk copied to clipboard

Tiling with .glTF

Open terezo opened this issue 8 years ago • 3 comments

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.

  • Can you give any advice how to tile with .glTF?

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.

  • Is it possible to tile material textures programmatically?

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!

terezo avatar Oct 24 '18 11:10 terezo

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

ghost avatar Nov 15 '18 18:11 ghost

I have same problem with this asset tiling test.zip

jknazko avatar Feb 15 '19 10:02 jknazko

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

bestog avatar Aug 16 '19 15:08 bestog