Loading Quad based Meshes into irrlicht

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
kbar
Posts: 9
Joined: Fri Sep 11, 2009 7:09 pm
Location: Darmstadt, Germany.
Contact:

Loading Quad based Meshes into irrlicht

Post by kbar »

I am writting an exporter for an application and am using irrlicht to do it. In my application I am converting from its data structures to the ones in irrlicht. I could not find a way to support quads in irrlicht, does it only support triangles?

The reason I am thinking it only supports triangles is since there is only a vertex array and an indices array. I could not find any class that has a face array.

Is there some buffer class that also has a face array so I can do something like the following.

FaceArray[] = {3,4,3,4,4,4,3,4,4,5,7,7,7,8,8}

Where the number represents the count of the indices to read out from the indices array for that polygon (ngon). So in this example I have triangles, quads as well as 5,7 and 8 sided ngons.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Mesh buffers can only use triangles, but you can draw other primitive types if you really want to. Most mesh formats support n-gons, but we triangulate in the loaders for simplicity.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply