[Opensim-users] save/load xml region

Paul Fishwick fishwick at cise.ufl.edu
Tue Nov 4 16:58:58 UTC 2008


Matt; Thanks for these detailed instructions - I will use L3DT and 
follow the
online documentation.
-paul

matt raffel wrote:
> Paul
>
> PNG does not work for terrain load-tile functions.  It has to be a R32 
> or F32 file.    I wish I would have kept the email reply that I received 
> concerning that.    (you can use PNG for terrain load, but that works 
> for a single region only and you have to change-region before issuing 
> the command).
>
> I used L3DT to create my land and create the RAW file.   I believe it 
> can be used to create a RAW file from PNG.  Just remember to follow the 
> directions about exporting a raw from L3DT (i didn't follow them at 
> first duh!).    I did not create PNG files.  I used the generating 
> functions in L3DT to start my terrain.  I then used its 3D editor to 
> customize the terrain.   I also used the heightfield operation "change 
> vert. scale" to adjust the terrain.
>
> http://opensimulator.org/wiki/Using_L3DT
>
> Matt
>  
>
> Paul Fishwick wrote:
>   
>> Matt
>>  Hmm... here is what I get (I have a 512 x 512 PNG file):
>>
>> Region (root):
>> terrain load-tile terrain6.png 2 2 1000 1000
>>
>> [Console]: Command [terrain laod-tile terrain6.png 2 2 1000 1000] failed
>> with exception System.NotImplementedException.
>>
>> I am using the Windows binary from Nov. 1st
>>
>> -paul
>>
>>
>> matt raffel wrote:
>>   
>>     
>>> Paul
>>>
>>> I was just learning about this method myself.  Hope I got this right.
>>>
>>> When you use load-tile you have to be in root.   You specify the lower 
>>> left grid as the starting point in your command.  So in your map, 1000 
>>> 1000 is the bottom left region.   1001, 1000 and 1000, 1001 and 1001, 
>>> 1001 all get updated from the map since your map is 512x512.
>>>
>>> Matt
>>>
>>> Paul Fishwick wrote:
>>>   
>>>     
>>>       
>>>> Stefan
>>>>   This helps, and lead me to a related question. I had a problem
>>>> earlier loading a new terrain using:
>>>>
>>>>  terrain load-tile my512x512terrainmap.png 2 2 1000 1000
>>>>
>>>> and I think I was probably in "(root)" and not Metaphorz (which is
>>>> the lower left region of the 2x2 grid), where I should have been since the
>>>> 512x512 terrain load didn't work correctly. Should I be in the lower
>>>> left region to do this terrain command?
>>>> -paul
>>>>
>>>> Stefan Andersson wrote:
>>>>   
>>>>     
>>>>       
>>>>         
>>>>> Paul,
>>>>>  
>>>>> there is no 'root' region - 'root' means 'all regions' for the 
>>>>> commands that work on all loaded regions.
>>>>>  
>>>>> save-xml2 does not do that, so it simply picks the region that happens 
>>>>> to be first in the list. (Internally, it uses the CurrentOrFirst method)
>>>>>
>>>>> Best regards,
>>>>> Stefan Andersson
>>>>> Tribal Media AB
>>>>>  
>>>>> Join the 3d web revolution : http://tribalnet.se/
>>>>>  
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>     
>>>>>       
>>>>>         
>>>>>           
>>>>>> Date: Tue, 4 Nov 2008 10:16:13 -0500
>>>>>> From: fishwick at cise.ufl.edu
>>>>>> To: opensim-users at lists.berlios.de
>>>>>> Subject: Re: [Opensim-users] save/load xml region
>>>>>>
>>>>>> OK, this is interesting -- my "root" region is called "Metaphorz".
>>>>>>
>>>>>> I do this one successfully:
>>>>>>
>>>>>> change-region Metaphorz
>>>>>> "Currently selected region is Metaphorz"
>>>>>> save-xml2
>>>>>> "Saving prims in xml2 format for region Metaphorz to prim-backup.xml"
>>>>>>
>>>>>> But then:
>>>>>>
>>>>>> change-region root
>>>>>> "Currently selected region is root" (which I thought was Metaphorz)
>>>>>> save-xml2
>>>>>> "Saving prims in xml2 format for region Cheshire to prim-backup.xml"
>>>>>>
>>>>>> NOTE: Cheshire is another region in the 2x2 grid
>>>>>>
>>>>>> -p
>>>>>>
>>>>>> Justin Clark-Casey wrote:
>>>>>>       
>>>>>>         
>>>>>>           
>>>>>>             
>>>>>>> Paul Fishwick wrote:
>>>>>>>
>>>>>>>         
>>>>>>>           
>>>>>>>             
>>>>>>>               
>>>>>>>> I tried creating a megaprim on my 2x2 grid and while that worked
>>>>>>>> fine, there was an issue with the region. If I am in the root region
>>>>>>>> (i.e., in the OpenSim console window), I would think that
>>>>>>>> save-xml2 <xml file> would save prims from the root region. Instead,
>>>>>>>> it picked another region in the grid and saved those prims.
>>>>>>>>
>>>>>>>> The plan was to use
>>>>>>>>
>>>>>>>> change-region <region-name>
>>>>>>>> save-xml2
>>>>>>>>
>>>>>>>> but saves are done for one of my other regions that I did
>>>>>>>> not specify, and which is not the current one in the OpenSim
>>>>>>>> window.
>>>>>>>>
>>>>>>>> Am I misusing the load/save xml2 feature?
>>>>>>>>
>>>>>>>>           
>>>>>>>>             
>>>>>>>>               
>>>>>>>>                 
>>>>>>> What does change-region say when you change the region? The region 
>>>>>>>         
>>>>>>>           
>>>>>>>             
>>>>>>>               
>>>>> should start showing up in the command line, e.g.
>>>>>     
>>>>>       
>>>>>         
>>>>>           
>>>>>>> change-region Test2
>>>>>>> Currently selected region is Test2
>>>>>>> Region (Test2) # :
>>>>>>>
>>>>>>> did this happen?
>>>>>>>
>>>>>>>
>>>>>>>         
>>>>>>>           
>>>>>>>             
>>>>>>>               
>>>>>> --
>>>>>> Paul Fishwick, PhD
>>>>>> Professor and Director, Digital Arts and Sciences Programs
>>>>>> University of Florida
>>>>>> Computer & Information Science and Eng. Dept.
>>>>>> Bldg. CSE, Room 301
>>>>>> P.O. Box 116120
>>>>>> Gainesville, FL 32611
>>>>>> Email: fishwick at cise.ufl.edu
>>>>>> Phone: (352) 392-1414
>>>>>> Fax: (352) 392-1220
>>>>>> Web: http://www.cise.ufl.edu/~fishwick
>>>>>>
>>>>>> _______________________________________________
>>>>>> Opensim-users mailing list
>>>>>> Opensim-users at lists.berlios.de
>>>>>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>>>>>       
>>>>>>         
>>>>>>           
>>>>>>             
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Opensim-users mailing list
>>>>> Opensim-users at lists.berlios.de
>>>>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>>>>   
>>>>>     
>>>>>       
>>>>>         
>>>>>           
>>>>   
>>>>     
>>>>       
>>>>         
>>> _______________________________________________
>>> Opensim-users mailing list
>>> Opensim-users at lists.berlios.de
>>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>>
>>>   
>>>     
>>>       
>>   
>>     
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
>   


-- 
Paul Fishwick, PhD
Professor and Director, Digital Arts and Sciences Programs
University of Florida
Computer & Information Science and Eng. Dept.
Bldg. CSE, Room 301
P.O. Box 116120
Gainesville, FL 32611
Email: fishwick at cise.ufl.edu
Phone: (352) 392-1414
Fax: (352) 392-1220
Web: http://www.cise.ufl.edu/~fishwick




More information about the Opensim-users mailing list