Aug 25, 2014

31. Binary j3o

The mesh file is a text file. The data has to be converted to binary before release, to run outside SDK.




You should right-click on the mesh.xml file and select the first option to convert to j3o binary.




This will create the mesh.j3o file inside the Textures, Pyramid folder. Move it to Models, Pyramid subfolder. This will get the project structure shown here.




To use the new file, we will have to change the load String.


// Load model
        Spatial pyramid = assetManager.loadModel(
                "Models/pyramid/pyramid.mesh.j3o");





No comments:

Post a Comment