Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Calculate Temperature in second life

et0021 Jupiter
Registered User
Join date: 28 Sep 2009
Posts: 11
01-12-2010 01:33
Is it possible to find out the weather temperature in second life? Is there any tutorial or sample to learn from?
Kornscope Komachi
Transitional human
Join date: 30 Aug 2006
Posts: 1,041
01-12-2010 02:16
Haven't heard of such a thing and doubt there is any data on temperature. But like stepping outside in the real world and taking a look, the ground textures could give a clue.
If it's white, it must be cold.
_____________________
SCOPE Homes, Bangu
-----------------------------------------------------------------
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
01-12-2010 02:17
You can try:

float temp = llGetTemp(vector offset);

The result is in °L (Linden degrees).

No... That's a joke... :P

There's no temperature in SL. That's why you can safely walk on lava and sculpted snow
never melts, even on a sunny tropical beach.

You can try to file a Jira. (That is either ironic or sarcastic.) ;-)
_____________________
It's hard to tell gender from names around here but if you care, Kaluura = he. And I exist elsewhere than in SL but who cares? ;)
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
01-12-2010 02:38
Well, there is wind and clouds, and sun, why not temp? Maybe a Jira asking for it might get votes. While I can't personally think of any uses for it offhand, that doesn't mean there's not any. Maybe even add sim level rain and snow, and what's falling could be based on the temp. Who knows, but I wouldn't hold my breath for it. LL has so much stuff on their plate they're trying to get done, temperature would be so far down the list, you might see it round about 2050 or so.
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
01-12-2010 04:35
there is a barometer script in SL and this thread…

Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
01-12-2010 07:02
From: Dekka Raymaker
there is a barometer script in SL and this thread…


Yeah, but that thread's not about weather in SL. It's about bringing RL weather data in world. You could of course script a barometer that would have some meaning in SL, since atmospheric pressure is a function of elevation, among other things. It wouldn't tell you a blessed thing about SL weather, but it would be a simple educational demo to show students how pressure and elevation are related.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
01-12-2010 07:48
I see two interesting possibilities.

1. Use a heuristic based on the position of the sun and the wind speed.

2. Locate your sim by IP address to see which colo it's in and fetch the temperature at that location using a weather service website.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
01-12-2010 08:25
From: Kaluura Boa
You can try:

float temp = llGetTemp(vector offset);

The result is in °L (Linden degrees).

/me looks amused.
_____________________
Sick of sims locking up every time somebody TPs in? Vote for SVC-3895!!!
- Go here: https://jira.secondlife.com/browse/SVC-3895
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
et0021 Jupiter
Registered User
Join date: 28 Sep 2009
Posts: 11
02-03-2010 19:04
I found this is lslwiki...

http://www.lslwiki.net/lslwiki/wakka.php?wakka=LibraryThermometer

Can anybody advice me is it accurate? I try to fly as high as possible but the changes is only a bit.

And anybody know how this person get all the numbers?
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
02-03-2010 19:14
There is no temperature in SL, and llGetSunPosition is broken.

It's possible the figures are derived from genuine RL values for adiabatic lapse rates, but if the results you're getting don't suit your needs you might as well make some up yourself.

I undestand Cid Jacobs was a very knowledgeable SL user, so this probably isn't complete BS.

See the discussion page for a bit more detail.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
02-03-2010 19:27
llGetSunDirection is still with us, it's the viewer that doesn't follow things right any more :/ Take the whole thing lightly though, in SL the terrain textures decide more than anything how warm or cold it's supposed to be.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
02-03-2010 20:00
that script is a crude attempt to map global average ambient temperature to atmospheric density... neither of which exist in SL, but it's still amusing.... and it's vacuum level is miscalculated

ETA:
tho only things the viewer misses (when it set to sim time) are seasonal shifts in sun position... it's not so much of a huge loss consifering those shifts took 3 months to cycle, but it certainly destroys any calculation of something actually pointing at the sun.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
02-03-2010 20:52
From: Kornscope Komachi
Haven't heard of such a thing and doubt there is any data on temperature. But like stepping outside in the real world and taking a look, the ground textures could give a clue.
If it's white, it must be cold.


lmao, i like that answer, basically, the temp is whatever you want it to be, or what the sim owner/manager wants it to be
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
02-04-2010 03:55
From: Viktoria Dovgal
in SL the terrain textures decide more than anything how warm or cold it's supposed to be.
And the palm trees.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
02-04-2010 07:49
Hmmmm.. I haven't noticed feeling any colder without clothes in SL than I do if I'm wrapped up like a mummy. I wonder if I just haven't been paying attention. ;)
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at