Create invisible IAnimatedMeshSceneNode

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
ledgarl
Posts: 30
Joined: Wed Oct 25, 2006 1:58 pm
Location: Bogota,Colombia

Create invisible IAnimatedMeshSceneNode

Post by ledgarl »

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!
CuteAlien
Admin
Posts: 9718
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Create invisible IAnimatedMeshSceneNode

Post by CuteAlien »

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
vivekSivamRP
Posts: 66
Joined: Sat Sep 29, 2012 11:58 am

Re: Create invisible IAnimatedMeshSceneNode

Post by vivekSivamRP »

you can set shaders for the animated node and in fragment shader set its alpha value to 0.
ledgarl
Posts: 30
Joined: Wed Oct 25, 2006 1:58 pm
Location: Bogota,Colombia

Re: Create invisible IAnimatedMeshSceneNode

Post by ledgarl »

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
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Re: Create invisible IAnimatedMeshSceneNode

Post by sudi »

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.
lumirion
Posts: 79
Joined: Tue Sep 13, 2011 7:35 am

Re: Create invisible IAnimatedMeshSceneNode

Post by lumirion »

why not node->setVisibility(false) ?
Post Reply