Jump to content

Recommended Posts

Posted (edited)

You can see the animation test mod here and its assets here.

 

The Mana Pump and Coporea Crystal Cube from Botania both use the animation system. You can see the assets here.

 

Edit: There's also an explanation of the Animation State Machine format here.

Edit 2: Updated Botania links.

Edited by Choonster

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

thanks, for the informative response. This is really difficult to follow though.

 

I'm seeing four parts?

- The model class?

- the tile class?

- the animation manager json?

- the pump animation json?

 

 

@Choonster

Posted

thanks, for the informative response. This is really difficult to follow though.

 

I'm seeing four parts?

- The model class?

- the tile class?

- the animation manager json?

- the pump animation json?

 

 

@Choonster

 

For a JSON model, you need an Armatures file to specify the joints and clips for the model. For a B3D model, the joints and clips are specified in the model itself. It looks like OBJ models aren't supported by Forge's animation system.

 

You also need an Animation State Machine file to specify how the model should be animated.

 

For a block model, your

TileEntity

needs to provide

CapabilityAnimation.ANIMATION_CAPABILITY

and have an instance of

AnimationTESR

registered as its

TESR

. Your

Block

needs to have the

Properties.AnimationProperty

unlisted property and it can optionally have the

Properties.StaticProperty

property, which will be set to

false

when the model is being rendered by

AnimationTESR

.

 

For an entity model, your

Entity

needs to provide

CapabilityAnimation.ANIMATION_CAPABILITY

and use a

ModelBase

that renders the animated model (like

AnimationModelBase

).

 

For an item model, your

Item

needs to provide

CapabilityAnimation.ANIMATION_CAPABILITY

(from the provider returned by

Item#initCapabilities

).

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.