Jump to content

Maccaronne

Members
  • Posts

    3
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Maccaronne's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. After five hours of trial and errors, now at least something is rendered! However, some faces of the model are missing, and the texture is missing. I wonder how I suppose to use 'Function<ResourceLocation, TextureAtlasSprite>' in IModel::bake? Where should the png file be? Some debug message from OBJLoader pops up when the model is loaded: The obj model is exported from 3dsmax. Here's how it's supposed to look like
  2. Hi there! I'm hosting a spigot 1.11 server, and I'm making a client mod which changes the model of entities with certain names. Since it is a client-side mod, I can't bind the model on a custom Item class like most tutorials. I've figured a way to load and bake the model, cache it, then render it in RenderLivingEvent.Pre event. Here's the result, a horse "disguised" as the model: The only problem here is, obviously, the model won't be loaded, everything else works like a charm. I have uploaded all relevant code and assets to a repository: https://github.com/SmilingTrickster/rendercloudmodel Here's where the model is loaded and cached: https://github.com/SmilingTrickster/rendercloudmodel/blob/master/java/com/mcorg/maccaronne/client/resources/model/ModelResource.java#L44 Here's the rendering code entry: https://github.com/SmilingTrickster/rendercloudmodel/blob/master/java/com/mcorg/maccaronne/client/equip/MountModelRenderer.java#L60 Any help is greatly appreciated
×
×
  • Create New...

Important Information

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