Bah I know I’m posting a crazy amount of topics these days, so please bear with me.
My idea is, instead of using super complex loader that might and might not work, let’s create our specific format that could be used for a variety of things such as perpixel lighting, multi-texturing etc…
Here’s my idea
Header: xith3d = file header
Meshes: 2 = number of meshes
Mesh1: numberOfElements numberOfIndices numberoftextures
tex1Type 3 or 2
…
…
4bytes4bytes4bytes vertex components
4bytes4bytes4bytes normal components
4bytes4bytes4bytes tangent components
4bytes4bytes4bytes binromal components
4bytes4bytes(4bytes) texture 1 components
…
I already wrote a little parser for this format and it’s an extremely easy task, I also wrote an exporter 3ds -> .jcd (this format)
Thoughts?
make the model in 3ds- then open JCD texture .x3d editor to add all the other stuff- even shaders