Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007792opensim[REGION] Specific OpenSim Modulepublic2015-12-26 07:332015-12-29 07:10
Reporterkenvc 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformDual Xeon Quad Core CPUsOSWindowsOS VersionServer 2012
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0007792: On var region, Tree module puts all trees within a 256x256 area and ignores the fact that vars are much larger
DescriptionOn var region the tree module appears to be working in every way except one. It ignores the settings in the tree .xml file concerning the distance it can plant away from the planting point (<m_range>). The density setting appears to be working, and the planting point is working on a var, but trees do not grow any further from the planting point than about 128 meters.

There appears to be a hard coded limit in the tree module that limits the value set in the tree xml <m_range> value to be more that 128 no matter what you set it to. Solution: Eliminate or change this limit.
Steps To Reproduce1. The Oak-1.xml attached to this mantis is configured for a 1536x1536 meter var
2. Create a new 1536x1536 var region with no prims.
3. Edit opensim.ini and add this [Trees] section:
[Trees]
    ; Enable this to allow the tree module to manage your sim trees, including growing, reproducing and dying
    ; default is false
    active_trees = true
    ; Density of tree population
    tree_density = 100.0

4. Start the sim
5. Type "tree load oak-1.xml" at the console and then <enter>
6. Type "tree plant Oak" at the console and then <enter>
7. TP to the center of the var and you will see that all trees are properly planted at a point centered around the center of the var, but they are never located any further from that spot than about 128 meters, so the <m_range> value in the xml file is being ignored if it is over 128.
Additional InformationYou can TP to the center of "ubOde Islands" to see the results of this test.

ubOde physics engine was being used in my tests, but this issue seems to be related to the tree module and NOT to the specific physics engine that is being used.
TagsNo tags attached.
Git Revision or version number6427930a7ec93e54774fa56bc6d2f5f3edc8c664 (latest dev master)
Run Mode Grid (1 Region per Sim)
Physics EngineOther
Script Engine
Environment.NET / Windows64
Mono VersionNone
ViewerN/A
Attached Filesxml file icon oak-1.xml [^] (591 bytes) 2015-12-26 10:40

- Relationships

-  Notes
(0029891)
UbitUmarov (administrator)
2015-12-26 09:12

looking to code, a new tree is created at most 3x its parent X size ie 12m in example)
1000 trees assuming a even density and tendency to grow outside range would be 380. but parent can have 0.25 its max size, according to a random parameter, and distance is also random, guess the observed number is reasonable
Where relevant code already considerers large region sizes
(0029894)
samuel.greenway (reporter)
2015-12-29 07:10

I do like the tree module, and hope we are able to make it variable region compatible. If I were a programmer, I would offer patches.

Just attaching a reference link to this, as well.
I believe this is Aurora/WhiteCore's rewritten version.
I have not used Aurora in years, and do not know if this module worked, or if this reference is even useful. :)

See: https://github.com/WhiteCoreSim/WhiteCore-Dev/blob/master/WhiteCore/Modules/World/Vegetation/VegetationModule.cs [^]

- Issue History
Date Modified Username Field Change
2015-12-26 07:33 kenvc New Issue
2015-12-26 07:33 kenvc File Added: oak-1.xml
2015-12-26 07:34 kenvc Steps to Reproduce Updated View Revisions
2015-12-26 07:34 kenvc Steps to Reproduce Updated View Revisions
2015-12-26 07:37 kenvc Steps to Reproduce Updated View Revisions
2015-12-26 07:43 kenvc Description Updated View Revisions
2015-12-26 07:48 kenvc Additional Information Updated View Revisions
2015-12-26 07:50 kenvc Additional Information Updated View Revisions
2015-12-26 09:12 UbitUmarov Note Added: 0029891
2015-12-26 10:40 kenvc File Deleted: oak-1.xml
2015-12-26 10:40 kenvc File Added: oak-1.xml
2015-12-29 07:10 samuel.greenway Note Added: 0029894


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker