Closed HemanParbhakar closed 4 years ago
You are passing Filament an older material file. Make sure you recompile all your materials.
i have recompiled it again still same
It must be another material
no its same i have only one material
Also how to set this material priority above then that of camera.
If you are using Sceneform you will probably need to recompile the materials used by Sceneform internally.
i have already recompile then given the path of the .filamat file. It's still same. But if i make the version of filament in Android 1.7.1 Also the version with which i am compiling to 1.7.1. then it works not with latest version in both case.
on using the 1.7.1 version the element does not perform occulsion.
Describe the bug A clear and concise description of what the bug is. Error : Panic in static filament::MaterialParser filament::FMaterial::createParser(backend::Backend, const void , size_t):512 reason: Material version mismatch. Expected 10 but received 7. Version Androd: api 'com.google.android.filament:filament-android:1.9.2' api 'com.google.android.filament:gltfio-android:1.9.2' implementation files("../libs/libsceneform_runtime_schemas.jar") api "com.google.ar:core:1.19.0" Filament version compiled with 1.9.2 matc --version 10 To Reproduce Steps to reproduce the behavior:
fragment { void material(inout MaterialInputs material) { prepareMaterial(material); material.baseColor = vec4(0.0); } }
matc -p mobile -a opengl -o output.filamat input.mat
Then set the model using: Renderable renderable; ModelRenderable.builder() .setSource( this, Uri.parse( "https://storage.googleapis.com/ar-answers-in-search-models/static/Tiger/model.glb")) .setIsFilamentGltf(true) .build() .thenAccept( modelRenderable -> { renderable = modelRenderable; com.google.ar.sceneform.rendering.Material.builder() .setSource( getApplicationContext(), R.raw.output ) .build() .thenAccept(new Consumer() {
@Override
public void accept(Material material) {
renderable.setMaterial(material);
}
});
} Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.