Hello everyone!
I want to create invisible IAnimatedMeshSceneNode .
I can not use "node-> setInvisible" because I need to have active the child nodes (joints bones and other nodes)
How I can create a invisibly node without having to disable it? I can create an Invisible material?
very thank!
Create invisible IAnimatedMeshSceneNode
Re: Create invisible IAnimatedMeshSceneNode
Do you ever need the mesh? Otherwise you can clear the vertices + indices in the meshbuffers.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 66
- Joined: Sat Sep 29, 2012 11:58 am
Re: Create invisible IAnimatedMeshSceneNode
you can set shaders for the animated node and in fragment shader set its alpha value to 0.
Re: Create invisible IAnimatedMeshSceneNode
thanks for the comments
I decided to apply a material type transparentAddColor,
this because I need to quickly switch on / off the visibility of the mesh
I decided to apply a material type transparentAddColor,
this because I need to quickly switch on / off the visibility of the mesh
Re: Create invisible IAnimatedMeshSceneNode
why not use a dummyScenenode
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Re: Create invisible IAnimatedMeshSceneNode
why not node->setVisibility(false) ?