Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2021-10-19 09:17:17



Reply to topic  [ 6 posts ] 
Import linksets to opensim 0.7.4 does not set pos/rot/scale 
Author Message

Joined: 2012-09-08 19:30:14
Posts: 1
Reply with quote
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.


2012-09-08 19:55:15
Profile

Joined: 2009-03-17 18:42:51
Posts: 4751
Reply with quote
Well, this is definitely an OpenSim bug... I'll implement a work around in the next releases. Thanks for the head up !


2012-09-09 09:22:55
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 4751
Reply with quote
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.


2012-09-15 12:29:58
Profile WWW

Joined: 2009-03-18 09:32:02
Posts: 245
Reply with quote
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 105 times
2012-09-18 14:23:36
Profile YIM WWW

Joined: 2011-08-27 17:31:05
Posts: 98
Reply with quote
Maybe related to this?
http://sldev.free.fr/forum/viewtopic.php?f=4&t=921


2012-09-18 16:51:57
Profile

Joined: 2009-03-17 18:42:51
Posts: 4751
Reply with quote
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.


2012-09-18 19:03:35
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.