ent_terrainsave()

Posted By: Dark_samurai

ent_terrainsave() - 03/23/11 19:49

Hi,

the new function ent_terraincreate() is great! But I'm missing a function that stores a terrain into a .hmp file.
I would do it for my own, but I got stuck when it came to calculating the lightnormalindex out of the lightnormals table.

Example:
Code:
ENTITY* TerrainEnt = ent_terraincreate(NULL, nullvector, 100, 100, 20);
//Maybe some deforming, painting or adding a new skin
//Let's save changes:
ent_terrainsave(TerrainEnt, "NewTerrain1.hmp");



Or a function for calculating the lightnormalindex would also make the task a lot easier.

Thanks!
Posted By: Sajeth

Re: ent_terrainsave() - 03/23/11 19:55

ent_terrainsave would be the best feature since the implementation of lite-c.
Posted By: jcl

Re: ent_terrainsave() - 03/25/11 09:07

You can do that with the MDL SDK. It contains HMP save functions.
Posted By: Dark_samurai

Re: ent_terrainsave() - 03/26/11 12:26

Thanks for your answer!

This SDK is exactly what I need. I didn't knew that there exists something like that.
© 2024 lite-C Forums