"my favorite programming trick: calling a function that doesn't exist and worrying about it later" You're my hero dude lmfao
@SS2Dante4 жыл бұрын
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.
@TheThirdPrice4 жыл бұрын
SS2Dante oh for sure, I do the same thing
@Trezker4 жыл бұрын
I tend to do the opposite. Write a function, forget to call it and wonder why it's not working.
@AHSEN.4 жыл бұрын
@@Trezker lol me too
@overloader79004 жыл бұрын
@@Trezker There are two kinds of people
@Blazecove4 жыл бұрын
When he accidentally makes the best lesson on why the sky is blue.
@ms-fk6eb4 жыл бұрын
yeah, and I'd never have thought about why the sky turns red when the sun is low
@thequantumnexus42704 жыл бұрын
Ha - was thinking the same thing.
@feha924 жыл бұрын
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)
@CodingJedi4 жыл бұрын
Sebastian’s videos are more tutorialish than one with “tutorial” term in titles!
@filgas08924 жыл бұрын
I think I will show this to my scienze teacher 😂
@Templarfreak3 жыл бұрын
"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
@DigitalJedi3 жыл бұрын
I know right. I didn't need to be called out like this but here we are.
@metaparalysis34413 жыл бұрын
@@DigitalJedi This is calling out every programmer since the dawn of time
@TinyDeskEngineer2 жыл бұрын
They are broad personal attacks against programmers
@theguythatcodes89912 жыл бұрын
i do the second thing alot
@LineOfThy2 жыл бұрын
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.
@CallMeTess4 жыл бұрын
"that sped things up immensely, with the minor trade-off of completely ruining everything"
@Erinyes11034 жыл бұрын
The story of my programming career right there.
@ovrsurge46894 жыл бұрын
I lost it at that line.
@andrewsprojectsinnovations63524 жыл бұрын
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.
@firebird25524 жыл бұрын
@@ovrsurge4689 So did I
@caspera31934 жыл бұрын
When a joke ironically describes programming in general
@Aspharon4 жыл бұрын
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.
@masamainio40524 жыл бұрын
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!
@josevera50944 жыл бұрын
@@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
@AkiRa220844 жыл бұрын
When you program good, code will work even in situations you didn't plan.
@Мөнхдөл4 жыл бұрын
@@AkiRa22084 i do not think that is how it works, filthy weeb
@NStripleseven4 жыл бұрын
Bruh So what you're saying is that you don't program good.
@dotTxtFile4 жыл бұрын
everybody gangsta until he makes no man's sky 2
@_Killkor4 жыл бұрын
He already destroyed Spore's planet generation in the previous episode, so No Man's Sky is for sure next on the list.
@GerardofRivia4 жыл бұрын
More like Outer Wilds 2
@Wylie2883 жыл бұрын
@@_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.
@burrdid3 жыл бұрын
orginal no mans sky was bad
@hackergaming63723 жыл бұрын
@@burrdid at release it was but with updates it really improved and became fun again.
@morganeclipse90384 жыл бұрын
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."
@ThadMiller14 жыл бұрын
"Ok, now let us run the simulation towards the big bang, and see what's happen"
@EzeKry4 жыл бұрын
"Well seems like it doesn't run at usable framerates so I'm going to 'borrow' a supercomputer"
@someonethatlive86324 жыл бұрын
"ho, a bug"
@morganeclipse90384 жыл бұрын
@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..."
@Netherdan4 жыл бұрын
@@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"
@zippycat94 жыл бұрын
Next up: Coding adventure: Mining Coding adventure: Aliens Coding adventure: Turning this into a steam game and selling it.
@apersononlineyes65544 жыл бұрын
I would buy it.
@caleblindahl1904 жыл бұрын
No mans sky 2.0
@zippycat94 жыл бұрын
@@apersononlineyes6554 Me too
@cyrussmith47444 жыл бұрын
This guy is making no Mans sky all by himself
@srrinio76164 жыл бұрын
Procedural animal life
@AllTheFishAreDead4 жыл бұрын
"That sped things up immensely, with the minor trade off of completely ruining everything." Coding4lyf my dude.
@Danidev4 жыл бұрын
This was so interesting, and the result is absolutely stunning! Looking forward to the next one man.
@SebastianLague4 жыл бұрын
Thank you :)
@Fagush4 жыл бұрын
I bet you can't make atmosphere with Unity's particle system!
@flipper22584 жыл бұрын
Can you make a space game (or you can’t do that)
@CardZed4 жыл бұрын
Go back to making Karlson you beautiful bastar
@gbubs15884 жыл бұрын
@Kwame Opoku I like how you spelled out "question mark" and then used a question mark
@mokeydna4 жыл бұрын
Son: *"Mom, why's the sky blue?"* Mom: *"It was a free skybox on the asset store. Don't judge me like that"*
@Vladimir_Kv4 жыл бұрын
*Child:* Mom? I want an atmosphere like this, to be procedurally generated! *Mom:* We have an atmosphere at home. *Atmosphere at home:* 🔵
@johnnndeauson15814 жыл бұрын
literally every other atmosphere: ⚪️🟠🟡🟢🟣🔴
@unknownvariable24564 жыл бұрын
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
@ilhamrahkmanriefda95144 жыл бұрын
When your dad randomly mary random girl from party
@Sovietube4 жыл бұрын
Dude your a fuckin genius
@TheStripeTailedFiend4 жыл бұрын
Plot twist: this guy is god and he is just uploading dev logs for the universe.
@_Killkor4 жыл бұрын
He's creating a new universe _He's bored with our Universe. Oh no..._
@DoorknobPlus4 жыл бұрын
@Mega why is that so true
@jesterram71464 жыл бұрын
@killkor he's aking this one for the "galactic society" expansion cause the one we have right now is boring
@leonardomotameirafilho62153 жыл бұрын
@@_Killkor That would explain the events that happened in 2020
@Ro_Gaming3 жыл бұрын
Have you downloaded the new update? The atmosphere is now green!
@bloosea1234 жыл бұрын
And God said, "calculateLight(N, N, N)", and there was light.
@jupi68514 жыл бұрын
best comment ever.
@fluffyflamingo4 жыл бұрын
Bro xD... Yes!
@ArcheoLumiere4 жыл бұрын
And it was good
@PlasmaNode4 жыл бұрын
Love this
@warny19784 жыл бұрын
@@ArcheoLumiere But not at first try !
@NamePointer4 жыл бұрын
So "Coding Adventure: The Universe" is slowly but surely becoming reality...
@Served134 жыл бұрын
Wow 105 likes and no replies
@Hello-qg4yk4 жыл бұрын
Served13 why wow?
@brycetonwest4 жыл бұрын
I really hope it does become reality
@ericwoot24 жыл бұрын
soon: coding adventures, coding a God creating a universe
@thedavefalcon4 жыл бұрын
Nah mate we already have spore for that...
@johnhirsh61684 жыл бұрын
"Its actually quite simple" *proceeds to begin speaking mandorin*
@jerry_mandarin4 жыл бұрын
mandolin?
@TinyDeskEngineer4 жыл бұрын
@@jerry_mandarin mango
@secularph84243 жыл бұрын
Maggie
@para36683 жыл бұрын
i think its mandarin
@astronichols19003 жыл бұрын
Let me put it in a language you can understand 11:12
@colinbergmann57504 жыл бұрын
This channel is so freaking inspirational. Now I want to make a game...
@SDGAMER-sg9js4 жыл бұрын
Same here though I don't know how to do it
@boomboompower4 жыл бұрын
Do it
@GenusDev4 жыл бұрын
@@boomboompower Does a roblox game count?
@adventurenot15434 жыл бұрын
@@SDGAMER-sg9js Baby steps Dont overscope Watch youtube videos like Brackeys Dont do a udemy course
@t2hk_4 жыл бұрын
@@GenusDev yes, since they are games
@you_just4 жыл бұрын
“That sped things up immensely, with the minor trade off of ruining everything”
@verified_tinker18184 жыл бұрын
The story of my life.
@MannyTheSaxCat4 жыл бұрын
Lol. I love this line
@jwsjacobs4 жыл бұрын
I felt that
@Avetho4 жыл бұрын
@@verified_tinker1818 You beat me to it XD
@gganderson77223 жыл бұрын
Me, who never coded a single code, the entire video: "Yea, I guess that makes sense".
@teobellverwhite35623 жыл бұрын
try it! it's not that hard if you had a guide
@electronx55943 жыл бұрын
Did you start? :P
@teobellverwhite35623 жыл бұрын
@@electronx5594 he should
@mealsome77933 жыл бұрын
@@teobellverwhite3562 what do you recommend?
@teobellverwhite35623 жыл бұрын
@@mealsome7793 i recomend python for begginers
@parthajeetsarmah45294 жыл бұрын
Moral of the story: If you can't model great and beautiful stuff, just procedurally generate them.
@ignaspetrauskas87634 жыл бұрын
As easy, as that...
@SgtRumpel4 жыл бұрын
This seems like a tutorial for the first 7 days in the job of an omnipotent entity.
@velizarzhelev65524 жыл бұрын
Yes
@workinprogress254 жыл бұрын
So... a game developer?
@thecompl33tnoob4 жыл бұрын
No kidding. Our reality functions like one of those tutorials where the dev reads through it halfway, misunderstands/misapplies half of that, and wings the rest.
@Betaster30004 жыл бұрын
Didn't he rest on the 7th day?
@si87784 жыл бұрын
Underrated
@Amagys3 жыл бұрын
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.
@connorfrancey83074 жыл бұрын
Sebastian: I'm going to do something a little gross. me who knows nothing about coding: How dare he.
@mme.veronica7354 жыл бұрын
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
@dazza23504 жыл бұрын
@@mme.veronica735 ok
@hero94024 жыл бұрын
@@dazza2350 lol
@thechosenone99104 жыл бұрын
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
@AnonTen4 жыл бұрын
that's math though not coding
@cashwarior4 жыл бұрын
This stuff just makes me realize how crazy complicated real life is
@abdullahimran46244 жыл бұрын
Every other person you see is as real and complicated as you. Sometimes i refuse to believe this because of how insane it is
@lyes60334 жыл бұрын
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
@EKIANandWolvesGaming4 жыл бұрын
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
@abdullahimran46244 жыл бұрын
@@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
@RialuCaos4 жыл бұрын
@@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.
@ScorpioHR3 жыл бұрын
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
@pinkajou6563 жыл бұрын
That’s fantastic.
@KC-bu8qq3 жыл бұрын
why were you trying to teach your dog spreadsheets lmao
@ScorpioHR3 жыл бұрын
@@KC-bu8qq He had to know what was so much more fun than playing with him.
@adityavyas18504 жыл бұрын
After simulating solar system..... Sebastian begins the journey to make his own UniVerse
@pissfiss4 жыл бұрын
DAMN
@ben_burnes4 жыл бұрын
That apple pie isn't going to make itself.
@SoulSukkur4 жыл бұрын
he's already taking the procedural route. we know where that leads.
@unclerandy3984 жыл бұрын
Coding Adventure: Conscious Life
@FloofyHair4 жыл бұрын
Uncle Randy that would be quite the project XD
@christiantavera92074 жыл бұрын
Coding Adventures in 5 years: So today we will be watching our generated Alien civilizations fight against the multi-galaxy humans.
@kurtisgibson29294 жыл бұрын
Not as hard as it sounds
@parsatayebi76524 жыл бұрын
Stellaris...
@asyncxeno4 жыл бұрын
@@kurtisgibson2929 ...
@kurtisgibson29294 жыл бұрын
@@asyncxeno i know because it's been done
@faizanahmad77304 жыл бұрын
@@kurtisgibson2929 Aah yes, the AI simulating an advanced civilization going to war against an advanced form of humanity. Of course it has. Where again?
@anopenbook25254 жыл бұрын
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-murlock3 жыл бұрын
With that setup he could also be able to simulate death of his PC
@solarisNT-v4j2 жыл бұрын
how he gonna fit chess in there
@Enderia22 жыл бұрын
@@solarisNT-v4j a feature of the game just add a chess board
@user-dh8oi2mk4f2 жыл бұрын
@@solarisNT-v4j the game is free, provided that you beat his chess AI
@ananttiwari13372 жыл бұрын
@@solarisNT-v4j a minigame within the spacecraft perhaps
@nicolas_heringer4 жыл бұрын
I'm a physicist and this serie is one of the most beautiful things I've ever seen.
@macmarc66614 жыл бұрын
How good are the formulas used in this video?
@f23anone824 жыл бұрын
You don't have to be physicist to admire beauty, do you? )
@korok26194 жыл бұрын
@@f23anone82 but if you can admire a physic simulation as a physicist is has to be great
@DanielAbeleira4 жыл бұрын
Next up, Coding Adventure: Self Aware Lifeforms
@_fragment4 жыл бұрын
Ha, I was just about to comment that
@SimplePhysics004 жыл бұрын
No joke tho, he had a mini series on writing a neural network that was left unfinished. I bet we'll finally get the long-awaited conclusion as he puts in life forms!!!
@estantaya4 жыл бұрын
unappreciated comment
@IronMessenger4 жыл бұрын
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.
@jyothish51943 жыл бұрын
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
@flex96633 жыл бұрын
@@jyothish5194 you think its that simple ? ok web developer
@ShatabdaRoy1153 жыл бұрын
@@flex9663 chil chil! All game devs know de pain. Some people has pain tolerance higher, and some people don't soo yeah!
@natj86754 жыл бұрын
What I love about this channel is the fact that we get a whole background course in real world physics before he makes anything.
@SamHogan4 жыл бұрын
Love this series! It's just incredible to see his process and everything come together so perfectly in the end
@SebastianLague4 жыл бұрын
Sam Hogan Thanks! :)
@chimitrash29664 жыл бұрын
I don't wanna be that guy but... "WhAt aRe yoU DoiNg hERe"
@4P5MC4 жыл бұрын
@@chimitrash2966 enjoying quality content? KZbinrs are humans too.
@dnyaneshwardarade61204 жыл бұрын
@@chimitrash2966 what he can't learn if he is a KZbinr?
@Dumbdestroyer24 жыл бұрын
@@SebastianLague um but what i want to know is how i Can play this beatiful work of art for my self because ive always enjoyed open adventure games
@DjSadhu2 жыл бұрын
You are insanely talented sir. Physics, math, shaders, coding, and it all comes in a very smooth and entertaining package. Big fan.
@wstevegaming5934 жыл бұрын
He's so calm explaining all of this, I can't imagine he doesn't get immensely frustrated like me trying to figure out these problems and having to do ridiculous amounts of research to solve them
@coltonbates6294 жыл бұрын
Right? He says it like he knows exactly what he has to do, exactly how to do it, and why he has to do it that way all the time. It would be so interesting to actually just watch him do it
@quinnhart76784 жыл бұрын
I'm sure he gets frustrated while actually coding it. We're just seeing the result
@BigdoAR4 жыл бұрын
@@quinnhart7678 ye
@personwatchingthings13544 жыл бұрын
@@quinnhart7678 r/wooosh
@quinnhart76784 жыл бұрын
@@personwatchingthings1354 r/wooosh
@taythree55494 жыл бұрын
Kid "Mom why is the sky blue?" Coolest Mom ever "I don't know, let's make one and find out shall we"
@jan_sipiki4 жыл бұрын
i wnat that
@AN-ou6qu4 жыл бұрын
That toddler is about to get their mind absolutely exploded because nobody at that age can actually understand any of this lol, sorry coolest mom ever
@EnDeRBeaT4 жыл бұрын
@@AN-ou6qu it's not that hard actually
@Hello-qg4yk4 жыл бұрын
EnDeRBeaT yeah. They can understand MUCH MORE than people realise. You just need to approach it gradually
@Hello-qg4yk4 жыл бұрын
Not: Heres quantum mechanics But: Theres this thing called a photon. It is the light you see and ... [LOTS OF DETAILED TALKING] so thats quantum mechanics. IMO they can but you just need to take so much time explaining it gradually that they already are a year older or something. Like how you dont learn everything in school in 1 year but 12
@chosenvan4 жыл бұрын
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! :)
@snowcraft-d3d4 жыл бұрын
"Perhaps one day I'll write code that works perfectly first time." Liar. Such arts are arcane and beyond mortal comprehension!
@NeverEverTM4 жыл бұрын
Everyone knows only the Chosen One is capable of such thing!
@chri-k4 жыл бұрын
@@NeverEverTM *writes " print( ' hi ' ) " * - " it worked perfectly first time!"
@calliope_x34 жыл бұрын
luckily he's basically a god at this point
@chaotikclover71572 ай бұрын
@@calliope_x3 rap god
@Gygasnukee4 жыл бұрын
This coding adventure is scratching an Outer Wilds shaped hole in my heart and I'm loving it.
@bessiebuddy79514 жыл бұрын
That’s what inspired him to make this series!
@dhanushkawijethunga3 жыл бұрын
Mine too
@kipchickensout2 жыл бұрын
This is the fourth time I've remembered this video and looked it up again just to watch it again
@petterlarsson7257 Жыл бұрын
13th for me
@SebastianLague4 жыл бұрын
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
@mariocamspam724 жыл бұрын
Yes
@user-nj1qc7uc9c4 жыл бұрын
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
@aldrichcoetzee91024 жыл бұрын
Have been looking forward to another video!
@numero7mojeangering4 жыл бұрын
Yes this is awesome! Love it!
@anonymoususer62514 жыл бұрын
I would love to see how collisions with other planetary and asteroid bodies act.
@afuu7944 жыл бұрын
there are three skill to be an expert programming : 1 : experience programming 2 : understanding physics _But most importantly..._ 3 : *talking fast like a rapper* (11:12)
@celicablues4 жыл бұрын
This makes me feel like I'll never be an even decent hobby programmer.
@TinyDeskEngineer4 жыл бұрын
The best I can do is make a barely functional pointless Python program every few years
@LordxGx073 жыл бұрын
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 :)
@leandrolopez76603 жыл бұрын
@@LordxGx07 this makes me remember how nice the internet can be sometimes thank u internet stranger, im inspired now:)
@Hyperlooper3 жыл бұрын
I don't think most programmers could do this without some research
@swiftydrifty27263 жыл бұрын
I can normally grasp a basic concept of how some code works, what this code is doing is beyond me.
@Ikebot4 жыл бұрын
7:41 Reminds me of my favorite programming trick, which is writing a function and forgetting to call it later
@user-dh8oi2mk4f3 жыл бұрын
Mine is creating a function, changing the name, then forgetting I changed the name and wasting 3 hours.
@tuluppampam3 жыл бұрын
I declare a function, make the function and then the program decides to not let me call the function Like 2/3 functions can't be called because the program doesn't like them, while the others have no problems
@C4rnee3 жыл бұрын
And then re-writing it only to end up with a worse function
@heinrichdertote1493 жыл бұрын
I call it before actually creating it or when it‘s just a construct which returns nothing.
@upscaledarchives98244 жыл бұрын
Wow I didnt know Star Citizen made so much progress! Jokes aside awesome work my man you always always shock me. Thank you for sharing your knowledge Cheers!
@SebastianLague4 жыл бұрын
Hey, thanks! Happy you like it :)
@mariocamspam724 жыл бұрын
Woah, you are first, great job!
@mewiproductions4 жыл бұрын
Sebastian Lague MAKE AN OCEAN
@mewiproductions4 жыл бұрын
Branko Fink With Sharks Whales Dolphins Turtles And Boid Fish
@mewiproductions4 жыл бұрын
Specifically Clownfish
@crypticsavage04563 жыл бұрын
The fact that he can make these things make sense is astounding
@graymanplays70964 жыл бұрын
At this point it's fair to say these are devlogs, not Coding Adventures.
@RialuCaos4 жыл бұрын
A bit of both, I'd say. Definitely far more experimental than most devlogs.
@ristopoho8244 жыл бұрын
Yea. Kind of. Feels like an adventure to watch. But oh man the depth he goes to
@Khyll1104 жыл бұрын
Both
@voidex1364 жыл бұрын
At the end of this series he would say: "And this is how i created the earth, the universe and you. You are just thouthands lines of code and living in my simulation, watching those videos right now".
@AppyTheApe4 жыл бұрын
Dammit I can't believe u just read my mind haha
@oliverer34 жыл бұрын
@@AppyTheApe The simulation probably doesn't have enough memory to give everyone unique thoughts or something
@AppyTheApe4 жыл бұрын
@@oliverer3 Or maybe I'm just glitching because of a bug in that simulation, I'm telling you that's very much possible.
@konstantintonkov14643 жыл бұрын
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.
@victorzahler61754 жыл бұрын
Me: uses a inverted sphere with a unlit transparent material for the sky Sebastian: makes a 20 minute long video explaining the shaders and scripts he wrote
@helltubejackie10864 жыл бұрын
Would a skybox work?
@Elyzeon.4 жыл бұрын
@@helltubejackie1086 if you want low quality shit then yes
@theaveragepro17494 жыл бұрын
@@helltubejackie1086 skybox is basically the inverted sphere but marginally better performance
@helltubejackie10864 жыл бұрын
@@theaveragepro1749 o
@viveknegi42434 жыл бұрын
Sebastian Lague is a 10th-dimensional being who designed our entire universe for a school project and is now role-playing as a human to give us a tease of the entire process. Erosions, ecosystems, oceans, and now the Universe. Thank you for this video!
@Hello-qg4yk4 жыл бұрын
That would explain everything! Especially why its free!
@ethannguyen27544 жыл бұрын
“Hey everyone, I’ve just been having fun being a literal deity making planets”
@danielbrazell4 жыл бұрын
*sees Sebastian has uploaded a new video* Me: "It's a good day."
@flyingsalmons9344 жыл бұрын
Yes
@EmeraldUrsaOfficial3 жыл бұрын
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.
@LordHonkInc4 жыл бұрын
"That sped things up immensely, with the minor tradeoff of completely ruining everything" is pretty much the slogan of every first optimization attempt ever xD Your dry sense of humour is such a joy to behold, please don't ever lose it!
@isodoublet4 жыл бұрын
Electromagnetic waves don't "undulate" through space like that. We say they're transverse waves because they are formed by electric and magnetic fields that point perpendicular to the direction of travel. The wave itself may have a volume, or it may be very narrow, depending on the light source, dispersion, that sort of thing. What's actually happening is that the air molecules are being polarized by the oscillating electric field of the light traveling through it, which makes them behave like tiny little antennae and reradiate. These molecules are like mass-spring systems; they have a natural frequency they "like" to oscillate at. This resonance frequency would be the frequency that would result in the most efficient scattering. Well, it turns out that for air this frequency is actually in the ultraviolet, which means the "higher frequency = more scattering" rule works, but only for visible light. If the sun output more energy in higher wavelengths, and your eyes were sensitive to those wavelengths, you might expect the sky would be purple.
@MCSteve_4 жыл бұрын
Well said. You can actually see that uv light is scattered more in practice if you use a uv camera. If you were able to see uv light, the world would be extremely misty and thick as the atmosphere is scattering the light a ton.
@akhilsubhash76444 жыл бұрын
earth is flat
@syfou7254 жыл бұрын
its hard to tell if @Sr-71 Blackbird is a troll. I hope so
@syfou7254 жыл бұрын
also, great explanation! Thank you!
@akhilsubhash76444 жыл бұрын
@@syfou725 dont worry i am a troll
@nomtijorti4 жыл бұрын
Whenever someone makes some asinine comment like "you don't need math to be a successful programmer". I just refer them to your videos.
@tomatoviking35384 жыл бұрын
Up next on coding adventures: Sebastian simulates the entire universe in real time. Jokes aside I love your videos!
@balticpagan14954 жыл бұрын
episode 100, how to code self avare life forms
@andrewsprojectsinnovations63524 жыл бұрын
This actually isn't completely unattainable. For a game, you wouldn't actually need to simulate the entire universe at the same time, just the region close enough that the player that they can meaningfully observe it. The rest can just be loaded/generated "on the fly" as needed, or unloaded to save space (pun intentional) if it is no longer inside this region. Methods like this are often used to enable games to have extremely large, and sometimes practically infinite, worlds (or universes in this case) that couldn't possibly fit in memory in their full forms; Minecraft is probably the most famous example. I've even seen Sebastian implement systems like this on other projects, so he could easily simulate an entire fictional universe.
@tomatoviking35384 жыл бұрын
@@andrewsprojectsinnovations6352 he dun been woooshed
@alx17934 жыл бұрын
@@andrewsprojectsinnovations6352 Yes you're right. The program SpaceEngine has already done something like this. (I'd suggest checking it out. The old versions are free I think or you can find some footage on yt.)
@KingBobXVI4 жыл бұрын
Nah, he never optimizes it - he'll just simulate the entire universe at 12fps :P
@piggy55644 жыл бұрын
My man is literally making Outer Wilds as a solo dev
@manuel81234 жыл бұрын
Ikr after watching the video I want to play Outer Wilds again
@lolmandos4 жыл бұрын
While also making a video series on it, and making it flawless while at it, because the rest wasn't enough.
@SoulSukkur4 жыл бұрын
procedural planets wouldn't work for Outer Wilds. this is like No Man's Wilds
@perfredelius80604 жыл бұрын
@@SoulSukkur I would guess that the Outer wilds planets are at least partially procedurally generated at some point and then they went in and modified them.
@SoulSukkur4 жыл бұрын
@@perfredelius8060 I watched the making of documentary from noclip and they didn't suggest anything like that. they discussed how they had to design Timber Hearth as layers of spheres, and then they had to overhaul that for the Ember Twin, which has more complex geometry. everything in that game was made deliberate. they talked about how annoying it was to make brittle hollow, which has the highest level of surface detail. they had to model each of the flat bits individually. Honestly, i don't see how there would be any design benefit to procedural generation. if you want to have a way to generate as many unique-but-similar moons as you want, then go ahead and make a random crater generator. but Outer Wilds only has 3 moons, and only one of those has craters. designing systems to procedurally generate things you'll only need once is so inefficient. just make a sphere and sculpt some dents into it. no math, no parameters, full artistic control.
@konrad85093 жыл бұрын
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.
@Matthew_Fog4 жыл бұрын
When the sun started to go away and we saw the stars, it made me say "WOOOW" really really! Congrats!!!
@АрсенийПлотников-к3д4 жыл бұрын
Bugs that i've found so far(in the demo): 1. Stars are visible through the ocean 2. Scattering doesn't apply on the ocean reflections/glares 3. The ocean reflections/glares are visible even when the sun is under the horizon
@MaskedRokho4 жыл бұрын
Put this in the itch page.
@artispeedy4 жыл бұрын
The oceans are almost definitely temporary.
@KittenRaee4 жыл бұрын
Oceans aren't really there. It's all just a shader based on planet's centre position. Sebastian would need to make them more of a "physical" in-game object over just a screen space shader
@CanyonWanderer2 жыл бұрын
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
@nathanpannell824 жыл бұрын
Your videos always amaze me! I love that you take a very physics based approach to most of these coding adventures, and the end result is beautiful!
@SebastianLague4 жыл бұрын
Happy you liked it, thanks!
@ultimaxkom87284 жыл бұрын
@@SebastianLague Please keep up the quality, man. I'd ask for that request, and also thanking you for your efforts. *Note:* I'd like to resend similar messages again in the future videos.
@patrickperkins11894 жыл бұрын
I love that you include the parts where you mess up. The mistakes are often my favorite part
@lloydwalls3 жыл бұрын
These video's are about what he want's to explore, things he wants to try. I have tried doing similar things on a smaller scale and honestly the biggest joy in some ways is when it doesn't go right. It's easy for someone with more experience to produce a "perfect" video that doesn't show the mistakes or his frustration. By showing you all that he is first saying that you probably will never write perfect code first time, but, also that mistakes happen even when you have more experience
@uklcourses96363 жыл бұрын
I reaaaally like the transition from the black space sky to the atmosphere. So natural.
@nationalsarcasticsociety13124 жыл бұрын
In five years he's gonna make a video like "I was messing around with variables to make self-aware AI creatures."
@Hendiadyoin14 жыл бұрын
Next time: adding erosion and clouds back in!
@benebene95254 жыл бұрын
Please!!!! That would be insane!
@kallehalvarsson58084 жыл бұрын
It would be really hard though... erosion is a static effect and requires you to store all the procedural data somewhere, and raymarched clouds are extremely computationally expensive.
@HeathClose4 жыл бұрын
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...
@enelition53224 жыл бұрын
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.
@dbhlnn4 жыл бұрын
"I've long since lost any faith in the code I write" same, man. same.
@absence94434 жыл бұрын
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
@Molenkof4 жыл бұрын
There I was clicking around browsing C# tutorials thinking..."I wonder when's Sebastian dropping the next coding adventure?" . Then lo and behold...
@YouReyKarr4 жыл бұрын
The way he acts like he's just a normal programmer makes me regret my pay cheques...
@elythas1284 жыл бұрын
People have already done these things.. he learns from those people.. Pretty sure programmers do very complicated things like this. I am not saying it isn't amazing but he isn't the one to come up with everything, he learns it from other sources too.
@YouReyKarr4 жыл бұрын
@@elythas128 I am a professional developer. Very few devs have the ability to not only abstract the maths problems this well, but to also explain it so concisely... And I work with an ex-maths teacher now programmer...
@YouReyKarr4 жыл бұрын
@@elythas128 That has nothing to do with my comment though?
@YouReyKarr4 жыл бұрын
@@elythas128 See you've already demonstrated my point... You couldn't even decipher a 15 word KZbin comment, let alone a university paper
@elythas1284 жыл бұрын
@@YouReyKarr Yeah sorry I responded to the wrong comment, well no, it was more confusing, I responded twice, you responded to my response, but I thought the original comment was another one, sorry for the misunderstanding. Also I am not sure why would you degrade me when I did not attack you in any way, sorry if it seemed so. (And no, I don't think I could decipher a university paper, not without prior knowledge.
@TheGameChangerLord Жыл бұрын
the transition at 0:26 to 0:28 was phenomenal
@feha924 жыл бұрын
10:10 The usage of length there feels like something that could actually get a rather sizeable performance gain from using length2 instead to avoid the sqrt (with the following division obviously using the pow2 (or rather x*x) as well to compensate), as I have a feeling this method might be called _quite_ often every frame.. (once, per every scatter point, per pixel, per frame, for just that direct call. Then opticalDepth further nests yet another loop :p Though this latter part is thankfully avoided with the optimization introduced later on). *_Edit:_*_ So apparently the gain of avoiding sqrt is not that significant on modern gpu's, costing effectively only 1 cycle on average. kudos to a reply for informing me :)_ 13:25 I am always amazed at how much effort you seem to go through in making tools to help explain stuff, liek that interactive slider. Granted, I don't know if it is an actual tool you screen-captured, or just vfx animated and added in post, still, it seems quite high-effort to me either way. A few I am sure are actual tools (like the sliders for clouds or in this video, for sun position and shader values). The animated graphs (ie. 14:40) are likewise appreciated things that seem quite high-effort for no other reason than to help explain in the video. 15:40 looks nice! Though I am unsure if the red parts near surface makes sense here :p The sun is as far as I can tell somewhat perpendicular to the direction you look at the planet, so it is not like how a sunset is red, exactly. The light at those positions _does_ travel further, so it is not entirely odd and might just be that the intense scatteringStrength is what creates a result different from what I would expect. But I would expect blue anyway... Or maybe my estimation of the angle is just off (nevermind that, later we see the red bands even with the sun behind us. This _definitely_ feels somewhat wrong, if a bit like cooler-than-life "its a feature not a bug" territory). 18:00 the celestial ball with the stars painted on it (that takes the place of a skybox) is honestly quite good looking, which is amazing me when I consider its simplicity. I particularly like how it essentially is a literal take on some old myths/beliefs :D It will obviously have issues when you have more than one planet (unless _extremely_ large radius and centered on the sun - or player - instead of planet, which feels like a recipe to invite floating-point errors), or allow the player to fly around and through it. As for further reading, I am sure you have already looked at this, but I know there are some mods for KSP specifically to improve the scattering. Dunno how much papers/guides there are to read, but fairly sure there is source-code (for unity no-less!) if you are interested. That said, I only know of the mods existence, can't vouch for their quality :p
@theaveragepro17494 жыл бұрын
unity's HDRP has a built in realistic atmosphere system which i think has pretty good performance, though i have no idea how it works
@jonbennettart4 жыл бұрын
What an amazing comment.
@oblivion_28524 жыл бұрын
I tend to keep all my calculations as r^2 unless I'm drawing the object. Most force calculations and distance calculations use r^2 so its handy to avoid pow and sqrt
@feha924 жыл бұрын
I looked up what hlsl uses for length2/lengthSqr, seems there is no such alias, and you are expected to use dot instead (`dot(v,v) = |v|^2`). @@oblivion_2852 Exactly, and the few pow/multiplications you need to do (like on planets radii so you can compare it to the r^2 values) only has to be done once and can be stored as a field alongside the regular values. @JoonBoon thanks? :)
@d4rkpl4y3r_vr4 жыл бұрын
sqrt is actually really fast on gpus. On nvidia hardware it is implemented as rcp(rsqrt()) wich are both native instructions on the SFU. While SFU instructions are only quarter throughput they do not block the regular fpu instructions and as such cost you effectively only 1 cycle on average. AMD has an equivalent to the SFU since RDNA too.
@otmanemj74534 жыл бұрын
was thinking about the series just yesterday , happy to see another video keep it going man we love it
@pixelpunchyt3 жыл бұрын
this legit makes me want to jump back into game development
@hristolilov50403 жыл бұрын
This legit made me install unity again. Thanks i guess...
@WaseemYusuf4 жыл бұрын
that feel when you accidentally discover God's secret KZbin channel detailing how he made everything
@imgeorgeofficial4 жыл бұрын
Went into this thinking it would be about setting a mood or a tone. Got a whole lecture about the scientific atmosphere of celestial bodies instead. That was amazing!
@minorseven8134 Жыл бұрын
"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)
@masternerd644 жыл бұрын
and just like that you disproved flat earthers totally by accident
@kushagra644 жыл бұрын
Fun fact: those planets were once a untextured coloured sphere.
@SimplePhysics004 жыл бұрын
before that they were cubes!
@MrWide-ht9rp4 жыл бұрын
Alex A wait seriously??! No way!
@espera_21924 жыл бұрын
So much Potential in the Blender default cube
@czechslovakian4 жыл бұрын
16:01 You literally re-made the atmosphere of Eve from KSP and I love you for that.
@majesticeagle54614 жыл бұрын
Its not inspired by ksp at all
@czechslovakian4 жыл бұрын
@@majesticeagle5461 I know, it just really looks like it.
@Trtko-y2p3 жыл бұрын
češkoslovák
@-vanitas52294 жыл бұрын
I watch this video once a day because I can't wait for the next episode.
@mahmouda.khalifa4 жыл бұрын
Same bro
@thundrhawk4 жыл бұрын
This is so cool. I don't remember how I found your channel, but I'm so glad I did. I've been trying to learn to do this stuff in UE4, and your videos and source, although in a different language, have been incredibly informative.
@UltimateDuck973 жыл бұрын
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.
@JelleWolbers4 жыл бұрын
Great job again, Sebastian!
@SebastianLague4 жыл бұрын
Thank you :)
@cullenmitchell91653 жыл бұрын
You’re a baby god, learning how to make a universe.
@snekrowave3 жыл бұрын
The progression of events at 17:17 was far too real for me. Thanks for the fantastic video!
@lightning_112 жыл бұрын
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.
@yourladbrennen31303 жыл бұрын
Me: tries to run anything that actually looks this good My Computer: Do you want to explode?
@jakeshar38593 жыл бұрын
I hope your coding makes its way into vr gaming, simulation of real life physics is super potent there! Keep being an awesome creative!
@rufarokembo4 жыл бұрын
Mans is really in a lague of his own
@legojoshua12184 жыл бұрын
I swear, this is like the infinity war series, it’s the culmination of all the previous projects into one, will you use boids for fish again?
@thedude40394 жыл бұрын
Maybe in the end, the power will go out while he is saving. That way he fails and we can then have endgame, where he combines EEEEEEEEEEVVVRRRRRYYYYYTHIIIIIIIINNGG.
@TheAechBomb4 жыл бұрын
the boids were awesome
@Atomizer744 жыл бұрын
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.
@mrlinkfreak49824 жыл бұрын
Nice 22 minute video, can watch this video every loop
@MrPink-xv5el4 жыл бұрын
11:06 W-what are you d-doing, Stepsize?"
@VulpeculaJoy4 жыл бұрын
T-taking a density sample of your optical depth.
@snwdn3 жыл бұрын
Nothing terribly interesting.
@delofon3 жыл бұрын
That's disgusting. I love it.
@UnofficialCyane3 жыл бұрын
It had to be done
@WD12712 жыл бұрын
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.
@gamedevgoose98874 жыл бұрын
If life is a simulation...Sebastian def coded it :D Seriously dude you’re procedural stuff is quite literally, other worldly. The fact that u use reality as a guide for your algorithms (ex. The clouds) is just absurd. Most people would just “fake it” for a less accurate result so seriously props to u :)
@kurtisknodel4 жыл бұрын
Sebastian Lague: Doing in a few months what Star Citizen couldn't do in ten years. Congrats Sebastian, this stuff looks amazing :)