Duke4.net Forums: Simple model anmimation: Rotation - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Simple model anmimation: Rotation

User is offline   Mia Max 

#1

Hallo people

Is there a easy way to add an rotation animation to a model?
The model should rotate around a horizonatl axis.
I know how to make it in blender. But if I want to make the animation smooth, I'll have to make a lot of frames.
Like 72 frames if I want it to rotate it once around its own axis in 5 degree steps.
0

User is offline   Danukem 

  • Duke Plus Developer

#2

Is this a project where you can include CON code? If so, then you could just rotate the model with a few lines of code without adding any animation.
0

User is offline   Mia Max 

#3

Hallo Dan :P

Is there such a code in DukePlus? Or is there already a feature to do so in mapster?
0

User is offline   Mia Max 

#4

I've managed to make a 17 frame animation. But I won't be able to texture it because it rotates only by 18 degrees.

Attached thumbnail(s)

  • Attached Image: test.gif

0

User is offline   Danukem 

  • Duke Plus Developer

#5

View PostMia Max, on 19 August 2016 - 11:17 AM, said:

Hallo Dan :P

Is there such a code in DukePlus? Or is there already a feature to do so in mapster?


If you are adding the model as an actor to DukePlus, then I could easily add the code. It would look something like this:

useractor notenemy YOURTILENUMBER 0
geta[].ang angvar
add angvar 32
seta[].ang angvar
enda

0

User is offline   Mia Max 

#6

That would be great if you can make this. :P
Is it possible to give a model specific rotaion speed?
0

User is offline   Mark 

#7

If you look at the fan or the film reel in the HRP they have only about 15 and 20 frames for the entire 360 degree spin. It might look choppy in a modeling program but it looks smooth in Eduke. Even when slowed way down. I slowed the film reel anim to 1FPS and it runs smoothly with its 20 frames.

So if you decide to rotate in the model instead of con try 20 frames for the entire rotation.
0

User is offline   Mia Max 

#8

Thank you. I will try that.

Maybe it will work like this:
The first wheel has 16 cogs. So I make 16 frames for a full revolution.
The second wheel has 20 cogs. 20 frames for a full revolution.
If I give first and second wheel the same speed for animation, the gear transmission ratio should be correct then.

This post has been edited by Mia Max: 20 August 2016 - 12:03 AM

0

User is offline   Mark 

#9

deleted, I am rethinking my answer :P

This post has been edited by Mark.: 20 August 2016 - 08:46 AM

0

User is offline   Mia Max 

#10

It works :P

https://youtu.be/U0s5hvDE0X8

This post has been edited by Mia Max: 23 August 2016 - 09:38 AM

1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options