Drawing a single wireframe cube

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
Guest

Drawing a single wireframe cube

Post by Guest »

Hi all,

I've tried several ways of drawing a single wireframed cube with little success (I desperately need this for the little space-travel engine I'm working on).

Of course, I tried a little TestSceneNode with the EMF_WIREFRAME flag set but that's not exactly what I need; the diagonals in the 6 faces are displayed, and that's exactly what I'm trying to get rid of.

I've tried a custom scene node which renders itself with multiple draw3DLine's but it doesn't work :(

Is there any way of drawing something like a 3d rectangle ?

Thanks already !

Nic
Guest

Post by Guest »

I tried something else :

I created a cube ms3d model and textured it so the 12 edges are shown without the diagonals. Unfortunately, from far away it gets very ugly (there's no anti-alias so it flickers badly)...
Ideally (what I look for) , the edge thickness of the cubes should be constant, whatever the distance.

Any idea how to do this ? :(
Guest

Post by Guest »

GOT IT !
Finally :D

Didn't know you could make "triangles" with just two vertices ... :oops:

Irrlicht RULEZ
Post Reply