[Opensim-dev] Fix for terrain editing spike problem

Mike Pitman pitman at us.ibm.com
Sun Sep 14 21:54:47 UTC 2008


Ai,

That might be because the 'duration' value varies widely for different
environments, in your case larger than values around 0.03 which I found in
my env.  If so, then we don't want duration to be determining the stepsize
of a terrain edit, and we should opt for a fixed value of the stepsize. The
factor I determined worked best with my setup was 0.15 * 0.03 = 0.0045.

Before submitting another patch it would be nice to confirm this is the
case.

If you could modify the file:
OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/RaiseSphere.cs

Plug in a value of 0.0045 for duration in the code around line 61:
                    if (z > 0.0)
                        map[x, y] += z * duration;

save, rebuild, and test in your environment. Play with different values to
get a feel for the response. I think we should find value that can be read
from the ini file for terrain edit step size which gives a reasonable
response across a variety of environments.

-Mike




                                                                           
             Ai Austin                                                     
             <ai.ai.austin at goo                                             
             glemail.com>                                               To 
             Sent by:                  opensim-dev at lists.berlios.de        
             opensim-dev-bounc                                          cc 
             es at lists.berlios.                                             
             de                                                    Subject 
                                       Re: [Opensim-dev] Fix for terrain   
                                       editing spike problem               
             09/14/2008 03:26                                              
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
             opensim-dev at lists                                             
                .berlios.de                                                
                                                                           
                                                                           




Mike. my "shot in the air 100m" problem was with "raise land" with
the area set "small" on just a single mouse click. Do you think that
will still be super sensitive after your fixes? Ai

_______________________________________________
Opensim-dev mailing list
Opensim-dev at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080914/8c2eddd9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080914/8c2eddd9/attachment-0003.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic18574.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080914/8c2eddd9/attachment-0004.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080914/8c2eddd9/attachment-0005.gif>


More information about the Opensim-dev mailing list