Turn off visibility of added 3D model
How do turn off the visibility of an added 3d model? I tried this code for toggling visibility, but its not doing anything.
code:
nftAddTJS.objVisibility=false;
Any help is appreciated. Thank you.
Hi @Najaf93 I moved the issue to the ARnftThreejs issue tracker. The snippet code nftAddTJS.objVisibility=false; won't work. You should instead add in the config.json file the objVisibility to true as in this piece of code:
"renderer": {
"alpha": true,
"antialias": true,
"precision": "mediump",
"objVisibility": true
},
Hi @Najaf93 I moved the issue to the ARnftThreejs issue tracker. The snippet code
nftAddTJS.objVisibility=false;won't work. You should instead add in the config.json file the objVisibility to true as in this piece of code:"renderer": { "alpha": true, "antialias": true, "precision": "mediump", "objVisibility": true },
Thanks a lot, man, I appreciate the help.👍
Hi @kalwalt with the help of the above code I can turn off the root rendering and that is awesome. But in my case, I am adding multiple models in a root so how do I turn off those individually?. Any help is appreciated. Thank you.
Hi @kalwalt with the help of the above code I can turn off the root rendering and that is awesome. But in my case, I am adding multiple models in a root so how do I turn off those individually?. Any help is appreciated. Thank you.
Sorry for the delay, i think it needs to implement a turnOff method. I will let you know when is ready.