Jump to content

Recommended Posts

Posted

Ok.  So I finally got my model rendering, using Techne and creating a model that way rather than trying to figure out every vertex and UV point with the addVertexWithUV method.  Since it is a circurlar object Techne seemed like the easier way to go (at least with my skill/knowledge level).

 

So, the question now is:  I know with the "pure code" approach using the Tessellator approach you can do some things like change lighting values and color without having to have a lot of textures.  Is there a way to do this when rendering with a model?

Posted

make a class file and make it compile. (fix all the errors and stuff)

Then use this to render the model in your Renderer:

        private ModelClassName modelVarName;
        private ResourceLocation textureXPPipe;

public RenderXPPipe() {
	this.textureXPPipe = new ResourceLocation("modname:textures/models/Texturename.png");
	this.modelvarName = new ModelClassName();
}

to register the model/texture

And this to render it:

this.modelVarName.render();

You might need to create a custom rendering method in your model:

public void render() {
        AnyModelPart.render(0.0625F);
}

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

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.