Drawing 3d polygons ??

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
yoes_san
Posts: 9
Joined: Mon Dec 11, 2006 7:22 am

Drawing 3d polygons ??

Post by yoes_san »

I'm pretty new to graphical things so...

I have to make a program that let user create triangle, cube, tetragon, pentagon and so on, based on number of side that user inputted.

How to draw polygon using IrrLicht, is it possible to do ?
All shapes in tutorials are imported from outside so I really have no idea about this.

And currently the wiki is down so I'm at lost here.

Any suggestions?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

If you want to draw them as lines into space, there are some daw3D... functions like draw3DLine(...) and draw3DTriangle(...) (the docu should help you with this)....
Or if you want to create 3d objects you can create the meshes (scene nodes) "on the fly", this is covered in the tutorial #03.CustomSceneNode...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply