Jump to content

Recommended Posts

Posted

I have a wavefront model loaded using a tileentityspecialrenderer and I would like to animate the texture. Is this even possible? I know that the tesr is rendering the model every second, so that means it is doing the same for the texture, right? I tried using a mcmeta with the texture like you'd animate a block, but it just garbles the texture, which I should have guessed would happen. Would I have to switch to a ISBRH instead, and can I even use an obj with that method?

Posted

Hi

 

You can certainly use a TESR to change the texture.  Your wavefront is rendered fresh every frame, you just need to reassign the texture before each call to the wavefront renderer.

 

this.bindTexture(myTextureForThisFrame);

 

Check out TileEntityBeaconRenderer for example.

 

Make sure you set up the textures for the different frames once and swap between them each frame, don't create a fresh one every frame or it will be unnecessarily slow..

 

-TGG

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.