Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007953opensim[REGION] OpenSim Corepublic2016-07-03 05:102016-07-03 07:57
Assigned To 
PlatformOperating SystemOperating System Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0007953: coarse location updates are broken on large regions
Descriptioncoarse location updates are broken on large regions
protocol only supports BYTE type for x,y and z.
(Z is sent scaled by 0.25 or zero if > 1024)
X and Y will need some workaround possible in agreement with viewer devs.
this causes wrong locations/distances in minimap or radar in same circumstances.
Steps To Reproduceuncheck parcel option "Avatars on other parcels can see.." with a avatar on that parcel and located at x and/or y larger than 256m. Watch minimap on other avatars.
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region) , Standalone (Multiple Regions)
Physics EngineBasicPhysics, ODE, BulletSim
Script Engine
Mono VersionNone
Attached Files

- Relationships

-  Notes
UbitUmarov (administrator)
2016-07-03 07:57

added test code for a possible solution:
Before conversion to BYTE, scale down position X and Y according to region side relative to normal size.
large regions will have lower resolution, but this should not matter much

float scale = thisAgentRegionSize / 256.0f
scale = 1.0f/scale;
position.X *= scale
position.Y *= scale;

viewers need to scale up ie:

float position = ??? get It from packet CoarseLocationUpdate bytes converted to floats;

float scale = thisAgentRegionSize / 256.0f
position.X *= scale
position.Y *= scale;

use it..

- Issue History
Date Modified Username Field Change
2016-07-03 05:10 UbitUmarov New Issue
2016-07-03 07:57 UbitUmarov Note Added: 0030854

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker