How to copy CLUMP in RenderWare

xiaoxiao2021-03-25  206

RPClumpClone can clone a model, but this clone will still quote the original Geometry, we have to do it now, Copy instead of clone, this is not related to the original clump.

If you want to copy a clump, the general thinking method is to write it on the disk, read it again, but the speed is slow, not suitable for real-time replication.

METHODT is to write clump to memory instead of disk. RWStream has three types, file, filename, memory. Open a Memory Stream, write it, read it, you can, of course, the speed is much more than the disk read and write, using the Memory Stream not to forget to release memory. I have passed a few days.

转载请注明原文地址:https://www.9cbs.com/read-130451.html

New Post(0)