I Made A Fully Ray Traced Game
ฝัง
- เผยแพร่เมื่อ 19 เม.ย. 2024
- To try everything Brilliant has to offer for free for a full 30 days, visit brilliant.org/Acerola/ you’ll also get 20% off an annual premium subscription! #ad
Acerola Jam has ended and I was actually participating the whole time! I made a fully ray traced solitary confinement simulator with a realistic sun cycle driven by real world time. I made everything from the shaders to the materials to the music. The only thing I didn't make is the skyboxes.
Buy a poster!! acerola.gg/
Check out the top 10 and honorable mentions here:
• Acerola Jam
Check out all the submissions here:
itch.io/jam/acerola-jam-0/ent...
Play Philokalia: itch.io/jam/acerola-jam-0/rat...
Support me on Patreon!
/ acerola_t
Socials:
Twitter: / acerola_t
Twitch: / acerola_t
Discord: / discord
Github: github.com/GarrettGunnell/
topics covered: how ray tracing works, ray geometry intersection functions, basic music theory, calculating the position of the sun
References:
web.archive.org/web/202309290...
www.sciencedirect.com/science...
Music:
Afternoon Break - Persona 3 OST
In A Moment's Time - Skullgirls OST
Junes Theme - Persona 4 OST
Judgement - Sonny Boy OST
This Mysterious Feeling - Persona 3 Reload OST
Fearful Experience - Persona 3 OST
During The Test - Persona 3 OST
Midori Eyes - Paradise Killer OST
Police Station - Persona OST
With Renewed Hope, We Continue Forward - VA-11 Hall-A OST
Layer Cake - Persona 5 OST
Every Day Is Night - VA-11 Hall-A OST
A New Frontier - VA-11 Hall-A OST
Aria Of The Soul - Persona 3 OST
Sandgem Town - Pokemon Diamond OST
Like A Dream Come True - Persona 4 OST
Thanks for watching!
This video is dedicated to my friend, Alotryx.
#acerola #gamedev #unity3d #graphics #shaders - วิทยาศาสตร์และเทคโนโลยี
To try everything Brilliant has to offer for free for a full 30 days, visit brilliant.org/Acerola/ you’ll also get 20% off an annual premium subscription! #ad
why did you not talk about the games in the jam tho? i'm assuming that video is still in the works?
@@oowaz I had barely enough time to finish all of this for today so I ended up not having time to write and edit a section on the games for this video, and I think the 4 hour stream they got was going to be plenty of talking about it. You can see the vod, trailers of the top 10 games, and community favorites in the acerola jam playlist on the channel page.
@@Acerola_t oh, i'll check it out, thanks!
i will buy it
You broke my zoomer brain into watching an add by adding your cat with Persona 4 song alongside it Σ :3
Fun game from Acerola would be a real subversion of expectations
Nah, the real subversion to the expectations were the friends that we made along the way
@@MrTda23rd6Don't you mean the friends we made along the ray?
I think he was trying to make sure not to win, while still making something interesting
Why would you burn our boy like that?
@@lawamoli underrated comment
The real abberation here is all the work put into the ray tracer, only to use a point light for 90% of the room.
maybe the real abberation is the friends we made along the way
yeah but imagine how much better it'll look when the path tracer vid comes out
@@Acerola_t WHEN!!
@@Acerola_t well now i'm looking forward to that
@@Acerola_t path tracing in real time?
Man, I love the solar azimuth formula that renders circumstantial treatment unnecessary without compromising mathematical rigor: mathematical setup, application, and extension of a formula based on the subsolar point and atan2 function
All my homies love the solar azimuth formula that renders circumstantial treatment unnecessary without compromising mathematical rigor: mathematical setup, application, and extension of a formula based on the subsolar point and atan2 function
you know whats crazy is that i was reading the comments while listening and he started saying this like right as I started reading this comment, it lined up perfectly
@@puddle.studiosits crazy how often stuff like this happens to me on here
The solar azimuth formula that renders circumstantial treatment unnecessary without compromising mathematical rigor: mathematical setup, application, and extension of a formula based on the subsolar point and atan2 function got me through some dark points in my life. 10/10 would recommend
Acerola is truly in his SAFTRCTUWCMRMSAAEOAFBOTSPAAF era
"game where you play as a roomba" would make a great idle game. Let me buy upgrades for my roomba. Put my roomba through progressively more dire circumstances.
Check out Leaf Blower Idle
sounds like leaf blower revolution lol
i love this idea
And make it scream like Michael Reeves did.
"you collected 500 pounds of dirt, level up!"
It was fun solving the puzzle. I actually live in Toronto, Ontario and have never been to Oregon!
you should've lied it would be funnier
@@Acerola_t based
not a musician but i'm glad you went into the music composition process, something that's often overlooked in game dev. also, nice succession theme rendition :D
I really liked the music theory presented the Acerola way 😄
thank you!
@@Acerola_t im a huge music theory nerd and i absolutely love your videos, i'd absolutely love if you made more music theory videos! possibly on a second channel if you're worried about losing views or something. the way you present information is amazing and if that was combined with more music theory stuff i'd die instantaneously /pos
@@tea-ultraviolet i will never get used to the fact that /pos means positive. idk who thought that was a good idea
@@tea-ultraviolet once I learn more I will for sure, this vid covered pretty much all I know atm lmao
100% I started playing a bit of guitar, learning only tabs, and occasionally dipping my toes into theory. Despite going into this video exclusively for classic Acerola wizardry, I was super invested on the music theory section.
i love that vertical look isn't clamped, so you can roll your head completely upside down
"im going out on my own terms!" *snaps neck*
Gimbal lock incoming xD
Oh boy I wonder how he got the indirect lighting to look so nice.
Acerola: "I just put a point light in the room to fake it"
MOTHERFU-
Oh, I thought you'd add Rayleigh refraction for accurate sunsets/sunrises
it's a game jam give me a break ok
@@Acerola_t i thought you did a rayleigh scattering shader already
@@chickennugget481 that was a really different context, Rayleigh is used in many contexts and an atmospheric scattering shader will work a bit diff from a smoke grenade voxel scattering shader, structurally speaking
now thats what you call "Ray Tracing"
fairly certain the unity skybox also just does a very basic sunset situation
I had a great time, and really appreciated everyone's response to my game. It was my first time making an actual game, after spending years of making music and non-interactive video art using code.
17:44 oregon jumpscare
Should've added 24 realistic rain to the game, would've made it more immersive. Or I guess in Bend it's either 110 or a snowstorm
@@James-vw9yy fetch weather data from the national weather service & simulate that in-game
@@1e1001 While you're at it. May as well add realistic particle simulation for the clouds, and add interference with the light rays. If it is only one room, the goal should be to make the framerate ONLY barely functional.
Woh-o-o-o Ah~
Woh-o-o-o Ah~
Oregon Jumpscare!
Oregon Jumpscare.
I did not expect a picture so close to me
You might like the game Menagerie II: Presentable Liberty, it does pretty much what you described with the single room and a door that gets you various items
there truly are no unique ideas i rly thought i had something here
Rip wertpol
Yeah, it's hard to find a truly unique idea.
But it's much easier (but still HARD) to pull one of those niche concepts into the mainstream.
What works, and what doesn't isn't just a matter of concept. A well refined niche idea might just be the next hit... spawning dozens of clones etc.
Throwing "dumb" ideas at the wall till something sticks for whatever reason is the origin of plenty of mainstay series/ genres.
blast from the past! I remember when that was the indie game du jour on youtube....
I love this game and it's prequel, broke my heart when Wertpol passed...
that cat during the sponsored part is just genius
Fr, it was the only reason I watched the whole part.
So far, it's worked on me every time, I'm surprised I've never seen it before.
Dude, I skipped your videos for a few monts and damn, I see huge progress from working out, keep it up!
to be fair i havent put my face in the past few months of videos lol, thanks!
Substance Painter really isn't the tool you want. Painter is mainly for texturing of complex objects to have worn edges etc.
If you want to create materials then Substance Designer is the go to tool.
17:15 been writing a meteorological program recently and I'm in the opposite boat with research. I good simple titles like "Test of helicity as a tornado forecast parameter" by one of the most prominent supercell researchers literally named Davies-Jones but I can only find these papers being referenced in other papers and I cannot find them on the website of the publisher or even places like sci-hub
I gave this a fair shot.. indeed, impossible to find without an account of some sort. Really nice that public research from 1990 is still pay-walled...
I would just email the man directly, I'm sure he'll be happy to hear how his research will be applied. People usually share their articles for free if you just ask them.
@@leeroyjenkins0 Hey, at least the authors are getting paid, right? 🙃
@@c0d3r1f1c at least the authors are making 5% from the sales, which is still more than 0 if you think about it!
I hate paywalled research x.x
@@c0d3r1f1c No, publishers pay them peanuts.
Hey man, I have a nice resource for you! Try research rabbit! It's a tool to graphically explore networks of citations, makes combing through stuff a lot easier. G'luck!
Just a note for the music; the F# is actually present as the second harmonic of the B already (if you play just a B on a piano, you can actually hear an F# ringing pretty strongly). So the resolution ends up being more a balance change than a resolution. But a cool idea!
i Can not believe that this game dev youtuber has explained Music theory better than like, ANY tutorial ive watched. YOU ARE INSANE! Amazing work.
Omg i'd give up so much for an full on Acerolla music theory tutorial. I wanted to get into music making, but all the tutorials i've been coming across are kinda hard to comprehend imo. Your teaching style would be perfet, and i imagine i'd finally be able to understand everything
You really don’t need music theory to start, absorbing what you can and learning as you go is a good idea :)
If what you make sounds good without music theory, it can’t sound worse with music theory (unless you get too caught up in rigid theory)
My recommendation would be to pick up composition software or a DAW and just start creating, it’s fun and it’s a good start :D
@@HA11EYS_COM3T Thanks for the encouragement! But I've already been doing that for a year or so, and I find it really difficult to do make music without any knowledge. I plainly don't know where to start, what kinda notes should I play and when. So most of my tracks were really frustrating to make, since I just put stuff semi-randomly until it sounds good, which takes a while, and it usually doesn't even sound all that good. I've picked up a class yesterday tho, and it's already helping me a ton!
This is so cool, I loved the music theory section. Your piano skills are seriously impressive too
New Acerola upload, I am now in joy
I really wanted to participate in the game jam, but I've been overburdened with uni and work. Congratulations to the winner!
You should've made a console to be able to mess around with all the features you've made! Ex. Control over the timezone used, visible light paths and stuff like that. It would also explain why this project is so unique.
yeah, kinda goes against the intended experience though and I unfortunately am pretentious enough to care
I'll be sure to participate in the next one, it was really cool seeing people step out of their comfort zone
"layering a bunch of noise functions"
music is layer cake
acerola, you've done it again
I wanna make clear that in the industry the soft to create materials is Substance Designer . Évent if it possible to make them in Painter, Painter is more used for baked textured object .
Super video tho 👍
As a nerd programmer, you would likely have more fun with adobe substance designer than painter
I played The Coffin of Andy and Leyley for the first time earlier today. I eventually managed to get that... experience?... out of my brain for a few hours, but upon watching this video and hearing the kind of game you made, suddenly it's all rushing back. I blame the Baader-Meinhof phenomenon.
actually playing as a roomba looks fun
In college I had a project where we built little robot cars that drove themselves around avoiding obstacles using three IR distance sensors, not too different to how a Roomba works, minus the front bumper.
I'm imagining a game where you have to navigate a 3d space, you don't have a 3d view, your only visual is three dots on the screen, shaded to represent the distance to the nearest point directly in front of you, and two offset by a 30 degree angle on either side. Maybe another visual element could be a top down map of your path showing where you've been already so you can double back or predict where things might be in the room.
Now I actually kind of want to make this, lol.
Take it into space, and you'd be one step away from Viscera Cleanup Detail.
babe wake up acerola did something really impressive again
Checking on Acerola every so often to see what Monogatari easter eggs have been snuck in this time.
This is the type of content that makes me just want to sit down and MAKE shit, I love it so much, posters are rad too
You are an absolute genius… mixing a sponsor spot with unskippable cat footage is next level stuff.
nah ok but that is actually a super cool concept i love it. speedruns gonna go crazy on this one.
That was a really good explanation of the music process. Your extremely talented and really good at teaching.
I love how suddenly in depth the explanation goes for every piece of the game.
"What's the rendering equation? ...I don't know" got me lol
For anybody who's wondering, it's the formal mathematical way of saying "for our particular viewing angle of a particular surface point, add up all light which comes into the surface from any direction and happens to bounce towards our viewing angle".
That sum of light is written as an integral, because integrals are how you sum an infinite number of infinitely small things. In practice, integrals are usually approximated by summing a *finite* number of chunky things. You may remember from high-school calc, approximating the area under a curve by splitting it into rectangles and summing the rectangles' area together. Similarly, in a ray-tracer we trace a very limited number of incoming light rays, and assume each one covers a fairly broad cone of incoming light directions hitting a broad patch of surface. You get better approximations, a.k.a. more realistic graphics, if you increase the number of rays and decrease the effective size of each one (or decreasing the size of the surface patch, by increasing resolution), so that you're not glossing over so much detail. The integral is defined as the limit as they become infinitely thin, and infinitely numerous, impacting an infinitely small surface.
The inside of the integral, describing the amount of light coming in from a particular direction and then bouncing into your eye, depends on a number of factors. Each of them is pretty intuitive once you understand it (for example, one term is the dot product of the incoming direction with the surface normal, because less incoming light is able to hit a surface area if that area is rotated to be thinner from the light's POV).
Even for 5 months, that piano progression is pretty amazing
It's kinda surreal seeing you cover music theory, something I'm passionate about. Very well explained! As for my favorite chord, it's Fadd9 ^w^
Been loving your content! I'm not great at math, much less computer graphics, but you make your content very entertaining and pretty easy to follow! Keep it up! Might join your game jam next year :D
Another banger as always. I'm currently trying to build my ray tracer from scratch, so this is a huge inspiration.
I just wanted to say your skill at explaining very dense concepts very quickly is really incredible :)
Almost 1000 games is huge!
this video was great again, love your videos, learned so many things and was entertained.
thanks for the music lecture. also cool idea for the music in game!
your content is literal gold and to be honest i really appreciate all your effort
keep it up
the music playing in the background of the music theory section only serves to add to the existential dread of the game. Genius
This is such an amazing channel, man. I can't get enough, lol.
But Acerolaaaa... Your music theory section is the most informative and understandable music theory video i've seen on youtube ever and i want you to make more!!
Already excited for Jam 0.1!
I really appreciate you putting that cat video side by side with the ad.
That piano section was actually insane. Also love the tanaka's amazing commodities reference at the end
Hey just wanted to say that your content is awesome, keep up the great work :)
it's impressive how simple your music theory explanations are
Very nice. The music portion I found very captivating, first with the implementation of events happening on minutes and hours, but also for the explanation of chords that's the clearest I've ever heard as a non-musician.
Somehow this demo reminds me of the "The Room" prototype by Peter Molyneux back in 2005... the aspect of time was quite important in that game and you could wind or rewind the wall clock to make the hours pass and the days go by, and the light reacted accordingly.
Yoooo I just started watching Succession, and your performance freaked me tf out. This rocks, thanks dude!
i can't believe you tried to distract me from your ad by putting a video of your adorable cat next to it, and baited me to watch it by introducing it in the scene right before. How devilish! You almost got me! I know all about Brilliant now!
music is good when it has a purpose and you definitely did that. i loved it
This is the only youtube channel where i would never skip the ad part, godspeed you absolute chunky fluff, it's an infinite source of entertainment.
Tbh I wouldn't call this a "fully raytraced game". It doesn't feature reflections, global illumination, or shadows with variable penumbra.
it is literally the ray tracing algorithm. I demonstrated reflections they just weren't utilized and i explained that global illumination and soft shadowing is a feature of path tracing an extension of simpler ray tracing. So just cause you wouldn't call it that, doesn't mean you're right lol
This video will be a goldmine for future BUAS students. Jacco will be proud.
🎉 ANOTHER banger, Acerola!
Aceswola - mans been working out! amazing video as per usual ace :)
Its substance designer, painter is for painting materials, usually made in designer on models.
Love your vids man. Only suggestion would be to feature the game footage more. You spent a long time building up and then the game shown was about 2 seconds. It would be a bit more satisfying to see a bit more exploration.
Nice amazing commodities segway. Grats again on the jam completion, you did a great job and a lot of the entries were awesome!
Since we're on the topic of ray-tracing, have you heard of the game Mirror Drop? It was made when ray-tracing usage in games was just starting to take off and uses ray-tracing to create seemingly infinite repetitions, perfect reflections, and non-Euclidean geometry
You should make more music theory stuff, it's actually so simple and easy to comprehend when you present it...
6:12 that's why I say that in videogames its the eye that emits light, and the lamp sinks light.
that game jam was real good
Thanks for the music theory and cat footage
Wow, I've been learning piano for a year (first instrument!) and I'm so amazed by your progress! I have a lot of practice to do it seems 😅
if u don't know that song plays Acerola on 20:11
it's succession theme song
played so poorly it doesnt get content id'd B)
Oh my god thank you. I was like pulling my hair out trying to figure where I heard it and why it felt so familiar.
Computer Science is amazing man 🔥 great work 🙏🏼
The music theory really made me want to see you tackle sound ray tracing
Every frame is an aberration, because it may never be rendered again. I love it.
How did you slide in the best music theory explanation I've ever seen in the middle of this video broski
Damn, gives me the biggest flashback on that sun position calculation for an essay on solar panel effectiveness.
thanks for explaining the music part, i'm completely musically incompertent but you managed to make it kind of click
I really think you should continue the game idea and add the out of scope parts. Sounds like a good experience that would make a great content game.
The overall concept of your game (especially the randomized death date) reminds me of an old art game called The Graveyard by Tale of Tales. In it you play as an old woman visiting a graveyard, sitting down, thinking about things for a while, and then leaving. You can repeat this as many times as you want. In the paid version, she may randomly die during a visit. I seem to remember that if you try to start the game up after the old woman dies she won't be there for future visits, but I can't confirm that.
You gotta make it path traced now tho ;)
(I would love to watch the 2hr+ video detailing the adventure)
Awesome stuff! Now that you have this + your scene voxelization from the CS2 smoke... have you considered how you might do a voxelized GI solution? Cone tracing? Seems like you are on the cusp of having a nice little GI solution for your games.
You could teleport the point light to the position where the sun hits the wall each frame. Not expensive at all and would look much more convincing
The Mathematical Labyrinth:
The game starts on a hexagon grid with numbers listed in random locations, these represent the ingress & egress points to the Labyrinth. The number of access points is determined by rolling a D20 while the location is determined by rolling D10s across the table (rolling a 10 acts as 10 and 0). You have a running equation total that begins as the number listed at your chosen entry location and will adjust based on the mathematical equation you used to construct your path.
The goal is to travel from one access point to at least one of the other access points, wherein you then choose to exit or continue for more loot either at the same or a different access location. Upon finishing your score is calculated by counting the number of rooms entered while walking through the Labyrinth, with bonus points awarded for loot found, and a multiplier for style (loops) generated in the process. At any point you can pass through already explored rooms using no additional spell points, only movement points, however you cannot enter a room again unless your equation total matches the existing number.
You cannot choose to continue through the Labyrinth if your equation total does not match the number listed as the access point and must exit. If it does match you can choose to re-enter the Labyrinth, and if you then die your score will be reduced to the minimum number of rooms necessary to get from entry to exit plus points for loot dropped outside. Re-entry to the Labyrinth costs D20 movement points. No points are awarded if you have not found at least one other Access Point before the Labyrinth collapses.
The Labyrinth has a hidden number of points that can be utilized before it will collapse and kill you. Each mathematical equation costs spell points to cast, and movement costs are calculated separately. There is no warning for the collapse, but before reaching your first exit you can divide by zero to retreat through the Labyrinth, which will provide you with half of your score without points for loot, assuming you can make your way back before the Labyrinth collapses around you.
1-4, 5, 6-9 correspond to the direction you move each turn with 1-3 moving to the SW S SE, 7-9 moving to the NW N NE, 4 moving W, and 6 moving E. 5 allows you to move in any of the chosen directions for 2x the spell points for the equation. Loops can only be created by entering a room with a current equation total being equal to the number already listed therein.
21:40 this being the main notes of the DDLC Sayo-nara OST made me pause, I never realized it's just a C major, A minor arp.
Never thought I'd learn ray tracing and music theory from the same 25 minute video. Graphics programming enthusiast & musician here.
OMG the cat video during the add was a brlliant move. Love that kitty
I've seen the equation of time in a spreadsheet published by NOAA. I used it to build a clock that always shows 6AM at sunrise and 6PM at sunset.
Now I kind of want to see a game with full path tracing, but where light applies after movement, so you can move your mouse around but everything will be very blurry and then when you stop moving it starts rendering more and more (like how Blender gets all pixelated for large scenes)
okay hear me out, for the next game jam, make a game, that's just a cube, except everything is hyper realistic, so the cube is made up of a bunch of atoms, each atom is calculated, and you also calculate the light how light works irl instead of the less intensive version, and as a bonus maybe calculate every other law of physics as well to perfect precision, even if it's something scientists haven't discovered yet, just figure it out
Honestly I think this is really cool, all it needs now is a 40 min Jacob geller video to go alongside it.
I just love the screenshoted red-ish arrow ↗
You're ridiculously talented at the difficult aspects of game development. I hope we get to see unique game builds from you in the near future. I've been dying to see new focused game projects that utilize PS1-PS2 era designs, art style, etc. ~Even tho Tech has advanced, I wish game companies would alter their approach to gaming. Bring back previous gen games, but they are made in our modern day. Game projects like that will cost less $, take less time to build. We drastically need Additional selection to our game library. We need games that harness art design. Designs that have proven to be timeless. Cell shaded, low poly effects, pre rendered backgrounds, 2D, 2.5D, creative 3D that's not trying to be hyper realistic. Inspiration from previous gens shouldn't stop, just because new consoles have come out. Timeless games don't need hyper realistic graphics. Some of the best games have unique art styles such as Sly Cooper. Anytime i say this someone in the comments always says: "well we have indie games" but that's not my point. I wish the gaming industry would recalibrate their focus & start making games for consoles with all sorts of styles & designs. Just look at current Gen consoles Game Library's? It's NOTHING compared to the N64, PS1, Xbox, GameCube, dreamcast, 360, PS2, Sega Saturn, classic PC games, etc. Life would be amazing If game companies will start making games that are inspired by these previous gen designs. We shouldn't leave those unique aspects of gaming in the past. Hopefully the struggles of the modern triple AAA games will organically transition the gaming industry back towards a better direction. It's exhausting how long it's taking for most games to be made. Just for a lot of those games to end up being total let down projects anyways. It's crazy. Idk how these game companies have been able to keep getting away with this BS. It's devs like you that show real potential and passion in the gaming world
~1000 games is impressive! Your audience is not just huge, but very engaged!
this thing with the cat in the sponsorship just made me laugh like insane)
did not expect to understand suspended chords from a gamedev video, thank you
18:07 its actually +8 hours - 1 hour for DST. This is because the west coast, PST, is UTC -8. Then PDT, which is PST during daylight savings, is UTC -7. Some cool places like Arizona just don't observe DST at all, and Arizona has its own special timezone that is always UTC -7 (MST). hopefully some day in the future the whole world will drop DST and all time zones and everyone will just use Zulu time. everything runs on UTC on the backend already.
Love the Va-11 Hall-a music 👌
Ah, my favourite 3d modelling trope. Room lit by a sunbeam manages to still be incredibly dark
Omg you just became my hero with that Succession sound track
i've been procrastinating watching the last season for over a year oops