Support more model data!!

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
likewater
Posts: 4
Joined: Tue Apr 19, 2016 7:52 am

Support more model data!!

Post 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!
CuteAlien
Admin
Posts: 9728
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Support more model data!!

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
likewater
Posts: 4
Joined: Tue Apr 19, 2016 7:52 am

Re: Support more model data!!

Post 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
Post Reply