USE D3D9 API create new mesh 65536 vectex crash!

Posted By: 20BN

USE D3D9 API create new mesh 65536 vectex crash! - 04/30/19 10:03

How to support more vectex with mdl7 file?
If any mdl's vectex exceed 65535, the game engine will crash.
My sandbox game merge some entity model to one model.
The 65535 / per model is very restricted.
Posted By: Superku

Re: USE D3D9 API create new mesh 65536 vectex crash! - 05/01/19 08:44

That's the limit, you cannot use more than 2^16 (limit of unsigned "short") per vertices per model.
You have to create several models instead, i.e. create your environment in chunks.
© 2024 lite-C Forums