logo icon indicating copy to clipboard operation
logo copied to clipboard

Creating a demo with a custom .obj file

Open 321Proteus opened this issue 2 years ago • 0 comments

I recently tried to compile this project with my own OBJ and MTL files. I want to make a Minecraft head that looks at the cursor. I made the model using Blockbench. When I ran the "convert" function, I got a JSON file. It looks like that:

{
  "positions": [
    [0.25, 0.5625, 0.25],
    [0.25, 0.5625, -0.25],
    [0.25, 0.0625, 0.25],
    [0.25, 0.0625, -0.25],
    [-0.25, 0.5625, -0.25],
    [-0.25, 0.5625, 0.25],
    [-0.25, 0.0625, -0.25],
    [-0.25, 0.0625, 0.25]
  ],
  "chunks": [
    {
      "color": [119, 57, 0],
      "faces": [
        [3, 6, 4],
        [2, 3, 1],
        [7, 2, 0],
        [6, 7, 5],
        [5, 0, 1],
        [6, 3, 2]
      ]
    }
  ]
}

It seemed kinda suspicious to me, as the built-in fox model is way bigger... I built a "normal" demo, but no model displays on the page. What should I do? I'm not very familiar with the rendering system, but I'm sure that the fault lies with Blockbench or the conversion library (all the paths and filenames are correct, I've checked that already).

321Proteus avatar Jun 14 '23 15:06 321Proteus