Cool VL Viewer forum
http://sldev.free.fr/forum/

Import linksets to opensim 0.7.4 does not set pos/rot/scale
http://sldev.free.fr/forum/viewtopic.php?f=4&t=921
Page 1 of 1

Author:  midala [ 2012-09-08 19:55:15 ]
Post subject:  Import linksets to opensim 0.7.4 does not set pos/rot/scale

Attempting to import a linkset via File->Import/Export->Import (same with Upload Textures + Import),
causes the opensim to log errors with text "[CLIENT]: MultipleObjUpdate recieved an unknown packet type: 15"
the actual result of the import is that the prims have correct texture and shape type, but position/rotation/scale params are lost leaving a bunch of overlapping cuboids.

Base version of viewer: Cool VL Viewer 1.26.5 (7)
Version of opensim: OpenSim 0.7.3.1 and 0.7.4

I have investigated both sides, and I think the root cause is opensim's LLClientView.cs not being able to handle properly the message generated by:

* indra/newview/llviewerobjectbackup.cpp:1128 LLSelectMgr::getInstance()->sendMultipleUpdate( UPD_SCALE | UPD_POSITION | UPD_ROTATION );

the message, after being processed by the selectMgr gets the additional flag UPD_LINKED_SETS;
UPD_SCALE | UPD_POSITION | UPD_ROTATION | UPD_LINKED_SETS = 15

The opensim code seems to handle just some flags combinations, but not others.
While I think the problem arises on opensim side, this workaround allows the opensim to execute nicely the import and should work with older versions of opensim deployed on the internet as well:

indra/newview/llviewerobjectbackup.cpp:1128 Cool VL Viewer 1.26.5 (7)
object->sendTEUpdate();
object->sendShapeUpdate();
- LLSelectMgr::getInstance()->sendMultipleUpdate(UPD_SCALE | UPD_POSITION |
- UPD_ROTATION);
+ LLSelectMgr::getInstance()->sendMultipleUpdate(UPD_SCALE );
+ LLSelectMgr::getInstance()->sendMultipleUpdate(UPD_POSITION | UPD_ROTATION);
LLSelectMgr::getInstance()->deselectAll();

The patch has been tested against both opensim and SL and I have observed no side effects, except for the presence of an extra message of course.
Hope this helps.

Author:  Henri Beauchamp [ 2012-09-09 09:22:55 ]
Post subject:  Re: Import linksets to opensim 0.7.4 does not set pos/rot/sc

Well, this is definitely an OpenSim bug... I'll implement a work around in the next releases. Thanks for the head up !

Author:  Henri Beauchamp [ 2012-09-15 12:29:58 ]
Post subject:  Re: Import linksets to opensim 0.7.4 does not set pos/rot/sc

Fixed (at the proper place, i.e. in llselectmgr.cpp) in today's releases.

The work around is only active when logged in on an OpenSim grid and you can toggle it on/off (it's on by default) with the OSMultipleUpdateBug debug setting.

Author:  Lance Corrimal [ 2012-09-18 14:23:36 ]
Post subject:  Bug with exporting / importing

I've found a nasty bug with im/export of linksets.. the rotations of child prims in relation to the root are 90° off. I can reproduce this with a simple linkset of two prims and the versions 1.26.4.19, 1.26.4.30, and 1.26.5.9 (those are all I have lying around) This happens when running cool vl viewer on 64bit linux.

I've attached a zipfile with exports of the same linkset done in 1.26.4.19, 1.26.4.30, and 1.26.5.9.

Attachments:
File comment: zip file with test linksets
testlinkset.zip [3.28 KiB]
Downloaded 154 times

Author:  Nicolette Lefevre [ 2012-09-18 16:51:57 ]
Post subject:  Re: Bug with exporting / importing

Maybe related to this?
http://sldev.free.fr/forum/viewtopic.php?f=4&t=921

Author:  Henri Beauchamp [ 2012-09-18 19:03:35 ]
Post subject:  Re: Bug with exporting / importing

Lance Corrimal wrote:
I've found a nasty bug with im/export of linksets.. the rotations of child prims in relation to the root are 90° off. I can reproduce this with a simple linkset of two prims and the versions 1.26.4.19, 1.26.4.30, and 1.26.5.9 (those are all I have lying around) This happens when running cool vl viewer on 64bit linux.

I've attached a zipfile with exports of the same linkset done in 1.26.4.19, 1.26.4.30, and 1.26.5.9.
Dang !... The MultipleUpdate bug is also apparently affecting SL, albeit in a slightly different way. OK, code fixed and the fix will be in the next releases.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/