SoftPixel Forum

Official community of the SoftPixel Engine and the SoftPixel Sandbox (REGISTRATION only with consultation with the Admin)
It is currently Mon May 29, 2017 3:50 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Default Animation-FPS
PostPosted: Thu Dec 25, 2014 2:32 pm 
Offline

Joined: Tue Jan 07, 2014 6:38 pm
Posts: 90
Location: Germany
Hello Lukas.

Im now using playGroup, instead of iterating through an animation every frame myself.

My question is, if there is a default FPS-value for playing an animation, because it seems to be 60 fps:
When I make an animation with 120 frames and 60fps(i set the fps in an 3d-modelling software), then the animation plays 2 seconds like it should, but when I make an animation with 60 frames and 30fps it plays for one second. So it plays this animation with 60fps instead of 30fps.

When 60fps is the default value, then I will just use getPlayback()->setSpeed() or make animations with 60fps only.


Greetings.


Top
 Profile  
 
PostPosted: Thu Dec 25, 2014 5:34 pm 
Offline
Site Admin
User avatar

Joined: Sat Jul 07, 2012 5:58 pm
Posts: 540
Location: Germany
You can use "AnimationPlayback::setSpeed" to control the playback speed to use io::Timer::setGlobalSpeedMultiplier:
Code:
io::Timer::setGlobalSpeedEnable(true);
io::Timer::setGlobalSpeedMultiplier(2.0f);

Increasing the number of frames in your animations is not the best idea I think.

The "playGroup" function is actually meant to play a group of animation joints (or "bones") independently.
For example: animate the legs of a character with a different playback as the arms.

_________________
My latest project:
- The XièXiè Programming Language

My hardware:
- GIGABYTE GeForce GTX 670
- Intel Core i7 (Ivy-Bridge)
- 16 GB DDR3


Top
 Profile  
 
PostPosted: Thu Dec 25, 2014 8:18 pm 
Offline

Joined: Tue Jan 07, 2014 6:38 pm
Posts: 90
Location: Germany
Okay, thanks.
And yes, thats exactly why Im using playGroup, so I can play for example a reloading-animation for the arms and a walking-animation for legs at the same time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group