var image1 = new AR.ImageResource("assets/foo1.png"); var image2 = new AR.ImageResource("assets/foo2.png"); var drawable1 = new AR.ImageDrawable(image1, 5); var drawable2 = new AR.ImageDrawable(image2, 5); var loc = new AR.RelativeLocation(null, 30, 0, null); drawable1.onClick = function() { drawable2.enable = true; drawable1.enable = false; }; drawable2.onClick = function() { drawable1.enable = true; drawable2.enable = false; }; var go = new AR.GeoObject(loc, { drawables: { cam: } });
Hi guys,
regarding: "... a change of textures or colors on the fly is not possible at the moment.
As a workaround you could create the same models with different materials and exchange the models when a button is clicked." Is this still the only available option in SDK Cordova version 8.0?
Beside a more complex workflow, I'm worried that with a large number of model variants the size of my app grows excessively.
Suvin Binusha