Start a new topic

Render Drawable2D over Drawable

Render Drawable2D over Drawable


 

I want a Drawable2D to render over a Drawable. I've been reading the documentation and I've already tried renderingOrder but my Model will always be over my AnimatedImageDrawables.

 



 

I would like the explosion and lightning over the ghost model. 

Source code here.

var animations = new AR.GeoObject(location, {
drawables: {
cam: ,
},
renderingOrder: 1
});

var obj = new AR.GeoObject(location, {
onEnterFieldOfVision: function() {
boo.stop();
if (!appear) {
rotateGhostZ.start();
appearGhost.start();
appear = true;
}
},
onExitFieldOfVision: function() {
boo.play(-1);
},
drawables: {
cam: ,
indicator:
},
renderingOrder: 0
});

 

Hello Bryant,

What you described is expected behaviour. Currently we always render 2d augmentations before 3d augmentations. Since we are aware of the fact that this could be a limitation for some use cases, we are planning to fix that in our next major release of our SDK.

Thanks
Login or Signup to post a comment