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

Hardware accelerated textures? #273

Open ninerdelta opened 6 years ago

ninerdelta commented 6 years ago

I was testing ETC1 textures (converted from .PNG) using Texture.Builder and then using .setSource(Callable<InputStream>) but get the warning "the InputStream is not a valid bitmap". Setting the source from a .PNG works fine, but looking at memory it looks like it just gets unpacked to a bitmap. Is there currently a path, or plans to add a path, for using formats like ETC1/2 or ASTC?

romainguy commented 6 years ago

The underlying renderer can accept compressed textures but they are not handled by the rest of the pipeline at this point.

Consti10 commented 5 years ago

any updates on this ? We need a better compression format for our textures than .png, but are stuck with it because the importer does not work with opacity maps.