Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a demo with a custom .obj file #103

Open
321Proteus opened this issue Jun 14, 2023 · 0 comments
Open

Creating a demo with a custom .obj file #103

321Proteus opened this issue Jun 14, 2023 · 0 comments

Comments

@321Proteus
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant