There are a number of steps here for us to actually see our model being drawn and also animated. We'll go over them step by step. For this example, we'll use our gun model's file, which is in the FBX format.
We will take our FBX file into the fbx-conv
folder and convert it with the help of the following command:
D:\FBX-CONV>fbx-conv-[yourOS] -f -o G3DJ GUNMODEL.FBX
You should get to see something similar to what we have in the following image. We are using Windows, so we need to use win32.exe
.
Let's go into a bit of detail here: we will now call our application, flip the V texture coordinates (-f
), tell the app to convert it to the G3DJ file format (-o
), and then give our file name. The default conversion is to the G3DB file format, and it's almost the same format as G3DJ but with a few differences. G3DB is faster to load but binary. G3DJ, on the other hand, is slower but has a JSON format that you can open and read. This can come...