General Cube / Vertex issue

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
odenter
Posts: 48
Joined: Thu Oct 21, 2004 10:35 am
Location: Bremen (Germany)

General Cube / Vertex issue

Post by odenter »

I want a cube like this
http://www.mankind.net/screens_n_art/sc ... k17_03.jpg

First my Idea was th use addCubeSceneNode, change to wireframe.
1.) But how can I change the color of that lines?
2.) Can I than render inside this Cube?
3.) Or have I create a new SceneNode like CustomSceneNode-Tutorial?

If I had to make my own SceneNode, I looked at CCubeSceneNode, but I dont't understand what do to with vertices and indices.
The vertices are my edges, that's clear, but what are these indices?

4.) Or is there an other, better method to create such a cube?
strale
Posts: 119
Joined: Wed Nov 23, 2005 1:58 pm
Location: Lambrugo Italy
Contact:

Post by strale »

Hi


you could use several cubesenenode and change the porportion to obtain the
"rail road " then link them toghether to form the cube

it would just a good work of imagination to put all the shapes in the correct position and orientation.

-----------------------
OR


In dinamic mesh

Think to indices as the choosed vertex to form a triangle,
that is the atom of your shape...

so in your cube i would made some triangles linked toghether to make the "railroad"

that oriented in the correct way will for the cube shape

Cheers
Post Reply