Need help with .B3D file saving
Blitz3D Forums/Blitz3D Programming/Need help with .B3D file saving
| ||
I've got a save function that works perfectly for multisurface meshes - provided there's only one of the damn things! I want to save what is essentially an entire scene, keeping individual entities separate. How is this achieved? Also, how do you set up parent/child relationships within the file? I've heard you need a 'root node', but there is no info on creating one (should it have any/no mesh data or special tags or whatever). As 'NODES' are just listed one after the other, how would it be possible to have say : a torso an upper arm (parent = torso) a lower arm (parent=upper arm) a hand (parent=lower arm) You get the idea ;) PS the code in the archives doesn't deal with mutiple entities - only multiple surfaces. EDIT : Never mind - I figured it out. The format specs *could* be a little more helpful though [hint]. Its all down to how you nest chunks under the root node <- now there's a sentence you don't hear very often ;) |