Jump to content

How do you render an IModel? (How to Use Forge B3D Model Loader?)


HassanS6000

Recommended Posts

I'm not sure I understand what you mean exactly. I want to use a .obj or .b3d model for my entity and some items. How would registering my model and making a ModelResourceLocation make it render?

 

I've already loaded my model into an IModel, but I want that IModel to render now. How do I do that???

 

 

ModelBakeEvent requires the following parameters ModelManager, IRegistry and ModelLoader, and B3DLoader.instance doesn't work for a ModelLoader..

Link to comment
Share on other sites

I can't do what is done in RenderFallingBlock... it causes my game to crash because I can't pass in a block state... as I'm not rendering a block, rather an entity.

 

Here is my class:

 

http://pastebin.com/b8TNAVZf

 

What are ModelLoaderRegistry, and ICustomModelLoader. In this forum posting: http://www.minecraftforge.net/forum/index.php?topic=27505.0 it says the new ModelLoaderRegistry is a "replacement for IAdvancedModelLoader"

Link to comment
Share on other sites

You do not know how events work. Google it, there are plenty of tutorials.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

Judging by your last reply, you do not know how events work. You don't have to create new instances of an Event, but rather listen to the events posted by Forge/FML. Seriously, google it.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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.