Remote assets and occlusion
varumora
Posts: 2
Hi, I'm trying to make an effect that combines custom landmarker with remote assets. Everything is working fine excepting that the remote asset doesn't respond to the landmarker mesh's depth buffer when the mesh's material is a 0 alpha occluder.
If I add another object, or I manually import the asset in the project everything works fine, the problem only happens when importing from remote. I've also tried manually seting the render layer via script but I couldn't make it work. Any ideas on what could be the problem?
0
Answers
-
if anyone comes here I just fpound a solution aplying this function on the object:
function setRenderOrder(so){ var m = so.getComponents("Component.RenderMeshVisual"); if(m != null){ for(var j = 0; j< m.length; j++){ m[j].setRenderOrder(6); } } for(var i=0; i<so.getChildrenCount(); i++) { var child = so.getChild(i); setMaterials(child); } }
6 is my render order for the landmark mesh, it could be different to you
0