Loading Models (Theory Question... Not Code)

Hey Guys,

I'm new to the whole 3D programming malarky, however one thing strikes me as peculiarly strange about jME… every time my application loads I am converting the obj models I use to jME models, using the ObjToJME() object. Why on earth would you want to do this EVERY time your application loads? Can I not write this output into a file, and then just use the jME format straight-off next time?

I'm sure there's a reasonable explanation for this…

Many Thanks!

Yes you can, instead of writing the data into a ByteArrayOutputStream in convert(), you write it into a FileOutputStream.

Right, you'd want to distribute the game with the binary format of the models.  You'd want to keep your other format files around though to generate new binary files, just in case.  (for example, if you planned to migrate from jme 1.0 to 2.0)