Jump to content

How would you get your Blender model in game as a Mob?


Recommended Posts

Posted

I have several Blender models which I wish to make into mobs, What are the requirements to code in the .obj files so they appear in game as mobs? I know how to do it using techne models (this is easy) but i am stumped by how to take a Blender model and code it in game. Are there tutorials for this?

Posted

Ya the whole no animations support thing for .obj seems to be an issue. I wonder if there is a way around it. I think the developer of Pixelmon has found a way to do it but other than that I dont think many people have.

Posted

Same way as you would for any other model from .obj files.

 

@SideOnly(Side.CLIENT)
public class ModelFromOBJ extends ModelBase
{
    private IModelCustom modelObj;
     
    public ModelFromOBJ ()
    {
        modelObj = AdvancedModelLoader.loadModel(new ResourceLocation("/assets/my_mod_id/models/tutBox.obj"));
    }
}

If you guys dont get it.. then well ya.. try harder...

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.