Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008130opensim[REGION] Physics Enginespublic2017-02-16 00:002017-05-27 14:48
Reportermaurizio55 
Assigned ToUbitUmarov 
PriorityhighSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformanyOSubuntuOS Version14.4
Product Version0.9.0 
Target VersionFixed in Version 
Summary0008130: llSetKeyframedMotion not working anymore in 0.9.0
Descriptionin OS 0.9.0 llSetKeyframedMotion doesn't work as expected. At each step the movement stops for a second instead of moving smoothly to the next frame.
In 0.8.2.1 the movement is smooth as expected.
Steps To ReproducePlease try putting following script in a cube. In the 0.8.2.1 movement is very smooth, in 0.9.0 movement is scattered. At least on my system. I can provide video if needed. Note: problem is just with translation, not rotation. ODE or Bulletsim, same thing.

integer status;
list kf = [<0.0, 1.0, 0.0>, 2.0, <0.0, 1.0, 0.0>, 2.0, <0.0, 1.0, 0.0>, 2.0];

default
{
    state_entry()
    {
        llSetPrimitiveParams([PRIM_PHYSICS_SHAPE_TYPE, PRIM_PHYSICS_SHAPE_CONVEX]);
    }
    
    touch_start(integer num)
    {
        llSetKeyframedMotion( [], []);
        if(status)
            llSetKeyframedMotion(kf, [KFM_DATA, KFM_TRANSLATION, KFM_MODE, KFM_FORWARD]);
        else
            llSetKeyframedMotion(kf, [KFM_DATA, KFM_TRANSLATION, KFM_MODE, KFM_REVERSE]);
        status = !status;
    }
}
TagsNo tags attached.
Git Revision or version number
Run Mode Standalone (Multiple Regions)
Physics EngineODE, BulletSim
EnvironmentMono / Linux32
Mono Version3.2
Viewerfirestorm
Attached Files

- Relationships

-  Notes
(0031614)
kcozens (administrator)
2017-02-25 17:46

Can you attach a script that demonstrates the problem? I have used keyframe animation with 64 steps to make a rideable Ferris Wheel. The movement of the gondolas is very smooth.
(0031615)
watcher64 (reporter)
2017-02-25 21:22

Notice it says you are running mono 2.1 if that is correct that could be part of the issue ... That is ancient ...
(0031642)
maurizio55 (reporter)
2017-03-19 22:54

Script is pretty basic, that's not a problem for sure. Yeah, the old mono version can definitely be the problem. I will upgrade to 3.2 after upgrading ubuntu to v14 and will test it again. Thanks for the suggestion.
(0031643)
maurizio55 (reporter)
2017-03-20 01:37

No, same thing. with engine 0.9.0 rc2 the movement is not smooth. if the time between 2 keyframes is one second, movement takes place in 0.5 seconds, then pause for 0.5 seconds.
mono v.3.2
(0031648)
maurizio55 (reporter)
2017-03-20 14:06

Please try putting following script in a cube. In the 0.8.2.1 movement is very smooth, in 0.9.0 movement is scattered. At least on my system. I can provide video if needed. Note: problem is just with translation, not rotation. ODE or Bulletsim, same thing.

integer status;
list kf = [<0.0, 1.0, 0.0>, 2.0, <0.0, 1.0, 0.0>, 2.0, <0.0, 1.0, 0.0>, 2.0];

default
{
    state_entry()
    {
        llSetPrimitiveParams([PRIM_PHYSICS_SHAPE_TYPE, PRIM_PHYSICS_SHAPE_CONVEX]);
    }
    
    touch_start(integer num)
    {
        llSetKeyframedMotion( [], []);
        if(status)
            llSetKeyframedMotion(kf, [KFM_DATA, KFM_TRANSLATION, KFM_MODE, KFM_FORWARD]);
        else
            llSetKeyframedMotion(kf, [KFM_DATA, KFM_TRANSLATION, KFM_MODE, KFM_REVERSE]);
        status = !status;
    }
}
(0031649)
watcher64 (reporter)
2017-03-20 14:47

Ok yep very strange, I have other KFM things that don't pause like this , but this script does .... I am very confused ..

And there appears to be nothing wrong with the script ..


So I'll say I can confirm this is an issue and a strange one ..

(now if we can just get some attention from the apparently absent "powers that be")
(0031650)
maurizio55 (reporter)
2017-03-20 14:59

Is there is a way to get some attention it would be great!
(0031651)
maurizio55 (reporter)
2017-03-20 15:14

checked the script on kitely, the movement is smooth there, but maybe the sim isn't still running 0.8.X
(0031653)
kcozens (administrator)
2017-03-22 11:49

In a region running git master the behaviour is a little odd. When I touch the prim to start the movement it moves a very small amount at first. I didn't measure it but it is about the space between two of the grid lines when you grab the translation handles (about .125m or .25m ). It then does the three moves listed in the Keyframe data smoothly with a slight pause after each step. It does the exact same thing when touched again to do the motion in reverse.
(0031654)
watcher64 (reporter)
2017-03-22 11:51
edited on: 2017-03-22 11:52

kcozens, you are seeing exactly what we are seeing ... There should be no pause between the motions (well none to speak of).

I did notice the little jump at the start as well .

I have tested this on several .9 builds, currently using the HEAD commit ...

I have not gone back very far but see it in all "recent" builds.

(0031656)
Ferd Frederix (reporter)
2017-03-22 14:02

Can confirm this is affecting my flock of birds in 0.9 dev master, but it works fin in 0.8.2.1. They all stop between translations.
(0031658)
maurizio55 (reporter)
2017-03-24 09:09

Is anybody going to take care of this bug, introduced with v 0.9.0?
It's not a minor one, you can replicate it with a simple two step translation. Maybe just a miscalculation of speed?
(0031703)
UbitUmarov (administrator)
2017-04-04 04:43

should be a bit better now, on master
but it does depend even more on viewers interpolation of linear motion
(0031728)
maurizio55 (reporter)
2017-04-06 18:17
edited on: 2017-04-07 12:57

Tried. It works, now!! thanks for the fix.


- Issue History
Date Modified Username Field Change
2017-02-16 00:00 maurizio55 New Issue
2017-02-25 17:06 maurizio55 Summary llSetKeyframedMotion pausing between frames => llSetKeyframedMotion not working anymore in 0.9.0
2017-02-25 17:46 kcozens Note Added: 0031614
2017-02-25 21:22 watcher64 Note Added: 0031615
2017-03-19 22:54 maurizio55 Note Added: 0031642
2017-03-20 01:37 maurizio55 Note Added: 0031643
2017-03-20 14:06 maurizio55 Note Added: 0031648
2017-03-20 14:09 maurizio55 Environment Mono / Linux32, Mono / Linux64 => Mono / Linux32
2017-03-20 14:09 maurizio55 Mono Version 2.10 => 3.2
2017-03-20 14:09 maurizio55 Priority normal => high
2017-03-20 14:09 maurizio55 Steps to Reproduce Updated View Revisions
2017-03-20 14:47 watcher64 Note Added: 0031649
2017-03-20 14:59 maurizio55 Note Added: 0031650
2017-03-20 15:14 maurizio55 Note Added: 0031651
2017-03-21 22:27 maurizio55 Category [REGION] Scripting Engine => [REGION] Physics Engines
2017-03-21 22:27 maurizio55 OS Version => 14.4
2017-03-22 11:49 kcozens Note Added: 0031653
2017-03-22 11:51 watcher64 Note Added: 0031654
2017-03-22 11:52 watcher64 Note Edited: 0031654 View Revisions
2017-03-22 14:02 Ferd Frederix Note Added: 0031656
2017-03-24 09:09 maurizio55 Note Added: 0031658
2017-04-04 04:43 UbitUmarov Note Added: 0031703
2017-04-06 18:15 maurizio55 Note Added: 0031727
2017-04-06 18:16 maurizio55 Note Deleted: 0031727
2017-04-06 18:17 maurizio55 Note Added: 0031728
2017-04-07 10:03 maurizio55 Note Edited: 0031728 View Revisions
2017-04-07 12:57 maurizio55 Note Edited: 0031728 View Revisions
2017-05-27 14:48 UbitUmarov Status new => resolved
2017-05-27 14:48 UbitUmarov Resolution open => fixed
2017-05-27 14:48 UbitUmarov Assigned To => UbitUmarov


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker