Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off visibility of added 3D model #9

Open
Najaf93 opened this issue Jul 16, 2021 · 4 comments
Open

Turn off visibility of added 3D model #9

Najaf93 opened this issue Jul 16, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Najaf93
Copy link

Najaf93 commented Jul 16, 2021

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.

@kalwalt kalwalt transferred this issue from webarkit/ARnft Jul 16, 2021
@kalwalt
Copy link
Member

kalwalt commented Jul 16, 2021

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
    },

@Najaf93
Copy link
Author

Najaf93 commented Jul 17, 2021

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.👍

@Najaf93
Copy link
Author

Najaf93 commented Jul 17, 2021

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.

@kalwalt
Copy link
Member

kalwalt commented Nov 9, 2021

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.

@kalwalt kalwalt added enhancement New feature or request help wanted Extra attention is needed labels Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants