Time for action – sorting your stuff out

When you start coding, you may want to load sample models to test a scene or interaction. Since your own artwork is most likely not ready yet, you typically use free models or mock-ups. Now it's time to decide on a directory structure for your assets:

  1. Create subdirectories under assets/Textures/. Keep original models, their textures, and materials together!
  2. Create parallel subdirectories for .j3o models under assets/Models/.

For example, in a racing game, you would prepare the following for your car models:

  • assets/Textures/Vehicles/Cars/ for ferrari.obj and porsche.obj—including material and textures
  • assets/Models/Vehicles/Cars/ for ferrari.j3o and porsche.j3o

Or in a shooter, you would prepare the following ...

Get jMonkeyEngine 3.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.