Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007853opensim[REGION] Physics Enginespublic2016-03-22 00:032016-06-24 00:45
ReporterKayaker Magic 
Assigned To 
PlatformLinux/Mono OSOpenSim Dev OSgrid w/ubODEOS Version0.9.0.0
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0007853: ubODE fails when “sculpt animation” is used.
DescriptionSculpt animation is frowned upon in the LL Wiki and other places. But all the alternatives have limitations or are not available. So there is still a lot of content that uses this trick to animate objects: Use llSetLinkPrimitiveParamsFast to change the sculpt texture map of a prim to change its shape. When content using this method is introduced to a region using BulletSim, everything continues to work. HOWEVER, if content using this method is introduced to a region running ubODE, performance of the region soon degrades. Avatars get stuck and cannot move. Physical objects eventually stop falling.
Steps To ReproduceMake sure your region is running ubODE. Put the 6 included leg sculpts in the inventory of a prim. Then put a copy of the following script in the same prim. Make 16 copies of the resulting animated leg. If you are running ubODE, your physics engine will be brought to its knees. If you delete all the animated legs, performance sometimes recovers after a while.
Additional Informationinteger leg=0;
        llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_SIZE,<2.5, 1, 3> ]);
        leg = (leg+1)%6;
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineOther
Script Engine
EnvironmentMono / Linux64
Mono Version3.0
Attached Fileszip file icon [^] (15,301 bytes) 2016-03-22 00:03

- Relationships

-  Notes
vegaslon (reporter)
2016-03-22 09:38

Have you tried turning off sculpt visual shape meshing in opensim.ini? That may improve performance.
UbitUmarov (administrator)
2016-06-24 00:45

I tested this and on my test region ubOde did not fail, just takes a more time that bullet. Making them physical just took a bit more time, (they will jump all over due to the abrupt change of shape, causing deep prim overlaps)
didn't notice performance degradation with time
On a slower machine or one with higher load this may impact other objects or avatar movement, if not crash. Things may get worse with time due to accumulation of work requests.
if you change prim shape type to convex, it will be a bit faster.

Changing a prim shape is a heavy operation on ubOde, but even on bullet you should not do it.
Make the legs phantom or if linked set shape type to NONE.

- Issue History
Date Modified Username Field Change
2016-03-22 00:03 Kayaker Magic New Issue
2016-03-22 00:03 Kayaker Magic File Added:
2016-03-22 09:38 vegaslon Note Added: 0030091
2016-06-24 00:45 UbitUmarov Note Added: 0030729

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker