Posted August 9, 20196 yr 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?
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.