Nodes not showing up

Discussion about everything. New games, 3d math, development tips...
Post Reply
Guest

Nodes not showing up

Post by Guest »

I have created 4 classes to manage irrlicht scene nodes, ie init, change, delete.
There is a class for a light, a billboard, a particle and an Animated Mesh.
I also have an item class that creates an object with all of these classes in it.

Code: Select all

class cItem
{
 public:
  scene::ISceneNode* node;

  cLight light ( params );
  cParticle particle ( params );
  cMesh mesh ( params );
  cBillboard bb ( params );

  cItem();
  ~cItem();
};
Now if i create any one of these classes individually, it shows up. However, if i create the item class, nothing shows up.

Anyone got any ideas as to why?
soconne
Posts: 87
Joined: Fri Mar 05, 2004 2:00 pm

Post by soconne »

When you create an instance of the class, it will not automatically add itself to the scene because you havn't added anything to the scene. Try creating an instance of the class, then calling one of those functions. Or did you already try that?
Guest

Post by Guest »

:roll: it was such a stupid problem.
when i was creating an item i used:
cItem testItem();
but to get it to work i had to use:
cItem testItem;

I dunno why this is? any one know?
Post Reply