OBJJSON Information - TridentMC/ArchitectureCraft GitHub Wiki

OBJSONModel

  • bounds is an array of doubles containing 6 values used to determine the bounding box of the model.
  • boxes is a 2D array containing collision boxes for the model, each entry is formatted the same way as bounds.
  • faces gets more complicated, each entry in the faces array contains data to create triangles on a given face.

Face

  • texture specifies the texture to use for the face, just says whether or not it uses cladding.
  • vertices specifies a list of vertices available to draw for the face, this includes the normals and uvs.
  • triangles specifies a list of indexes in vertices to use to create a triangle.