Page 1 of 1

Support more model data!!

Posted: Thu Jul 07, 2016 4:06 am
by likewater
Irrlicht engine is small, and learning quick! but some function has limited out of date!!

Much Data need more vertex and the same time, the indices need bigger!
but most of loaders only support the u16 indices,
I modify some loader for use, everything is ok for load model,
but after other function need add, like collision, the problem is occur!
I store the indices is u32 type, but triangleselector is u16.

So, i want to know, when make all indices to u32 ?
may be only change IMeshBuffer to IDynamicMeshBuffer?
maybe the Irrlicht engine only for game now and in future!

Re: Support more model data!!

Posted: Thu Jul 07, 2016 9:00 am
by CuteAlien
The triangleselector got fixed in svn trunk last month: https://sourceforge.net/p/irrlicht/code/5304/
And yeah, some loaders should be switched to 32-bit, got discussed last day in the forum in another thread as well: http://irrlicht.sourceforge.net/forum/v ... =9&t=51441
Wouldn't be much work, but it's currently not on top of my todo.

We will _not_ make all indices to u32 - that has speed reasons. 16-bit meshbuffers are generally better for games as it's 2 times as fast to send them to the graphic-card. And usually you can split your mesh into more meshbuffers whenever you get into a problem with too large meshbuffers.

Re: Support more model data!!

Posted: Wed Aug 10, 2016 6:57 am
by likewater
Yes, I do like something that ways to solve my problem!

some code indicate this work for speed, and for game is enough