Jump to content

Where's the rendering at? [Least documented thing in minecraft confirmed]


Delupara

Recommended Posts

Right I've been looking for this for a very long time now. Unfortunately all I'm seeing is outdated stuff.

 

Where can I learn more about rendering both Items, block and entities? everything from Getting textures using resourcelocation to getitemmodelmesher to even custom renders.

 

I seriously need some documentation if I want to do anything fancy. 

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Link to comment
Share on other sites

I don't think there is anything consistent/complete as of now.

 

Your best shot is to study those sources: https://github.com/MinecraftForge/MinecraftForge/tree/master/src/main/java/net/minecraftforge/client

 

Some of VertexBuffer and VertexFormat + some GL knowledge will be useful.

Client Events and IModel, IBakedModel formats and loaders.

On top of that .json loaders (they also allow e.g loading .obj models, basically again - custom model loaders).

 

I highly recommend actually reading THIS forum. Skim through about 10 pages back and you will find some threads on that. I collect all links for threads of interest so maybe some would help:

http://www.minecraftforge.net/forum/index.php/topic,37848.0.html

http://www.minecraftforge.net/forum/index.php/topic,37784.0.html

Even your thread: http://www.minecraftforge.net/forum/index.php/topic,39203.0.html

http://www.minecraftforge.net/forum/index.php/topic,35961.0.html

http://www.minecraftforge.net/forum/index.php/topic,36101.0.html

http://www.minecraftforge.net/forum/index.php/topic,36639.0.html

 

Just some of them + I have no clue what they contain, but you might be able to put something together or catch something interesting.

 

P.S You didn't tell version, note that there has been few changes in 1.8.9->1.9.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Okay I'm talking about basic rendering, not overly complicated versions of rendering.

 

You can't draw a masterpieces without knowing how to use a pencil!

 

Take for example a snippet of code

		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getRegistryName, "inventory"));

 

I know what minecraft#getMinecraft is but not Minecraft#getRenderItem nor RenderItem#getItemModelMesher and even less ItemModelMesher#register

 

These are super basic yet I don't understand any of it.

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Link to comment
Share on other sites

Its amazing what your IDE can do.

 

Try hovering over those methods and clicking on the tooltips.

 

step1.png

step2.png

step3.png

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

The line you posted is actually deprecated, use

ModelLoader.setCustomModelResourceLocation

instead, which you can think of as "hey game, please use this as the model for this item".

 

That's nice to know, thank's a lot!

 

Now I got to read said class, I'll be back in a bit xD

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Link to comment
Share on other sites

@FireController1847: You are making a wiki on something that you yourself cannot figure out? No offense, but this is not very convincing.

 

He's trying to set up an official wiki, it might not be convincing but with skilled in the arts of forge like you maybe it could become a real thing?

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Link to comment
Share on other sites

It may already exist, but that's only for the latest version. My wiki will be from 1.7.10 and on. Mine is different than yours; and I should be treated no different from a normal user on here. Just because I'm also making a wiki doesn't mean you all need to treat me like crap! Seriously, I do need help when I ask; I'm not doing it just to remove your wiki and made it go away. No, that's not what I am trying to do, I am trying to get my wiki as a PART of your wiki, but I can't because your wiki is only for the latest version. Hence, why I made my own wiki instead of using the old one.

 

Please, treat me like a normal person moderators. I could treat your wiki like an unofficial one, but I don't. I am a normal person with another wiki. You guys don't hate bedrockminer for making his wiki, so why hate on me for mine?

I am on my journey of making a remake of matmos, as explained 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.

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.