Book Image

Building a 3D Game with LibGDX

Book Image

Building a 3D Game with LibGDX

Overview of this book

LibGDX is a hugely popular open source, cross-platform, Java-based game development framework built for the demands of cross-platform game development. This book will teach readers how the LibGDX framework uses its 3D rendering API with the OpenGL wrapper, in combination with Bullet Physics, 3D Particles, and Shaders to develop and deploy a game application to different platforms You will start off with the basic Intellij environment, workflow and set up a LibGDX project with necessary APIs for 3D development. You will then go through LibGDX’s 3D rendering API main features and talk about the camera used for 3D. Our next step is to put everything together to build a basic 3D game with Shapes, including basic gameplay mechanics and basic UI. Next you will go through modeling, rigging, and animation in Blender. We will then talk about refining mechanics, new input implementations, implementing enemy 3D models, mechanics, and gameplay balancing. The later part of this title will help you to manage secondary resources like audio, music and add 3D particles in the game to make the game more realistic. You will finally test and deploy the app on a multitude of different platforms, ready to start developing your own titles how you want!
Table of Contents (12 chapters)

Models usable and ready to deploy with LibGDX


We can import models in a few types of file such as Wavefront (OBJ), as we explained in the Exporting section of Chapter 4, Preparing Visuals, which is a basic kind of file type that may or may not contain everything we need for the final deployment. Furthermore, OBJLoader class may not contain everything you'd want for a model loader either.

We want either FBX or OBJ, and we want to convert them to one of the two types that LibGDX handles best: G3DB and G3DJ.

For this, LibGDX provides a converter made by (Alias) Xoppa, called Fbx-Conv.

Downloading Fbx-Conv

Go to https://libgdx.badlogicgames.com/tools.html and download Fbx-Conv from the Download hyperlink at the bottom of the app's box.

It will be a ZIP file, decompressed into a new and clean folder and easy to reach over the command line.

Command-line usage

You can take a look at it in the following repository, https://github.com/libgdx/fbx-conv:

Windows - fbx-conv-win32.exe [options] <input&gt...