About Store Forum Documentation Contact



Post Reply 
FreeMat & DestrEnv
Author Message
Corrado Offline
Member

Post: #1
FreeMat & DestrEnv
Hello,

i have two questions:

1) Materials : i load with "Bool load (Char *name);" but i dont find the free/del function

2) What about : "destructable environments" in your features in development ?


Corrado
02-22-2009 10:11 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
Re: FreeMat & DestrEnv
1) The don't have to be deleted

2) It is for built-in handling of destructable environments (or at least tutorial), like chopping trees, destroying buildings, however you can simply do it by yourself for now, in the code, by attaching multiple actors together with breakable joints.
02-23-2009 12:15 PM
Find all posts by this user Quote this message in a reply
Corrado Offline
Member

Post: #3
Re: FreeMat & DestrEnv
Hello,

1) Material :
enter to one level and load some materials, then exit from the level and enter in another level : what about the memory used from the materials ?
For the mesh objects and the textures i used your function del(), but if i load materials they dont need to delete ? Maybe i have to delete all the textures
used in the materials ? or what ?

2) Destructable environments :
its possible to obtain from one mesh (from each object part) some submeshes (subpartes) ?

Tks
Corrado
02-23-2009 06:39 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
Re: FreeMat & DestrEnv
1) you don't have to delete anything in the material, they are cached automatically

2) could you explain more specifically what do you need?

Mesh is an array of MeshParts (which are Mshb+Mshr)

you can perform any custom operations on the parts/Mshb/Mshr you like
02-23-2009 10:41 PM
Find all posts by this user Quote this message in a reply
Post Reply