Mesh Data and .b3d format
Blitz3D Forums/Blitz3D Beginners Area/Mesh Data and .b3d format
| ||
Hi! I'm currently trying to create a small mesh editor and have two questions about meshes and b3d files: 1. Is there any option to re-create the primitives what added in the model editor (cubes, cones, etc...) 2. Is there any option to save other data together with the model data in a b3d file? |
| ||
If you're creating it in blitz,then CreateCube(), CreateSphere(), etc will create your primitives. Any unrecognised chunk should be ignored by B3D importers, so you could create a chunk called DATA and store whatever you want in it. |
| ||
Thanks. But you didn't understand what I mean with 1 (is it my bad english? :D (I'm living in Austria)). I want to read out the primitive type from Mesh data and then use CreateCube() etc. |
| ||
I *think* I understand you regarding primitives. but a B3D won't necessarily contain ANY primitives, if perchance it did, then you *could* read the primitive in as a mesh, get it's dimensions and then create the primitive. But if you're going so far as to read the mesh anyway, you may as well construct it as a new surface, thereby removing the problem of primitives altogether. see the b3d example for more information |
| ||
Ok, I think I'll creat an special format what contains Primitive date for loading in my mesh editor, and add an export function for .b3d files. |