Custom file loader for Irrlicht .NET

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
El_Quedro
Posts: 1
Joined: Tue Aug 15, 2006 2:07 pm

Custom file loader for Irrlicht .NET

Post by El_Quedro »

Hello everyone,

I am new at Irrlicht, but not totally new at 3D programming.
I wanted to load a custom model-file into Irrlicht, but I can't seem to handle it very well :(

The model data consists of vertex points for the model.
First, I used Triangle3D and the VideoDriver.Draw3DTriangle() function, what results into a Wireframe model (didn't managed it to set it to solid rendering :( )


Now I am storing al vertices in an Vertex3D[] array. Here is a example of the data i load and a description.

type colour x1 y1 z1 x2 y2 z2 x3 y3 z3 x4 y4 z4
4 16 1 1 1 1 1 -1 -1 1 -1 -1 1 1

and I want to use the VideoDriver.DrawIndexedTriangleList() function to render the data. But I don't understand the way to handle vertex buffer and the index buffer, can someone help me with this? Or is there a better way to solve my problem?

Thanks in advance.
Locked