[solved] Minimum needs to display Mesh (Writing FileLoader)

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.
L o
Posts: 44
Joined: Sun Mar 29, 2009 2:53 pm

Post by L o »

If I put a variable into the C...MeshFileLoader class, is that variable still existing after the mesh is loaded? I.e. is the whole MeshFileLoader class deleted after loading?
L o
Posts: 44
Joined: Sun Mar 29, 2009 2:53 pm

Post by L o »

Would it help if I would read the verts into one seperate meshbuffer and then make meshbuffers for each texture?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, the data still exists, you should clean everything after the load. The loader object is only destroyed at app end.
Putting each texture into a separate meshbuffer won't help with the crash, but is definitely the correct way to store meshes in Irrlicht.
L o
Posts: 44
Joined: Sun Mar 29, 2009 2:53 pm

Post by L o »

Ah thank you, I had some wrong indices, now it works!
Post Reply