Displaying REAL-WORLD Weather in Unity (using REST APIs)

  Рет қаралды 94,223

PolyMars

PolyMars

Күн бұрын

Пікірлер: 207
@qui-gonjinn8048
@qui-gonjinn8048 4 жыл бұрын
"Using Unity's Particle System..." *Dani Intensifies*
@scattagain
@scattagain 4 жыл бұрын
I liked your comment with all my 15 accounts (IDK why I have them) and now you're at the top
@VortechBirb
@VortechBirb 4 жыл бұрын
@@scattagain liar there's 14 likes lol
@scattagain
@scattagain 4 жыл бұрын
@@VortechBirb youtube system lags sometimes, now its 15 but I think one is yours
@prizmatik8696
@prizmatik8696 4 жыл бұрын
@@scattagain nice can you sub to me on all 15
@KnightoftheSorryFace
@KnightoftheSorryFace 4 жыл бұрын
@@prizmatik8696...
@100secks2
@100secks2 4 жыл бұрын
making this in wallpaper engine would be dope
@mrdarip4289
@mrdarip4289 3 жыл бұрын
you can with lively wallpaper
@Solomonwo
@Solomonwo 2 жыл бұрын
No
@DaanHun
@DaanHun 2 жыл бұрын
No
@Strikery
@Strikery 2 жыл бұрын
Eh
@fampasicyalt
@fampasicyalt 2 жыл бұрын
Hmmmmm chain
@JadedThrone957
@JadedThrone957 2 жыл бұрын
I stumbled on your channel yesterday. I will never regret this.
@tyleranders9972
@tyleranders9972 5 жыл бұрын
Great video. Finally some different content from what everyone else is doing.
@PolyMars
@PolyMars 5 жыл бұрын
Thanks!
@breakfastboi3344
@breakfastboi3344 4 жыл бұрын
Can’t wait to convert unity into weather
@numero7mojeangering
@numero7mojeangering 4 жыл бұрын
@@breakfastboi3344 convert you computer chips into water then
@breakfastboi3344
@breakfastboi3344 4 жыл бұрын
Numero7 Mojeangering ok
@numero7mojeangering
@numero7mojeangering 4 жыл бұрын
@@breakfastboi3344 Wait no it was a joke
@dr.unventor
@dr.unventor 5 жыл бұрын
That’s so cool and useful
@PolyMars
@PolyMars 5 жыл бұрын
Thanks :)
@Franschisco
@Franschisco 3 жыл бұрын
I like the way you share the coding process really cool to see your thought process during these
@bapookie
@bapookie 4 жыл бұрын
waiting for raining weather Califrona Summer Players: Oh No
@lynnlo
@lynnlo 4 жыл бұрын
Arizoninans :
@trod146
@trod146 4 жыл бұрын
Oklahmoa
@squidno4902
@squidno4902 3 жыл бұрын
the Sahara desert players:
@lincolnsnewaccount41
@lincolnsnewaccount41 4 жыл бұрын
wait imagine if there was a survival platformer that used a real life day/night cycle and this. For example: Foggy: makes it impossible to see faraway things Rain: Makes it slippery Cloudy and Clear: N/A Snowy: Makes it slightly harder to move Thunder: Rainy but more deadly (Thunder kills you instantly unless more max health is added)
@marfromthestars
@marfromthestars 4 жыл бұрын
This is a cool idea
@lincolnsnewaccount41
@lincolnsnewaccount41 4 жыл бұрын
@@marfromthestars And i would use it... IF UNITY FUCKIN WORKED FOR ONCE.
@wenelol
@wenelol 4 жыл бұрын
@@lincolnsnewaccount41 I feel this.
@10secanimations51
@10secanimations51 4 жыл бұрын
@Ezequiel Ciamparella yep
@MetaCzech
@MetaCzech 4 жыл бұрын
@Ezequiel Ciamparella question of game design: you can be in-game in different location then in real life
@ZooperPlayz
@ZooperPlayz 4 жыл бұрын
Hey! This is really nice. Maybe add a few details to the character itself like if it’s rainy, he would open an umbrella. It it was sunny, probably sun bathing ;) or if it’s snowy make it so he’s wearing a sweater or a hoodie. That’s it! Nice vid as always!
@CamronJK
@CamronJK 4 жыл бұрын
I would love this in Animal Crossing
@junkeyz
@junkeyz 4 жыл бұрын
That's what I wanted to use this for, I was gonna make a 2D Animal Crossing game lol
@Jesse-um1pz
@Jesse-um1pz 4 жыл бұрын
@@junkeyz Great minds think alike, thats why im here haha
@junkeyz
@junkeyz 4 жыл бұрын
@@Jesse-um1pz Ha, nice!
@opal9583
@opal9583 3 жыл бұрын
@@junkeyz well, did you end up making it?
@opal9583
@opal9583 3 жыл бұрын
@@Jesse-um1pz did you end up making it?
@jamedev1801
@jamedev1801 4 жыл бұрын
Loved this video man! Inspired me to do the same thing but in under than 24 hours, but yours was definitely much better! Keep it up man
@lambbonesdev
@lambbonesdev 4 жыл бұрын
Good work dude! I used the darksky API for a school project, just made a little weather site
@Zynigma
@Zynigma 4 жыл бұрын
I love how quickly and efficiently you taught this. Subscribed
@colinkb4347
@colinkb4347 4 жыл бұрын
No dislikes! Good job!
@fleeb-f9u
@fleeb-f9u 3 жыл бұрын
Escape from Tarkov actually uses this concept. its also a unity game, and it uses the weather in Moscow to decide what the in game weather will be when players join a game. They also use it to change the price of in game bitcoins to give or take match the real world price aswell.
@damid4557
@damid4557 4 жыл бұрын
how are you a small youtuber??? this is great!
@ToaderTheToad
@ToaderTheToad 2 жыл бұрын
Fun fact: Animal Crossing City Folk was originally going to use a similar system, pulling data from the Forecast Channel, but they decided against it after they realized some players would get very samey weather, whether that be constant sunniness, constant snow, or even constant rain...honestly I'm surprised they didn't just go "Welp they can go visit their friends if they want different weather lol" but honestly I think an option for it would've been cool
@aneesh1283
@aneesh1283 4 жыл бұрын
Amazing "this idea can be used many games"
@mudokin
@mudokin 4 жыл бұрын
Thinking of futureproofing this, you could cut down on the requests by hosting your on server that buffers the requests, this obviously makes most sence if your game or app gets very big though ;). Also if your weather- or ipservice ever closes down you can easily switch to a different service.
@Cabalex
@Cabalex 4 жыл бұрын
Yup, because the Dark Sky API is going to be shut down by the end of 2021 :/
@kellymountain
@kellymountain 3 жыл бұрын
@@Cabalex RIP
@KnightoftheSorryFace
@KnightoftheSorryFace 4 жыл бұрын
Instructions unclear, accidentally made it send hitmen to player houses
@AmbarWasTaken
@AmbarWasTaken 4 жыл бұрын
Very usefull for the quarantine.
@hk5716
@hk5716 4 жыл бұрын
oh your that guy that makes videos by creating spaghetti code!
@PolyMars
@PolyMars 4 жыл бұрын
shhh
@Todomo
@Todomo 4 жыл бұрын
i wish animal crossing used real world weather. kinda sucks when it’s a super nice day out but in my game it’s all dark and dreary, or the other way around- but i do see how in some places that would suck because they would never get rain
@Kiralmao
@Kiralmao 3 жыл бұрын
they could do something like have a setting to turn it on and off to combat that
@QualifiedUmbrella
@QualifiedUmbrella 4 жыл бұрын
Pause on 1:36... Cloudy: snowy. Snow: clear-day. Sunny: cloudy. I figure you just mislabeled but thought it was funny
@BooleanCube
@BooleanCube 4 жыл бұрын
I just noticed that lol...
@nightfr09
@nightfr09 2 жыл бұрын
I was wanting to make a smart mirror in VRC that displays users weather, time, and temperature so this is great!
@Nicolonho
@Nicolonho 4 жыл бұрын
your content is simply amazing for me, even iam being brasilian and don't understanding many english coding terms.
@citrinesanimations
@citrinesanimations 5 жыл бұрын
niceee
@dnspoofed
@dnspoofed 4 жыл бұрын
people in egypt: *left the chat*
@iceyberq
@iceyberq 4 жыл бұрын
*Sandstorm intensifies*
@luxraider5384
@luxraider5384 4 жыл бұрын
Imagine enabling earthquakes, eclipses and haze in a actual game
@bandvitromaniaios1307
@bandvitromaniaios1307 4 жыл бұрын
@Ezequiel Ciamparella maybe me :)
@luxraider5384
@luxraider5384 4 жыл бұрын
@Ezequiel Ciamparella japan has about 1500 eathquakes a year. So they won t stop their life for a little earthquake
@phunweng962
@phunweng962 4 жыл бұрын
@@luxraider5384 We don't even know there's an earthquake when it comes.
@vedrane0
@vedrane0 4 жыл бұрын
REST APIs can do really cool stuff, great video!
@nathanbanji5015
@nathanbanji5015 2 жыл бұрын
2:20 if anyone sees this comment, if u ever plan on getting a client's ip for a project that you want to publish, make sure it is listed in your ToS that u r, there is some law behind it.
@BojanVasilev
@BojanVasilev 4 жыл бұрын
it says "replace this with your API key" how can i replace it?
@MasterGeorge090
@MasterGeorge090 4 жыл бұрын
Just register on the darksky website. After you sign up, it will give you the api key. Copy the api key and then go to Unity and paste the API key on the API key box on Unity.
@MasterGeorge090
@MasterGeorge090 4 жыл бұрын
​@ilikeminecraft6753 gaming The maximum amount of weather requests are 1000 requests per day.
@fen4flo
@fen4flo 3 жыл бұрын
YES,this helped me so much, i want to make a app where your pc is affected by weather
@mibbleyt
@mibbleyt 3 жыл бұрын
No.
@fen4flo
@fen4flo 3 жыл бұрын
@@mibbleyt bruh
@oscwavcommentaccount
@oscwavcommentaccount 4 жыл бұрын
4:11 That means you can request it every 1 minute 26 seconds.
@garrettrichards9028
@garrettrichards9028 4 жыл бұрын
MΛRTYNΛSPLΛYZ it would be more impressive if you showed your working out
@MrMutebe
@MrMutebe 4 жыл бұрын
But it's literally just 24 hours divided by 1000, then just convert to minutes and seconds 24 hours / 1000 = 0.024 hours = 1.44 minutes = 1 minute 26.4 seconds
@garrettrichards9028
@garrettrichards9028 4 жыл бұрын
@@MrMutebe But that's still more impressive than just saying the answer, even if it is still simple
@CreeperMan2254
@CreeperMan2254 4 жыл бұрын
Garrett Richards Are you a teacher or something
@ste.t
@ste.t 4 жыл бұрын
@@CreeperMan2254 lol
@falxie_
@falxie_ 4 жыл бұрын
I like your unique ideas
@eboatwright_
@eboatwright_ 4 жыл бұрын
how did you make that art in gimp?
@keanu_reeves
@keanu_reeves 4 жыл бұрын
Very interesting and cool Video! I really want to make something with the rest apis, but i cant find a webpage with a list of them. I saw, that you found a website or something (0:12), on which some apis are listed. So can you maybe post the link?
@thenewgameevolution5442
@thenewgameevolution5442 4 жыл бұрын
I might be hella late and you might have already found it, but the list is at github.com/public-apis/public-apis if you scroll down
@keanu_reeves
@keanu_reeves 4 жыл бұрын
@@thenewgameevolution5442 Thank you! And no I've not found the list before
@doqe
@doqe 4 жыл бұрын
also i think dark sky signups are disabled now.
@BaconStudio
@BaconStudio 4 жыл бұрын
Ikr. This has been my daily bruh moment :/
@gamerninjask6746
@gamerninjask6746 3 жыл бұрын
your videos are cool continue in your work
@lonelyPorterCH
@lonelyPorterCH 4 жыл бұрын
Rest APIs, yeah, we also had to use them once at university ^^
@what8586
@what8586 Жыл бұрын
love this i was looking to have real time and date and make day cycle with sunrise and sunset data not sure how to find api or sites though
@meatballman28
@meatballman28 3 жыл бұрын
It would be cool if whenever it was raining/drizzing, the character would hold an umbrella
@TheJas-vr2vr
@TheJas-vr2vr 4 жыл бұрын
Idea, take a random heightmap of somewhere on earth to use as terrain for a game.
@maketolaughyou6402
@maketolaughyou6402 4 жыл бұрын
Good video Keep it up
@PolyMars
@PolyMars 4 жыл бұрын
Thank you!
@farciarzfunny5326
@farciarzfunny5326 4 жыл бұрын
Btw the unity particle system is now a real thing
@farciarzfunny5326
@farciarzfunny5326 4 жыл бұрын
Thanks for the hearth i didnt expect that
@farciarzfunny5326
@farciarzfunny5326 4 жыл бұрын
9 likes wow
@eggiosus
@eggiosus 4 жыл бұрын
*hearth*
@focalpoint._
@focalpoint._ 4 жыл бұрын
Heareth thee, I have gained thy hearth from thy kings ruler!
@frosty7674
@frosty7674 3 жыл бұрын
Thinking about adding a Corona weather
@amanpandey3131
@amanpandey3131 2 жыл бұрын
Is it secure, typing the API Key in inspector if I have to share the game with others?
@user-co7do9nz9s
@user-co7do9nz9s 4 жыл бұрын
Good video, but can you give link to list of REST APIs wich you show at start?
@capp4198
@capp4198 3 жыл бұрын
Polymars testing this be like. Rain come here. Right now.
@Designguidetv
@Designguidetv 4 жыл бұрын
I really like this explanation, but I cant get it to work with openweathermap, mainly I think because the json has a lot more information about then next 48 hours, which id like to include.
@Designguidetv
@Designguidetv 4 жыл бұрын
i think its probably where to point inside that huge json file #beginner
@ounhy5359
@ounhy5359 4 жыл бұрын
this would be great for vr games
@brxtjn6660
@brxtjn6660 4 жыл бұрын
Im having trouble making it work :(
@umerfarooq8494
@umerfarooq8494 3 жыл бұрын
thanks for the video, it was helpful.
@mr.fakeman4718
@mr.fakeman4718 4 жыл бұрын
Omg this is awesome
@yunxiangchong226
@yunxiangchong226 3 жыл бұрын
Can you do a tutorial on how to get data from Google Fit in Unity?
@hitoshilxrd4518
@hitoshilxrd4518 4 жыл бұрын
which text editor/ide you use for C#?
@Vallee152
@Vallee152 4 жыл бұрын
does the guy get worried if there's a weather advisory?
@ErtBaran
@ErtBaran 4 жыл бұрын
Good idea 👍🏻
@GAMER_JOHNATHAN
@GAMER_JOHNATHAN 3 жыл бұрын
How about adding a new feature make the sky dark when it’s night time
@matteow7369
@matteow7369 3 жыл бұрын
Can you please update it? Dark sky will be discontinued next year and you can no longer get api keys
@MokarromHossain
@MokarromHossain 3 жыл бұрын
now this looks realistic...
@lovehansel
@lovehansel 4 жыл бұрын
Is the Dark Sky API detracted now that the app is down.
@noisehero4409
@noisehero4409 4 жыл бұрын
It's not really down, just the Android and Wear OS. But the API from what I can tell should be going down probably the end of 2021? Or I maybe just misinterpreted it
@doomjunyu_
@doomjunyu_ 4 жыл бұрын
Does it work for people using a vpn
@Pizza_kid_Dizzy
@Pizza_kid_Dizzy 4 жыл бұрын
Your new icon looks like it's from project arrhythmia
@m_ibrahim990
@m_ibrahim990 4 жыл бұрын
Darksky api is no longer accepting new signup requests :(
@monstercollectormsm2787
@monstercollectormsm2787 3 жыл бұрын
Now make a creepy text box appear that says "find shelter now" when the weather is tornado
@yoshikagekira812
@yoshikagekira812 3 жыл бұрын
:troll:
@plumper303
@plumper303 3 жыл бұрын
3:36 Just a little more complex... haha
@HugoMartinez-bj1xc
@HugoMartinez-bj1xc 4 жыл бұрын
do someone get any alternative solution, could someone share it ?
@haachamachama7
@haachamachama7 2 жыл бұрын
I really like the format and pacing of this video, but it's missing something that I've been looking everywhere for... I don't know why, but the API i'm using has a lot of the apis containing a "data" object, which holds a lot of the information... This wasn't so big of a deal with most data objects i made, I made a special class that handled ALL data classes with the help of someone called ApiResponse and it contains a generic object for "Data". Buut for some reason one API has a DATA inside the DATA... It goes like, Odds {Data{ Id, name, Market{data{odds{data" This is incredibly confusing lol, how am i supposed to handle all these datas?! I tried making separate classes, but it doesn't seem to be populating them...
@SheepyIsSleepy
@SheepyIsSleepy 3 жыл бұрын
you should make this into a custom desktop background
@ShortMiao
@ShortMiao 2 жыл бұрын
Yeah,even in Wallpaper Engine
@supersillystuffs
@supersillystuffs 4 жыл бұрын
Y'all ever heard of animal crossing?
@starleaf-luna
@starleaf-luna 4 жыл бұрын
ye why
@SuperJavaMan7
@SuperJavaMan7 3 жыл бұрын
OkMars
@totallygrape9971
@totallygrape9971 4 жыл бұрын
grown 2k subs in one week!
@jaydonoobinactive5983
@jaydonoobinactive5983 4 жыл бұрын
But theres no snow in jamaica :((
@TheEpicplushgod
@TheEpicplushgod 2 жыл бұрын
nice
@nova5259
@nova5259 4 жыл бұрын
Try to make a game with scratch
@jojoto147
@jojoto147 4 жыл бұрын
RIP Dark Sky API...
@bunkfoss50yearsago53
@bunkfoss50yearsago53 3 жыл бұрын
Wait he used Star Dew Valley as an example but I didn't know people still remembered that game.
@mohammedsaad3801
@mohammedsaad3801 3 жыл бұрын
Every one use the wethet for helping thier country PolyMars: lets make a game
@CoolModderJaydonX
@CoolModderJaydonX Жыл бұрын
I just noticed that the player looks like a character from "Super Paper Mario." Heh.
@Megagon10k
@Megagon10k 4 жыл бұрын
@PolyMars I am sure you probably know this by now but there is an easier way to get a users IpAddress :-)
@youtissoum
@youtissoum 3 жыл бұрын
it isn't possible to use it anymore
@luxraider5384
@luxraider5384 4 жыл бұрын
Oh fck it s raining!!!! Lets plant smth!!!
@Dorbellprod
@Dorbellprod 3 жыл бұрын
Hi Pocket Mars
@lucavoros8073
@lucavoros8073 3 жыл бұрын
I really hope that these aren't the categories 1:35
@ShadowEmpyrian
@ShadowEmpyrian 10 ай бұрын
So.. you're saying i can add the ISS to my game & have it relate to the actual location of the ISS.. great
@johnsrj
@johnsrj 3 жыл бұрын
Dark Sky no longer accepts new signups, that's a bummer
@boldey
@boldey 3 жыл бұрын
Dark sky is shut down :c
@flightsimguy3897
@flightsimguy3897 2 жыл бұрын
cant create a acount
@landenew
@landenew 4 жыл бұрын
im in arizona. so the weather would never change 😭😭
@Cookie_Wookie_7
@Cookie_Wookie_7 4 жыл бұрын
rip dark sky
@rajeevjawaji4472
@rajeevjawaji4472 4 жыл бұрын
you could have just used ip-api.com/json/{ipaddress}?fields=status,lat,lon to only get the status, lat and long so you don't have to parse that much data
@DrewCoop30
@DrewCoop30 4 жыл бұрын
Hi
@marfromthestars
@marfromthestars 4 жыл бұрын
Hello
@DrewCoop30
@DrewCoop30 4 жыл бұрын
Ok buddy
@sheez-5486
@sheez-5486 4 жыл бұрын
waiting for rainy weather me who stays in International Space Station: Oh no
@noxious_nights
@noxious_nights 4 жыл бұрын
They need to add something like this to animal crossing pocket camp!!
@roz9318
@roz9318 4 жыл бұрын
Rip Dark Sky
@Nekomusu
@Nekomusu 4 жыл бұрын
This in Minecraft.
@marfromthestars
@marfromthestars 4 жыл бұрын
YES
@xtema4931
@xtema4931 4 жыл бұрын
implanting this system in games like stardew valley would be stupid, I live in brazil specifically in the driest region. in addition to not snowing it would not rain, it would leave the game in a giant sameness.
@teu009
@teu009 4 жыл бұрын
im glad that farming games dont work like that, cuz if they did, it would be impossible to play them on arizona
@leastexpected3115
@leastexpected3115 4 жыл бұрын
you can also use opensource project github .com/chubin/wttr.in for weather api, it's absolutely free
@fightmaster-xu6zw
@fightmaster-xu6zw 3 жыл бұрын
he was brave making this video he could have doxed himself many many times
I Made a Game Illegally
7:48
PolyMars
Рет қаралды 1,1 МЛН
I Made Snake With 30,000 Players
7:28
PolyMars
Рет қаралды 554 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
How to Use RESTful APIs In Unity [Unity Tutorial]
10:23
Comp-3 Interactive
Рет қаралды 47 М.
How To Build An Event System in Unity
8:01
Game Dev Guide
Рет қаралды 417 М.
Why you should use code to animate your UI in Unity.
5:02
Game Dev Guide
Рет қаралды 335 М.
How to do REST API Get Requests in Unity - JSON/Unity Web Request Tutorial
15:26
Is Roblox Stealing Millions From Young Developers?
7:51
PolyMars
Рет қаралды 798 М.
I Learned 3D Game Development
11:28
PolyMars
Рет қаралды 313 М.
My Worst Game Dev Job
6:11
PolyMars
Рет қаралды 1,2 МЛН
REWIND TIME in Unity
14:16
Brackeys
Рет қаралды 336 М.
I Made a Game for Amazon Alexa
9:51
PolyMars
Рет қаралды 506 М.
TOUCH CONTROLS in Unity!
16:09
Brackeys
Рет қаралды 1,3 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН