Coding Adventure: Atmosphere

  Рет қаралды 1,100,562

Sebastian Lague

Sebastian Lague

Күн бұрын

The planets in my solar system project are looking a bit hostile and uninviting, so in this video I'll be attempting to add some cozy atmospheres around them.
Watch the previous solar system video: here: • Coding Adventure: Proc...
Some notes:
• I made a little build where you can play with the atmosphere settings yourself, which you can find over here if you're interested: sebastian.itch.io/atmosphere-...
• A number of knowledgeable people have pointed out in the comments that reality is not nearly as simple as my little diagram around the 4 and a half minute mark, and that light does not literally wiggle up and down like a wave, so please note that the diagram is incorrect!
• This project was inspired by the game Outer Wilds, which I highly recommend playing!
Project Files:
The project is available over here: github.com/SebLague/Solar-System
If you'd like to get early access to future project files (and support the channel!) you can find my Patreon page here: / sebastianlague
Resources:
developer.nvidia.com/gpugems/...
nishitalab.org/user/nis/cdrom/...
physics.stackexchange.com/que...
en.wikipedia.org/wiki/Scattering
Music:
"Brief Respite" by Antti Luode
"When Rain Comes" by Tide Electric
"Door to Door Disco" by Bright Seed
"Reflections of Space and Time" by AEROPLANES
"In the Atmosphere" by Bad Snacks
"Reflections" by MK2
"Nidra in the Sky with Ayla" by Jesse Gallagher
"Far Away" by Antti Luode
"Frontier" by Shimmer
Sections:
00:00 Intro
00:32 Setup
02:46 Resources
03:25 Light Scattering
06:15 Coding the Shader
11:55 Initial Results
13:10 Adding Colour
15:20 Colourful Results
16:40 Optimisation
17:39 Stars
18:50 Exploration

Пікірлер: 3 300
@Blazecove
@Blazecove 3 жыл бұрын
When he accidentally makes the best lesson on why the sky is blue.
@ms-fk6eb
@ms-fk6eb 3 жыл бұрын
yeah, and I'd never have thought about why the sky turns red when the sun is low
@thequantumnexus4270
@thequantumnexus4270 3 жыл бұрын
Ha - was thinking the same thing.
@feha92
@feha92 3 жыл бұрын
iirc there is a part about how oxygen actually "looks more blue than violet" too, but I think he summarized things in a quick and good way that clearly passed the message that "there are several reasons that contribute to the same effect" (not to mention that iirc it was also debated whether what I mentioned was to such a small extent it could be considered *entirely negligible* in terms of the sky's color)
@CodingJedi
@CodingJedi 3 жыл бұрын
Sebastian’s videos are more tutorialish than one with “tutorial” term in titles!
@filgas0892
@filgas0892 3 жыл бұрын
I think I will show this to my scienze teacher 😂
@Templarfreak
@Templarfreak 2 жыл бұрын
"i have long since lost any faith in the code i write ..." "my favorite programming trick: calling a function that doesn't exist and worrying about it later" "that sped things up immensely, with the minor tradeoff of completely ruining everything." these feel like personal attacks
@DigitalJedi
@DigitalJedi 2 жыл бұрын
I know right. I didn't need to be called out like this but here we are.
@metaparalysis3441
@metaparalysis3441 2 жыл бұрын
@@DigitalJedi This is calling out every programmer since the dawn of time
@TinyDeskEngineer
@TinyDeskEngineer 2 жыл бұрын
They are broad personal attacks against programmers
@theguythatcodes8991
@theguythatcodes8991 Жыл бұрын
i do the second thing alot
@kevinwu8797
@kevinwu8797 Жыл бұрын
I use Godot and whenever I try to do the second the program freaks out and highlights the entire line bright red for me to see.
@jabarinevills8307
@jabarinevills8307 3 жыл бұрын
Plot twist: this guy is god and he is just uploading dev logs for the universe.
@_Killkor
@_Killkor 3 жыл бұрын
He's creating a new universe _He's bored with our Universe. Oh no..._
@DoorknobPlus
@DoorknobPlus 3 жыл бұрын
@Mega why is that so true
@jesterram7146
@jesterram7146 3 жыл бұрын
@killkor he's aking this one for the "galactic society" expansion cause the one we have right now is boring
@leonardomotameirafilho6215
@leonardomotameirafilho6215 3 жыл бұрын
@@_Killkor That would explain the events that happened in 2020
@Ro_Gaming
@Ro_Gaming 3 жыл бұрын
Have you downloaded the new update? The atmosphere is now green!
@dotTxtFile
@dotTxtFile 3 жыл бұрын
everybody gangsta until he makes no man's sky 2
@_Killkor
@_Killkor 3 жыл бұрын
He already destroyed Spore's planet generation in the previous episode, so No Man's Sky is for sure next on the list.
@GerardofRivia
@GerardofRivia 3 жыл бұрын
More like Outer Wilds 2
@wrillwastaken
@wrillwastaken 3 жыл бұрын
No this is way more like outer wilds than NMS.
@Wylie288
@Wylie288 3 жыл бұрын
@@_Killkor Ha. No one is going to touch NMS planet generation for a long time. Everyone's height map performance barely runs better than NMS having not only more points of data in the same FOV. But also voxelates the entire surface. All while running almost as well as even the best competitors. That is seriously impressive optimization. NMS is easily the best optimized game of this decade. It should not run anywhere near as well as it does with that kind of real time terrain generation. All while having graphical affects on par with anything else out that isn't ray traced. And it runs on consoles AND VR quite flawlessly? My very modest 1060 keeps it solidly within max reprojection fps better than any other game I can't run at the full 80 on my rift. Hahaha, no ones going to get close for a long while.
@burrdid
@burrdid 3 жыл бұрын
orginal no mans sky was bad
@AllTheFishAreDead
@AllTheFishAreDead 3 жыл бұрын
"That sped things up immensely, with the minor trade off of completely ruining everything." Coding4lyf my dude.
@johnhirsh6168
@johnhirsh6168 3 жыл бұрын
"Its actually quite simple" *proceeds to begin speaking mandorin*
@jerry_mandarin
@jerry_mandarin 3 жыл бұрын
mandolin?
@TinyDeskEngineer
@TinyDeskEngineer 3 жыл бұрын
@@jerry_mandarin mango
@secularph8424
@secularph8424 3 жыл бұрын
Maggie
@para3668
@para3668 3 жыл бұрын
i think its mandarin
@astronichols1900
@astronichols1900 3 жыл бұрын
Let me put it in a language you can understand 11:12
@SebastianLague
@SebastianLague 3 жыл бұрын
Hey everyone, hope you enjoy this little video about atmospheres! KZbin's compression was not so kind on the results (they came out a bit blocky and bandy) so I've put together a little demo build where you can play with some of the settings yourself and see the results. It's available here if you're interested: sebastian.itch.io/atmosphere-experiment Some notes: A number of knowledgeable people have pointed out in the comments that reality is not as simple as my little diagram around 4:35, and that light does not literally wiggle up and down like a wave, so please note that my diagram is incorrect! The project files from this episode are currently in early access for patrons of the channel, so if you'd like to experiment with those (and support my work in the process) you can download them here: www.patreon.com/posts/project-files-40730130 There is a public repository for this on-going Solar System project over here: github.com/SebLague/Solar-System, which currently includes the gravity simulation and procedural planets from the previous two episodes, and the atmospheres will be added to it on September 15
@mariocamspam72
@mariocamspam72 3 жыл бұрын
Yes
@user-nj1qc7uc9c
@user-nj1qc7uc9c 3 жыл бұрын
youtube: video was uploaded 4 minutes ago also youtube: comment was posted f i f t y m i n u t e s a g o
@aldrichcoetzee9102
@aldrichcoetzee9102 3 жыл бұрын
Have been looking forward to another video!
@numero7mojeangering
@numero7mojeangering 3 жыл бұрын
Yes this is awesome! Love it!
@anonymoususer6251
@anonymoususer6251 3 жыл бұрын
I would love to see how collisions with other planetary and asteroid bodies act.
@Amagys
@Amagys 3 жыл бұрын
Your ability to visualize and present concepts of all kinds is actually one of your strongest points. The editing and visual elements combined with music infused with your personal touch (hand drawing explanations) is a real highlight to everything. Regardless of topic, I'm sure you could make it interesting. I just happen to love your coding adventures.
@celicablues
@celicablues 3 жыл бұрын
This makes me feel like I'll never be an even decent hobby programmer.
@TinyDeskEngineer
@TinyDeskEngineer 3 жыл бұрын
The best I can do is make a barely functional pointless Python program every few years
@LordxGx07
@LordxGx07 3 жыл бұрын
Just start with a simple map, something achievable with your skills. You can start with the course "procedural map generation" with Brackeys. Then increment your project, still with something doable, etc. Each time you'll add something, you'll get better, and so will be your project. And one day... your virtual world may become something wonderful :)
@leandrolopez7660
@leandrolopez7660 3 жыл бұрын
@@LordxGx07 this makes me remember how nice the internet can be sometimes thank u internet stranger, im inspired now:)
@Hyperlooper
@Hyperlooper 3 жыл бұрын
I don't think most programmers could do this without some research
@swiftydrifty2726
@swiftydrifty2726 2 жыл бұрын
I can normally grasp a basic concept of how some code works, what this code is doing is beyond me.
@gganderson7722
@gganderson7722 2 жыл бұрын
Me, who never coded a single code, the entire video: "Yea, I guess that makes sense".
@teobellverwhite3562
@teobellverwhite3562 2 жыл бұрын
try it! it's not that hard if you had a guide
@electronx5594
@electronx5594 2 жыл бұрын
Did you start? :P
@teobellverwhite3562
@teobellverwhite3562 2 жыл бұрын
@@electronx5594 he should
@mealsome7793
@mealsome7793 2 жыл бұрын
@@teobellverwhite3562 what do you recommend?
@teobellverwhite3562
@teobellverwhite3562 2 жыл бұрын
@@mealsome7793 i recomend python for begginers
@ScorpioHR
@ScorpioHR 3 жыл бұрын
Now I know how my dog felt when I tried to explain spreadsheets to him. Hey, he was really eager to find out why we couldn't play together that instance
@pinkajou656
@pinkajou656 2 жыл бұрын
That’s fantastic.
@KC-bu8qq
@KC-bu8qq 2 жыл бұрын
why were you trying to teach your dog spreadsheets lmao
@ScorpioHR
@ScorpioHR 2 жыл бұрын
@@KC-bu8qq He had to know what was so much more fun than playing with him.
@enelition5322
@enelition5322 3 жыл бұрын
This has to be one of the highest quality channels on youtube. All the videos are educational, inspiring, really engaging and shows a thought process of tackling nearly any problem. Absolutely love this content.
@TheThirdPrice
@TheThirdPrice 3 жыл бұрын
"my favorite programming trick: calling a function that doesn't exist and worrying about it later" You're my hero dude lmfao
@SS2Dante
@SS2Dante 3 жыл бұрын
I was gonna say, that's actually a pretty useful way to make sure your functions are all nicely decomposed rather than trying to cram everything in, train-of-thought style.
@TheThirdPrice
@TheThirdPrice 3 жыл бұрын
SS2Dante oh for sure, I do the same thing
@Trezker
@Trezker 3 жыл бұрын
I tend to do the opposite. Write a function, forget to call it and wonder why it's not working.
@AHSEN.
@AHSEN. 3 жыл бұрын
@@Trezker lol me too
@overloader7900
@overloader7900 3 жыл бұрын
@@Trezker There are two kinds of people
@anopenbook2525
@anopenbook2525 3 жыл бұрын
I can't wait until he eventually adds every single coding adventure into this one project. Simulating ecosystems, boids in the form of procedurally generated fish, procedurally generated animals, caves, ray tracing reflections, hydrolic erosion. The whole works. He's just gonna simulate the world at this point
@dj-murlock
@dj-murlock 2 жыл бұрын
With that setup he could also be able to simulate death of his PC
@endermannull4420
@endermannull4420 Жыл бұрын
how he gonna fit chess in there
@cuddlybubbles69
@cuddlybubbles69 Жыл бұрын
@@endermannull4420 a feature of the game just add a chess board
@user-dh8oi2mk4f
@user-dh8oi2mk4f Жыл бұрын
@@endermannull4420 the game is free, provided that you beat his chess AI
@ananttiwari1337
@ananttiwari1337 Жыл бұрын
@@endermannull4420 a minigame within the spacecraft perhaps
@kipchickensout
@kipchickensout Жыл бұрын
This is the fourth time I've remembered this video and looked it up again just to watch it again
@petterlarsson7257
@petterlarsson7257 Жыл бұрын
13th for me
@IronMessenger
@IronMessenger 3 жыл бұрын
If I was half as smart as you... I would currently feel half as dumb. That was not only an amazing tutorial, fun experiment but also shows just how good you are at math and programming and research apparently! Great video... Makes me really appreciate all these great games we have today.
@jyothish5194
@jyothish5194 2 жыл бұрын
He is not smarter than you. How can you say that if you haven't even tried to make a game? Go Download Unity Google "how to make earth in Unity" Google "how to add lightning in Unity" And after making a game make a tutorial like this and post on YT
@flex9663
@flex9663 2 жыл бұрын
@@jyothish5194 you think its that simple ? ok web developer
@ShatabdaRoy115
@ShatabdaRoy115 2 жыл бұрын
@@flex9663 chil chil! All game devs know de pain. Some people has pain tolerance higher, and some people don't soo yeah!
@pixelpunchyt
@pixelpunchyt 3 жыл бұрын
this legit makes me want to jump back into game development
@hristolilov5040
@hristolilov5040 2 жыл бұрын
This legit made me install unity again. Thanks i guess...
@MoldySpace
@MoldySpace 2 жыл бұрын
After spending 4 years to get my astronomy degree, I feel vindicated to hear optical depth used properly for cool reasons, and when you decided to normalize your unit system to 1 for simplicity I nearly cried
@Teddy0567
@Teddy0567 Жыл бұрын
same! god I wish I normalized my simulation of the surface of the star, I spent too much time checking the numbers with a calculator.
@bloosea123
@bloosea123 3 жыл бұрын
And God said, "calculateLight(N, N, N)", and there was light.
@jupi6851
@jupi6851 3 жыл бұрын
best comment ever.
@fluffyflamingo
@fluffyflamingo 3 жыл бұрын
Bro xD... Yes!
@ArcheoLumiere
@ArcheoLumiere 3 жыл бұрын
And it was good
@PlasmaNode
@PlasmaNode 3 жыл бұрын
Love this
@warny1978
@warny1978 3 жыл бұрын
@@ArcheoLumiere But not at first try !
@konstantintonkov1464
@konstantintonkov1464 3 жыл бұрын
I rewatch the videos from this series every month, because of how satisfying they are. I'm looking so much forward for you to continue this series.
@crypticsavage0456
@crypticsavage0456 2 жыл бұрын
The fact that he can make these things make sense is astounding
@nomtijorti
@nomtijorti 3 жыл бұрын
Whenever someone makes some asinine comment like "you don't need math to be a successful programmer". I just refer them to your videos.
@emeraldursa55
@emeraldursa55 2 жыл бұрын
The more I watch your series on making this solar system, the more I appreciate what Maxxis went through creating SPORE. That might be mostly because Spore doesn't look too far off from what you've made thus far, though with today's tech and such you'd likely be able to make something that looks a bit better. In any case, loved the video.
@yourladbrennen3130
@yourladbrennen3130 3 жыл бұрын
Me: tries to run anything that actually looks this good My Computer: Do you want to explode?
@CallMeTess
@CallMeTess 3 жыл бұрын
"that sped things up immensely, with the minor trade-off of completely ruining everything"
@Erinyes1103
@Erinyes1103 3 жыл бұрын
The story of my programming career right there.
@ovrsurge4689
@ovrsurge4689 3 жыл бұрын
I lost it at that line.
@andrewsprojectsinnovations6352
@andrewsprojectsinnovations6352 3 жыл бұрын
I can absolutely relate to this line's accuracy as a college Robotics major and hobbyist game developer. Nothing, not even a seemingly basic optimization, ever works exactly right the first time. In my experience, only one third of programming is actually devising the logic and writing the program. The remaining two thirds are roughly equally split between debugging and tweaking the numbers. I've had this concept apply to every single project I've worked on from basic Pong clones to turn-based RPG's to autonomous navigation.
@firebird2552
@firebird2552 3 жыл бұрын
@@ovrsurge4689 So did I
@caspera3193
@caspera3193 3 жыл бұрын
When a joke ironically describes programming in general
@chosenvan
@chosenvan 3 жыл бұрын
Others showing us how we can use Unity. Sebastian is showing us WHAT WE CAN DO with Unity. Every priceless journey starts with imagination. Absolutely wonderful! :)
@DjSadhu
@DjSadhu 2 жыл бұрын
You are insanely talented sir. Physics, math, shaders, coding, and it all comes in a very smooth and entertaining package. Big fan.
@-vanitas5229
@-vanitas5229 3 жыл бұрын
I watch this video once a day because I can't wait for the next episode.
@mahmouda.khalifa1377
@mahmouda.khalifa1377 3 жыл бұрын
Same bro
@CanyonWanderer
@CanyonWanderer Жыл бұрын
I really love this journey (which I joined an bit late by the looks of it), not only from a programming perspective, which I absolutely love, but also because of how you explain the physics behind it in the clearest way possible
@rufarokembo
@rufarokembo 3 жыл бұрын
Mans is really in a lague of his own
@Danidev
@Danidev 3 жыл бұрын
This was so interesting, and the result is absolutely stunning! Looking forward to the next one man.
@SebastianLague
@SebastianLague 3 жыл бұрын
Thank you :)
@Fagush
@Fagush 3 жыл бұрын
I bet you can't make atmosphere with Unity's particle system!
@flipper2258
@flipper2258 3 жыл бұрын
Can you make a space game (or you can’t do that)
@CardZed
@CardZed 3 жыл бұрын
Go back to making Karlson you beautiful bastar
@gbubs1588
@gbubs1588 3 жыл бұрын
@Kwame Opoku I like how you spelled out "question mark" and then used a question mark
@TheGameChangerLord
@TheGameChangerLord Жыл бұрын
the transition at 0:26 to 0:28 was phenomenal
@konrad8509
@konrad8509 2 жыл бұрын
He just made a planet with atmosphere and sunsets that look so amazing and real. It's awesome to have this sort of your own world, and I hope you'll add more stuff to it.
@uklcourses9636
@uklcourses9636 2 жыл бұрын
I reaaaally like the transition from the black space sky to the atmosphere. So natural.
@HeathClose
@HeathClose 3 жыл бұрын
I’ve never sat on my couch before and cheered out loud about code like it was a sporting event. This is brilliant. I was moved. Also had to google what a float3 was, haven’t seen that yet. The results were beautiful both visually and scientifically. An intersection of art and science. Also, you just taught me why sunsets are fiery orange. This might be the greatest coding video I’ve ever watched. Wow. Just... wow...
@MrPink-xv5el
@MrPink-xv5el 3 жыл бұрын
11:06 W-what are you d-doing, Stepsize?"
@VulpeculaJoy
@VulpeculaJoy 3 жыл бұрын
T-taking a density sample of your optical depth.
@snwdn
@snwdn 3 жыл бұрын
Nothing terribly interesting.
@delofon
@delofon 2 жыл бұрын
That's disgusting. I love it.
@UnofficialCyane
@UnofficialCyane 2 жыл бұрын
It had to be done
@Aspharon
@Aspharon 3 жыл бұрын
The most mind-blowing part about these shaders is that they look good both above- and below their "surface". This one looks great from space and from the planet surface, and the water one looks great both inside- and outside the water. Absolutely boggles my mind.
@masamainio4052
@masamainio4052 3 жыл бұрын
That's because Sebastian bases his solutions on actual physics instead of going for easy surface level solutions. The man deserves all the credit he gets and then some!
@josevera5094
@josevera5094 3 жыл бұрын
@@masamainio4052 Looks great, but is not based entirely on real physics. He did use some tricks to make it easier. The red colors should not appear when looking from outside the planet. Still awesome work :) he really inspires all of us
@AkiRa22084
@AkiRa22084 3 жыл бұрын
When you program good, code will work even in situations you didn't plan.
@user-if6qp1lw2b
@user-if6qp1lw2b 3 жыл бұрын
@@AkiRa22084 i do not think that is how it works, filthy weeb
@NStripleseven
@NStripleseven 3 жыл бұрын
Bruh So what you're saying is that you don't program good.
@UltimateDuck97
@UltimateDuck97 2 жыл бұрын
Wow the way you explained the colours of the atmospheres was amazing. If I was taught that in school I probably wouldn't have got it at all.
@lightning_11
@lightning_11 Жыл бұрын
7:40 Wow, that's my favorite trick, too! When I first right my code, about 90% of the functions don't exist, that way I know what I need to do to make it work.
@Atomizer74
@Atomizer74 3 жыл бұрын
I absolutely love the way you have done this series, not only is it fascinating to watch and see what you managed to achieve, but as a coder also interested in these topics, it is very valuable at pointing out various techniques used, and even explaining and visualizing them to a degree to make delving into the topics easier(plus I know what to look up in order to get full details on a topic). So, thank you for these, I look forward to seeing your future progress and see what you manage to do with it moving forwards.
@absence9443
@absence9443 3 жыл бұрын
I hope this channel won't die, it's the best and motivational coding channel I've found, but I fear that it may lead to financial problems
@garrlawproductions
@garrlawproductions 3 жыл бұрын
words cannot explain how much joy i get from watching this series. keep up the good work, and please make a full game of this. this is literally my dream game.
@zippycat9
@zippycat9 3 жыл бұрын
Next up: Coding adventure: Mining Coding adventure: Aliens Coding adventure: Turning this into a steam game and selling it.
@apersononlineyes6554
@apersononlineyes6554 3 жыл бұрын
I would buy it.
@caleblindahl190
@caleblindahl190 3 жыл бұрын
No mans sky 2.0
@zippycat9
@zippycat9 3 жыл бұрын
@@apersononlineyes6554 Me too
@cyrussmith4744
@cyrussmith4744 3 жыл бұрын
This guy is making no Mans sky all by himself
@srrinio7616
@srrinio7616 3 жыл бұрын
Procedural animal life
@bramweinreder2346
@bramweinreder2346 10 ай бұрын
I love everything you're doing. The reason your coding looks so accurate and effortless, I think, is because you really like math. I could only dig into math if the subject matter has a certain significance to me. To those who just have a thing with numbers, the subject matter becomes arbitrary, and the results will appear effortless and beautiful.
@cullenmitchell9165
@cullenmitchell9165 3 жыл бұрын
You’re a baby god, learning how to make a universe.
@ajayaplays
@ajayaplays 3 жыл бұрын
I can see how this method of in-scattering could be more realistic, but a far easier and for more processor-friendly method would be to simply take two versions of a depth map on every frame, one that is black to white, and one that is black to whatever color you want your atmosphere to be. Then you use the black to white depth map as an alpha matte to reveal the atmosphere map. This can mimic a volumetric atmosphere at a tiny cost of processing.
@mkingamess7029
@mkingamess7029 2 жыл бұрын
So I did my Bachelor thesis (technical chemistry, made a little machine that visually tracks how an emulsion or suspension destabilizes over time) for which I did a lot of Rayleigh and Mie scattering research and attempted to implement a way to approximate the particle size via scattering measurements (unsuccessful, lol, that was squarely too much for the scope of my skills and time of thesis). And somehow you just managed to explain these phenomena and visualize them in like 5 minutes! Little Bachelor-me spent days of research on this and still wasn't able to put it into such simple terms. Mad respect.
@absence9443
@absence9443 3 жыл бұрын
I don't think I currently know any other channel that shows principles and coding areas that visually pleasing and well written.
@morganeclipse9038
@morganeclipse9038 3 жыл бұрын
Next video: "I don't really like how the stars are not realistically generated so I'm writing this quick program to simulate the formation of the Universe using these papers I read about the fundamental composition of space and time."
@ThadMiller1
@ThadMiller1 3 жыл бұрын
"Ok, now let us run the simulation towards the big bang, and see what's happen"
@EzeKry
@EzeKry 3 жыл бұрын
"Well seems like it doesn't run at usable framerates so I'm going to 'borrow' a supercomputer"
@someonethatlive8632
@someonethatlive8632 3 жыл бұрын
"ho, a bug"
@morganeclipse9038
@morganeclipse9038 3 жыл бұрын
@Commep "So I'm not really happy with how the computers made in the realm of man aren't up to everything we need to do so I wrote a quick program to self optimize its own hardware- aaaaaaaaand it's taking over..."
@Netherdan
@Netherdan 3 жыл бұрын
@@EzeKry "but soon I realized it was just a misplaced + sign and after I fixed that the machines were replaced by a sentient and mostly atheist life form. It's better when they don't know"
@BasicallyPie
@BasicallyPie Жыл бұрын
I love watching these videos, despite the fact that I have absolutely no idea what he's talking about.
@WD1271
@WD1271 2 жыл бұрын
I don't really understand what is going on but I love it. To me watching code turn into reality is fascinating. Its brilliantly edited and narrated too.
@copyrightstrike7637
@copyrightstrike7637 2 жыл бұрын
I'm very new to coding, and I had always assumed game devs just stuck to pre-set skyboxes to model day and night. Now after seeing this video and after seeing the crazy amount of actual optical physics used in simulating a legit atmosphere, I have new found respect (watching the different wavelengths of light get diffracted through the atmosphere is insane). It is so cool to see how the math from my astronomy textbook is implemented in a game and how interactions of individual rays of light are modeled and rendered real time. Next thing you know he is gonna actually model the radiative/convective heat transfer of individual molecules to produce wind and natural disasters XD Great work and great videos.
@minorseven8134
@minorseven8134 8 ай бұрын
"To calculate the optical depth, I use my favourite programming trick: calling a function that does not exist and worrying about it later." 7:42 These videos are entertaining, educational, inspiring and a pleasure to watch, all at the same time. This channel is a gem (extra points for the super cute dog on the profile picture)
@zig8925
@zig8925 2 жыл бұрын
It really gives you a good visual of a still frame of the transition from blue sky to sunset/sunrise and night
@mokeydna
@mokeydna 3 жыл бұрын
Son: *"Mom, why's the sky blue?"* Mom: *"It was a free skybox on the asset store. Don't judge me like that"*
@Vladimir_Kv
@Vladimir_Kv 3 жыл бұрын
*Child:* Mom? I want an atmosphere like this, to be procedurally generated! *Mom:* We have an atmosphere at home. *Atmosphere at home:* 🔵
@johnnndeauson1581
@johnnndeauson1581 3 жыл бұрын
literally every other atmosphere: ⚪️🟠🟡🟢🟣🔴
@unknownvariable2456
@unknownvariable2456 3 жыл бұрын
actual mom: "blue is the shortest wavelength of light so it scatters when it hits the atmosphere coloring the sky blue and as the sun goes bellow the horizon (blah blah blah) the range of light the reaches the atmosphere and scatters changes and turns the sky different colors (blah blah blah)." wooo science
@ilhamrahkmanriefda9514
@ilhamrahkmanriefda9514 3 жыл бұрын
When your dad randomly mary random girl from party
@Sovietube
@Sovietube 3 жыл бұрын
Dude your a fuckin genius
@anno_nym
@anno_nym 10 ай бұрын
I like your relaxing voice and detailed description of everything, which turned out quite sweet :) It is kind of like a minimalistic graphics-only KSP
@snekrowave
@snekrowave 2 жыл бұрын
The progression of events at 17:17 was far too real for me. Thanks for the fantastic video!
@dheerajc1879
@dheerajc1879 3 жыл бұрын
Your videos are so interesting, also the content you includes...it makes you a genius...more than any other developer I've ever seen
@Nboss137
@Nboss137 3 жыл бұрын
Wow... That is what I legit said outloud when watching this. Spectacular and phenomenal job
@arjunpuri123
@arjunpuri123 2 жыл бұрын
Wow, this is not only phenomenally cool code but has also helped me understand more about how light scatters through our own atmosphere as well!! Love the content, keep up the great work!
@NamePointer
@NamePointer 3 жыл бұрын
So "Coding Adventure: The Universe" is slowly but surely becoming reality...
@Served13
@Served13 3 жыл бұрын
Wow 105 likes and no replies
@Hello-qg4yk
@Hello-qg4yk 3 жыл бұрын
Served13 why wow?
@brycetonwest
@brycetonwest 3 жыл бұрын
I really hope it does become reality
@ericwoot2
@ericwoot2 3 жыл бұрын
soon: coding adventures, coding a God creating a universe
@davefalcon3712
@davefalcon3712 3 жыл бұрын
Nah mate we already have spore for that...
@CheeseyCHV
@CheeseyCHV 2 жыл бұрын
Thank you very much for your videos. I am not a coder, but I work with shaders in Blender and your videos, since you go so in depth with the scientific background, give me inspiration and ideas for my work.
@LostOnceLefthanded
@LostOnceLefthanded 2 жыл бұрын
What a great guide and the best part about it was how thoroughly you explained everything. So thoroughly in fact, that I noticed some parts that I thought I could maybe improve even. I'm itching to try it out myself now. Really inspirational!
@Tracy7689
@Tracy7689 3 жыл бұрын
One idea I have for this would be procedural solar systems with Interstellar space. There could be a bunch of stars in another area accessible by a “warp speed” button on the rocket. If you went near one of the stars you would be able to enter the system, and each star would store a value to use as a seed for the planets and other things. The variables could be calculated while you entered the system, and the planets positions could just be set back to their original location. You don’t have to listen to everything in this, and I don’t have very much coding experience, but the stars could show the system name and some other data the stars don’t have to be in an infinite area, and I am kind of stealing this idea from spore. I absolutely love your work and would be super happy to be featured, so thank you for reading this.
@richardbloemenkamp8532
@richardbloemenkamp8532 2 жыл бұрын
A very original and well-made physics/coding video. Very refreshing, thank you.
@marcoaziel
@marcoaziel 2 жыл бұрын
these are some of the most well-done coding videos i've ever seen, really appreciate how much effort you put into making the visuals to explain concepts as you write the code
@you_just
@you_just 3 жыл бұрын
“That sped things up immensely, with the minor trade off of ruining everything”
@verified_tinker1818
@verified_tinker1818 3 жыл бұрын
The story of my life.
@MannyTheSaxCat
@MannyTheSaxCat 3 жыл бұрын
Lol. I love this line
@jwsjacobs
@jwsjacobs 3 жыл бұрын
I felt that
@Avetho
@Avetho 3 жыл бұрын
@@verified_tinker1818 You beat me to it XD
@gwenturo9550
@gwenturo9550 Жыл бұрын
For a second there I forgot I wasn't looking at space engineers lol The way you explain subjects is splendid, and the way you code is frightening. I love it.
@TheRedAstro
@TheRedAstro 3 жыл бұрын
This is absolutely beautiful, both from a coding and artistic perspective. Very inspired by your work. I just started learning Unity and you are my go-to resource for almost anything. Congrats and thanks!
@audajostudios
@audajostudios 3 жыл бұрын
for some reason I can't stop watching your videos... it really puts into perspect how much I have to learn as a new game developer with only a couple tutorials under my belt. can't wait for the next video. :)
@diogocruzdiniz3186
@diogocruzdiniz3186 2 жыл бұрын
I must say I love your videos. I learnt a lot and got loads of motivation to keep coding from you. I'm writing this comment because for some reason, when at 14:32 the graph starts to show the different colors I had an immense burst of happiness. I'm not entirely sure what happened but it's just another proof that your videos are awesome. Keep up the awesome work!
@alexanderdupree8904
@alexanderdupree8904 3 жыл бұрын
Bro!!!!! I have been searching for a channel like this! Damn the youtube algos for not letting me find you sooner!
@graymanplays7096
@graymanplays7096 3 жыл бұрын
At this point it's fair to say these are devlogs, not Coding Adventures.
@RialuCaos
@RialuCaos 3 жыл бұрын
A bit of both, I'd say. Definitely far more experimental than most devlogs.
@ristopoho824
@ristopoho824 3 жыл бұрын
Yea. Kind of. Feels like an adventure to watch. But oh man the depth he goes to
@Khyll110
@Khyll110 3 жыл бұрын
Both
@JayeshSarvaiya
@JayeshSarvaiya 2 жыл бұрын
Salute to you, just thinking about amount of planning, bug fixing, research and hard work put behind making such amazing work and then explaining all this with such calm and soothing manner. You, Sir, are such a creative and talented person, I wish you were my teacher as well. All the best for upcoming videos, want to see many of these to learn from you. 👍😀
@kairon156
@kairon156 2 жыл бұрын
I've always appreciated coders who took the time to make code in games so they function properly, So your channel helps me understand the kinds of journeys they might take when doing so. PS: The outcome of this Adventure is really cool.
@ranguy1379
@ranguy1379 3 жыл бұрын
I used to love your videos but apparently never subscribed. Then one day KZbin stopped recommending your videos for some reason, and finally I found you again!
@itstriggy4814
@itstriggy4814 3 жыл бұрын
This is absolutely incredible, I'm thoroughly impressed. I can't imagine how much effort this must take, thank you for sharing your work and process!
@johandiaztovar4097
@johandiaztovar4097 3 ай бұрын
Since I found this channel, I can not stop watching his videos!!! I wish I could code as he does! Amazing KZbin channel ❤❤❤ I forgot to say that I miss your cats hahaha
@parthajeetsarmah4529
@parthajeetsarmah4529 3 жыл бұрын
Moral of the story: If you can't model great and beautiful stuff, just procedurally generate them.
@ignaspetrauskas8763
@ignaspetrauskas8763 3 жыл бұрын
As easy, as that...
@stoneageprogrammer432
@stoneageprogrammer432 3 жыл бұрын
Dear god you're a fucking genius. I'm a Blender artist and animation filmmaker. A few years ago the big Blender tutorial topic was exactly this, how to best model and render a photorealistic earth/Mars/moon etc. None of this was supposed to be done in realtime or code. Just models. So, multiple spheres within spheres. So, the atmosphere sphere was my fave, and all of these steps took hours to get right if you're doing it for the first time. But these were just models with some cloud textures and transparents. And I still had some similar issues. But you're nuts. Doing it in code. Now that I'm learning code and C#, I'm grateful, seriously. BUt you're still crazy. Truly Einstein and Heisenberg crazy. I really love the red in the atmo sphere. Very pretty.
@Orrinn123
@Orrinn123 3 жыл бұрын
I love this. You have such a calm and relaxing voice. You're talking about such interesting things and it's for coding. Literally nothing I dislike about anything here
@MrHands-ev2xo
@MrHands-ev2xo 3 жыл бұрын
This is very quickly becoming my favourite channel
@tem4rik202
@tem4rik202 2 жыл бұрын
Your Coding Adventure series is the most inspiring and impressive thing I've ever seen on KZbin! Love it! Wish you the best.
@bradhammond923
@bradhammond923 9 ай бұрын
Man I love your tutes. Up there with book of shaders and nature of code with one’s I keep coming back too. Much appreciated
@colinbergmann5750
@colinbergmann5750 3 жыл бұрын
This channel is so freaking inspirational. Now I want to make a game...
@SDGAMER-sg9js
@SDGAMER-sg9js 3 жыл бұрын
Same here though I don't know how to do it
@boomboompower
@boomboompower 3 жыл бұрын
Do it
@GenusDev
@GenusDev 3 жыл бұрын
@@boomboompower Does a roblox game count?
@adventurenot1543
@adventurenot1543 3 жыл бұрын
@@SDGAMER-sg9js Baby steps Dont overscope Watch youtube videos like Brackeys Dont do a udemy course
@t2hk123
@t2hk123 3 жыл бұрын
@@GenusDev yes, since they are games
@czechslovakian
@czechslovakian 3 жыл бұрын
16:01 You literally re-made the atmosphere of Eve from KSP and I love you for that.
@majesticeagle5461
@majesticeagle5461 3 жыл бұрын
Its not inspired by ksp at all
@czechslovakian
@czechslovakian 3 жыл бұрын
@@majesticeagle5461 I know, it just really looks like it.
@user-ru7im4kz2g
@user-ru7im4kz2g 3 жыл бұрын
češkoslovák
@LabGecko
@LabGecko 2 жыл бұрын
Amazing work! That is a truly beautiful result. It's always nice to see coding competence coming together to become art. 21:44 You might consider adding in a mask to prevent stars showing through the dark side of the planet
@kaiserepsilon4011
@kaiserepsilon4011 3 жыл бұрын
Wow... I can see this going so many places... and I love all of them...
@mansteading9924
@mansteading9924 2 жыл бұрын
I've watched this series 2 times its so interesting, i recently started coding and I wish i will get as good as you, keep on making great videos
@79_Au.
@79_Au. 10 ай бұрын
I would love to see you continue this.
@connorfrancey8307
@connorfrancey8307 3 жыл бұрын
Sebastian: I'm going to do something a little gross. me who knows nothing about coding: How dare he.
@mme.veronica735
@mme.veronica735 3 жыл бұрын
I mean in projects where you're working with other people yeah just put the function in and worry about someone else writing that code. However in single person projects it's up to personal preference, do want to finish your train of thought before moving onto the smaller but still important things, or do everything as it's coming up
@dazza2350
@dazza2350 3 жыл бұрын
@@mme.veronica735 ok
@hero9402
@hero9402 3 жыл бұрын
@@dazza2350 lol
@thechosenone9910
@thechosenone9910 3 жыл бұрын
Mme. Veronica *pretends to understand* Oh yeah totally I saw a video on that it was by that one guy who’s good at this right yes I know more than you okay not really can you elaborate
@AnonTen
@AnonTen 3 жыл бұрын
that's math though not coding
@lightblue254
@lightblue254 3 жыл бұрын
12:19 is a beautiful showcase of potential obscure soviet era crunchy drums doomer music album covers
@Gutagi
@Gutagi 3 жыл бұрын
12:25 is ur profile pic right?
@lightblue254
@lightblue254 3 жыл бұрын
@@Gutagi yep :)
@adjsmith
@adjsmith 2 жыл бұрын
As someone who studies optical depth in atmospheres as part of my research, this was fun to watch.
@jacks6910
@jacks6910 2 жыл бұрын
These videos are like crack to me. Amazing work, its awesome to see your passion in your work.
@Niklas-zb7er
@Niklas-zb7er 3 жыл бұрын
Please Upload again. Ur Videos are by far the one of the bests of KZbin
@amgames5638
@amgames5638 3 жыл бұрын
I'm sure games like No Man's Sky just simply overlay a skybox with varying colours depending on the planet. But you actually simulated light moving from the sun to the viewer's eyes, incredible! I get the feeling you had originally planned to make this a lot simpler than it turned out, but it's amazing lol Gotta say, I'm still a novice, barely scraping intermediate programmer, but your videos really encourage me to want to keep going and learning more complex things!
@cashwarior
@cashwarior 3 жыл бұрын
This stuff just makes me realize how crazy complicated real life is
@abdullahimran4624
@abdullahimran4624 3 жыл бұрын
Every other person you see is as real and complicated as you. Sometimes i refuse to believe this because of how insane it is
@lyes6033
@lyes6033 3 жыл бұрын
well we are a bunch of atoms that are attracted to each other and not a single object , that's what messes with my brain XDDD
@EKIANandWolvesGaming
@EKIANandWolvesGaming 3 жыл бұрын
And in theory if you could know enough about everything, break it all down mathematically, and calculate it all from the big bang, you'd be able to know the future through every cause and effect chain
@abdullahimran4624
@abdullahimran4624 3 жыл бұрын
@@EKIANandWolvesGaming nah I get why that seems to make sense but there are truly random events happening all the time. The spin of a quark for example, when it is formed
@RialuCaos
@RialuCaos 3 жыл бұрын
@@EKIANandWolvesGaming I think one of the main problems with that theory is that you cannot know / have complete precision of natural values (acceleration, etc.), and those precision errors will cause prediction errors over long periods of time due to the butterfly effect. Though perhaps it could be precise enough to at least be accurate for a few billion years...though of course it would still require an impossibly large amount of processing power.
@shane9933
@shane9933 2 жыл бұрын
Now just add a quick sphere gradient of sorts to cut away the atmosphere from the characters position. That way it its not so "foggy" when walking on the planet vs looking at it from a far. Amazing stuff btw keep it up.
@corelysium2139
@corelysium2139 2 жыл бұрын
The way this is panning out so far reminds me a lot of spore. Also just wanna say these I am really thankful for these vids as the knowledge you are sharing here is helping point me alot in the right direction for my dream game which is currently in the planning phase.
@stormcaster6322
@stormcaster6322 2 жыл бұрын
what kind of game will it be?
@corelysium2139
@corelysium2139 2 жыл бұрын
@@stormcaster6322 A space rts kinda like homeworld, with some rpg elements allowing your pilots to become more skilled. A big part of the game is the systems so even though I prob will not go this crazy with the stuff it is nice to have some reference for the systems set pieces. Might even make the ship able to enter the planets dunno yet.
@dhanushvarthiboina
@dhanushvarthiboina 3 жыл бұрын
This guy is inspiration !! Literally "godlike" simplification 😭😭
Coding Adventure: Procedural Moons and Planets
22:48
Sebastian Lague
Рет қаралды 1,7 МЛН
Coding Adventure: Terraforming
22:23
Sebastian Lague
Рет қаралды 1,3 МЛН
Жездуха 49-серия
34:42
Million Show
Рет қаралды 3 МЛН
Winter life hack #lifehacks
00:59
Alina Saito / 斎藤アリーナ
Рет қаралды 11 МЛН
NO NO NO YES! (Fight Another YouTuber) feat @arnaldomangini #shorts
00:41
Tenge is the best 😂! I miss him
00:16
Noel Robinson
Рет қаралды 88 МЛН
Trying to Improve My Geography Game with More Real-World Data
36:11
Sebastian Lague
Рет қаралды 3,6 МЛН
Coding Adventure: Solar System
12:12
Sebastian Lague
Рет қаралды 816 М.
What Happens AFTER Nuclear War?
11:11
Kurzgesagt – In a Nutshell
Рет қаралды 1,6 МЛН
Non-Euclidean Worlds Engine
5:15
CodeParade
Рет қаралды 11 МЛН
How to Create a Neural Network (and Train it to Identify Doodles)
54:51
Sebastian Lague
Рет қаралды 1,7 МЛН
How I Learned Procedural Generation
5:36
Lejynn
Рет қаралды 232 М.
How to lie using visual proofs
18:49
3Blue1Brown
Рет қаралды 2,8 МЛН
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,2 МЛН
I Spent a Week Making an AI's Video Game Idea
17:51
Sebastian Lague
Рет қаралды 3,2 МЛН
Why It Was Almost Impossible to Make the Blue LED
33:45
Veritasium
Рет қаралды 13 МЛН
Каха снова Внган
0:35
К-Media
Рет қаралды 3,7 МЛН
Ben-Hur (1959) #edit #shorts #phonk
0:59
MuelTv
Рет қаралды 40 МЛН
У НЮШИ НОВАЯ КОПИЛКА #cat
0:59
Лайки Like
Рет қаралды 2,1 МЛН