Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007015opensim[REGION] OpenSim Corepublic2014-02-18 17:052014-02-23 21:59
Assigned ToRobert Adams 
PlatformOperating SystemOperating System Version
Product Version 
Target VersionFixed in Version 
Summary0007015: [VARREGION] Teleporting between neighbors prims disappearing
DescriptionTeleporting between 2 or more varregion neighbors results in prims disappearing from the region you arrive in, prior to the teleport you can see all of the prims/objects in the neighbor sim just fine over the border, but after arrival they go missing, some may load but the majority do not, and also if I teleport back to the originating region I just came from the same thing occurs.
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script Engine
EnvironmentMono / Linux64
Mono Version3.2
ViewerSingularity Latest Releas
Attached Files

- Relationships
related to 0006980assignedRobert Adams VARREGION Cross boarder teleport and walk failures 
related to 0007025closedRobert Adams Extending the region's draw distance no longer works 

-  Notes
Robert Adams (administrator)
2014-02-19 09:17

As zadark mentioned in a comment on 6980, the problem does seem to be related to the scene not tracking draw distance correctly. Looking at the code, Scene.DefaultDrawDistance is initialized to 255 and is used used by ScenePresence and is never updated.

I will, at least, fix Scene.DefaultDrawDistance to be Max(RegionInfo.SizeX, RegionInfo.SizeY) and see how that tests out. In the long term, there needs to be an event for the viewer changing the draw distance that causes recomputation of child connections.
nebadon (administrator)
2014-02-21 12:53

This is fixed in master git but I am not sure if I should keep this mantis open because the fix is just a temporary one?
zadark (reporter)
2014-02-23 13:07

The temporary fix overrides OpenSimDefaults.ini setting: DefaultDrawDistance = 255.0 effecting users who extend this setting.

Interesting comment accompanies the setting:
Warning, unless
; all the regions have the same drawdistance, you will end up with strange
; effects because the agents that get closed may be inconsistent.

I am experimenting with scene.cs change that tests if DefaultDrawDistance is greater than Max(RegionInfo.SizeX, RegionInfo.SizeY), if so return DefaultDrawDistance.
Robert Adams (administrator)
2014-02-23 14:21

I was thinking that the current handling of draw distance needed some work. DefaultDrawDistance is a constant which is a 'default' that is used to compute neighbors for all viewers. What does that mean? Is it it current best draw distance? How does it relate to any draw distance set by any of the clients?

I'd like to understand what this variable is really causing to happen and to make the correct parameters for doing that. Is this for neighbor/child calculations? If so, it should be renamed to 'AssumedDistanceToNeighborRegion'. If we could use the different ScenePresence's actual draw distance into account should this variable be removed and use ScenePresence.DrawDistance (or whatever the variable is)?
Bruce (reporter)
2014-02-23 18:19

DefaultDrawDistace affects what you can see on the Mini Map in the viewer. It is not the same as Draw Distance that you can set in the viewer. If the Draw Distance in the viewer is set to 256m, one can still see the mini map tiles of 2 neighbours on each side (with DefaultDrawDistance = 511) but the grey transparent cone which shows my view distance is reduced to 256m.
nebadon (administrator)
2014-02-23 19:03

Maybe the default should be whatever the SizeX is set to in Regions.ini and if you set a higher # in OpenSim.ini it uses that, this should solve the problem.
Robert Adams (administrator)
2014-02-23 21:59

For the moment, I've done just that. The latest checkin sets Scene.DefaultDrawDistance to the max of the region size and the user setting.

- Issue History
Date Modified Username Field Change
2014-02-18 17:05 nebadon New Issue
2014-02-18 17:05 nebadon Status new => assigned
2014-02-18 17:05 nebadon Assigned To => Robert Adams
2014-02-18 17:21 zadark Relationship added related to 0006980
2014-02-19 09:17 Robert Adams Note Added: 0025230
2014-02-21 12:53 nebadon Note Added: 0025261
2014-02-23 13:07 zadark Note Added: 0025284
2014-02-23 14:21 Robert Adams Note Added: 0025285
2014-02-23 16:24 Robert Adams Relationship added related to 0007025
2014-02-23 18:19 Bruce Note Added: 0025288
2014-02-23 19:03 nebadon Note Added: 0025289
2014-02-23 21:59 Robert Adams Note Added: 0025290

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker