Getting the sim picture
|
|
Smithy Zeno
ownes 9 pet cacti
Join date: 3 Aug 2006
Posts: 52
|
03-24-2008 17:09
Hey everyone, I was wondering if it is possible to get the picture(texture) of the sim as it appears in the mini map and apply it to a prim via a script. Also, how do I make a sculpty of a sim? If someone could tell me how to go about both of my questions, that'd be great. Thanks.
-Smithy
_____________________
-Smithy
|
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
03-24-2008 17:18
Take a look at libsl - I have done what you ask but will not give the details here as it involves non SL programs, so is borderline hacking.
|
|
Smithy Zeno
ownes 9 pet cacti
Join date: 3 Aug 2006
Posts: 52
|
03-24-2008 17:26
But is there any way to get the sim's texture with a script?
_____________________
-Smithy
|
|
Jana Kamachi
Registered User
Join date: 19 Apr 2007
Posts: 111
|
03-24-2008 17:28
why do people keep IM'ing me about this >.> To get the sim minimap picture, where string name iis the name of the region you want: From: someone key http_request_id; string URL = "http://www.subnova.com/secondlife/api/map.php"; string SIM_NAME; integer iLine = 0; integer CHANNEL = 1000; string name = "Bug Island"; default { on_rez(integer n){ llResetScript(); } state_entry(){ vector temp; list temp_name; integer i=0; temp = llGetScale(); http_request_id = llHTTPRequest(URL + "?" + "sim" + "=", [], ""  ; iLine = 0; temp_name = llParseString2List(name,[],[" "]); for(i=0;i<llGetListLength(temp_name);i++){ if(llList2String(temp_name,i) == " "  { temp_name = llListReplaceList(temp_name,["_"],i,i); } } SIM_NAME = llDumpList2String(temp_name,""  ; http_request_id = llHTTPRequest(URL + "?" + "sim" + "=" + SIM_NAME, [], ""  ; llSetTimerEvent(5); } http_response(key request_id, integer status, list metadata, string body) { if (request_id == http_request_id) { llSetTexture(body, 0); } } }
_____________________
~Solar Alter~
|
|
Sebastian Saramago
Common Brilliance
Join date: 25 Sep 2005
Posts: 62
|
03-24-2008 17:35
From: Smithy Zeno But is there any way to get the sim's texture with a script? To get what yuou want I think you are looking for LandSculptor. www.nowherevirtual.com/landsculptor It makes a sculpty of the sim you are on, give you the texture and the file to edit the sim data in a program like blackhole. I have used it to make many maps for TP models.
_____________________
Your sole holds no discrimination for how it receives a laugh, a smile and the company of a Friend.
|
|
Smithy Zeno
ownes 9 pet cacti
Join date: 3 Aug 2006
Posts: 52
|
03-24-2008 17:38
Thanks a ton Jana, but is there a way to manually 'rip' the texture from the sim?
_____________________
-Smithy
|
|
Sebastian Saramago
Common Brilliance
Join date: 25 Sep 2005
Posts: 62
|
03-24-2008 17:41
nevermind.. landsculptor does the whole sim. It will work for sculpty.
_____________________
Your sole holds no discrimination for how it receives a laugh, a smile and the company of a Friend.
|
|
Jana Kamachi
Registered User
Join date: 19 Apr 2007
Posts: 111
|
03-24-2008 17:43
>.> The minimap display is rendered as-needed by the client....you can write a bit of export code to grab it in whatever resolution you desire...
_____________________
~Solar Alter~
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
03-24-2008 18:05
Thanks for the script Jana, I had always wondered how to do that.
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Jana Kamachi
Registered User
Join date: 19 Apr 2007
Posts: 111
|
03-24-2008 18:12
The scripts by me (I think xD It was near when I first came to SL), but you should thank the great people at subnova for their api.
_____________________
~Solar Alter~
|
|
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
|
03-24-2008 18:43
From: Very Keynes Take a look at libsl - I have done what you ask but will not give the details here as it involves non SL programs, so is borderline hacking. The client is open-source, so I'd hardly consider this hacking. No need to be so paranoid about this sort of thing, I'd say. Hacking in and of itself doesn't need to have such a negative connotation, especially if you're not doing evil things. I don't think posting a way to get a picture of the sim's map is on par with a security exploit. It's not like you're running around blowing up people's stuff or hax0ring their accounts.
|
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
03-25-2008 00:29
True, but I didn't have the code to extract the map in world, so I left that to someone who did. I actually did this with a bot to get the full terrain data and textures that I could apply in open sim to recreate a region on my home pc for testing. After getting our hands slapped for "Stealing" profile pictures, I didn’t think LL would be happy with me saying how to replicate an entire region.
|