Jump to content

[1.12.2] Loading Models and Questions


Recommended Posts

As in Forge 1.12.2, I believed that they changed the way how models are being loaded by a little bit, however, I am still a bit confused about how models get loaded.


Suppose I have an IModel called "model", and I wanted to load it.

To do this, I would use the "bake" method, which accepts IModelState, VertexFormat, and Function<ResourceLocation, TextureAtlasSprite>. I have a couple of questions about this:


1) What is an IModelState? How would I use it to bake this model?


2) I am using Attributes.DEFAULT_BAKED_FORMAT for my VertaxFormat. Is this suitable for a model like OBJ?


3) What is Function<ResourceLocation,TextureAtlasSprite>? Suppose I have a ResourceLocation with an obj model, how would I use that here?

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.

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.


  • Create New...

Important Information

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