3d file reading
Blitz3D Forums/Blitz3D Beginners Area/3d file reading
| ||
Hi I'm trying to read 3d file formats and textures, but dont know how, please can you help me, i know i need to read the binary of the file but what then? Please reply. |
| ||
You want to load a model? Cause then you just need to call LoadMesh or LoadAnimMesh (see the command reference), then it will appear in your world at position 0,0,0 in the default size (if you can't see it you might need to scale it up) |
| ||
There are many diffrent formats for Models and Textures (which are Images). You might study the various Mesh Export sources in the code Archive. Maybe start with VRML (extension .WRL), thats pretty easy. Search the internet for File Format descriptions (eg "VRML Format description"). |
| ||
No, i dont think you understude me i'm trying to read game file formates like unreal model tome raider models and such, how do i do that with blitz? |
| ||
First of all, you can find a tremendous number of formats at http://www.wotsit.org/ As far as reading the formats, you just use blitz's filestream commands, and parse the files. You may have to use Banks to read some of the data, as well, depending on how it's stored. |
| ||
@ Goober: Either you don't, or you spend very long time desingning a load function. Unless you can convert the format to a format supported by Blitz. If they are open formats there might be a chance that somebody have written a converter that you can use. By the way, remember that those models are the property of others, you can't just use them. |
| ||
Milkshape can convert most game frmat meshes. |