Jump to content

JSON Model and triangles


tarig

Recommended Posts

Hey guys,

 

I am working on adding slopes into 1.8 and I want to challenge myself to use the new model system, to allow for easier swapping of shapes.

 

Problem is I can't find a way to load triangles using the built in json loaders. I know there is a way to override the loaders but I would rather not if possible and if not I have no idea how to start writing one.

 

TL;DR

How can I create json files with triangle faces?

 

Thanks

T

Link to comment
Share on other sites

Hi

 

The vanilla JSON can't generate triangles because there is no way to specify two of the four vertices to be the same.

 

I reckon your best bet is to use B3D.  BDcubik is apparently a useful tool for that, never used it myself.  Mr Crayfish does great stuff so maybe Lothrazar's idea is good too.

 

If you want to go the custom loader route, look at MBE04, MBE05, MBE15 here: (working examples)

https://github.com/TheGreyGhost/MinecraftByExample

 

-TGG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.