Jump to content

[1.7.10] Model Rendering Examples


yoshiquest

Recommended Posts

I'd like to get an idea of what people do in order to render models for my api. Unfortunately the sources out there aren't always the most accurate. Additionally, Techne Online doesn't seem to be working for me (on a mac, so can't use local version), so I can't get any models (pre-made or otherwise). As such, I'd like to get some examples of code for this subject. Both the code that Techne generates, and the way the code is implemented. I would also like to see the json version of the Techne file (it should be available in the export tab online now I think), so that I can see how I would implement a custom system to render that. So please post some examples here, or a link to some good examples I can use for test samples in my code.

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Link to comment
Share on other sites

Techne, a tool used for modeling items, blocks, and entities in 1.7.10 (only entities in 1.8), uses .tcn files. The part that we use is exported to Java code in a .txt file, and should be used as a reference to get all the boxes / rotations / translations / scale right upon construction of your model class (initializing your ModelRenderer instances). Take a look at any of the mobs in Minecraft's source code, those are perfect examples of the similar code that Techne exports. You may also want to reference the render classes for the models / entities.

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

Link to comment
Share on other sites

A small point, but worth mentioning: the output of Techne is not special - it's just standard model code/.JSON, i.e. a format that can be understood by Minecraft's rendering classes.

 

Besides, many modders (such as myself) will take whatever Techne outputs and completely change it (to clean it up and/or add parent:child relationships, for example), add animations, or any number of other things that one might also find in vanilla Minecraft models.

 

So... you literally have dozens of models at your fingertips already in the Minecraft code. What better test subjects than that?

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.