RL Hugh
RL Hugh
  • 60
  • 98 777
Font rendering in 3 minutes! [v2]
How do fonts work? Why don't fonts pixelate when we zoom in?
Inspired by Sebastian Lague's video at ua-cam.com/video/SO83KQuuZvg/v-deo.htmlsi=ryeOlAEtpIftKtyD
This video is version 2:
- fixed pronunciation of 'glyph'
- centered the letters, and added a border
Переглядів: 2 291

Відео

The algo behind Minecraft procedural maps!
Переглядів 372Місяць тому
We build up Perlin Noise from nothing! This video was made using Python NumPy. If you're interested in knowing how I used NumPy to render this, let me know in the comments. Happy to make a video about it :) #graphics #proceduralnoise #perlinnoise #python #numpy
Font rendering in 3 minutes! [v1]
Переглядів 2,5 тис.Місяць тому
How do fonts work? Why don't fonts pixelate when we zoom in? Inspired by Sebastian Lague's video at ua-cam.com/video/SO83KQuuZvg/v-deo.htmlsi=ryeOlAEtpIftKtyD There is a newer version of this video at ua-cam.com/video/eStB3qgWo1g/v-deo.html&ab_channel=RLHugh
Quest to put a (simulated) chicken leg on Venus part 1
Переглядів 3915 місяців тому
Experience life vicariously through a chicken leg. Travel to forbidden places. See examples of Eulerian simulation, SPH, physical particles, and FLIP simulations. Videos referenced in this video: - “What If You Spent 5 seconds on Venus?” - What If ua-cam.com/video/MYyXULpYubo/v-deo.htmlsi=VfLP1rpJhBcEwcg2 - “Fry Fidelity: The Science Of Fried Chicken” - ChefSteps ua-cam.com/video/wXsgWJmgb0Q/v-...
Real-time Eulerian fluid simulation on a Macbook Air, using GPU shaders
Переглядів 46 тис.5 місяців тому
In order to implement fluid simulation we need to implement conservation of mass, incompressibility, and conservation of momentum. How to do this, using Eulerian cell representation, on GPU shaders?
Things you do NOT want to hear.
Переглядів 219Рік тому
- will AI take our jobs? - what can we do about it? - what will I do about it?
Does GPT4 have good taste?
Переглядів 275Рік тому
Can GPT-4 be trusted to evaluate UA-cam scripts? I get GPT4 to evaluate youtube video transcripts for: - humor - hook - informative - entertaining - engaging I use the following videos to see how GPT4 performs on this task: - “How to Vlog & Tell a Story For Beginners From Start To Finish”, by Jevin Tovy ua-cam.com/video/koYib7-6b7w/v-deo.html - “How Geometry Dash Teaches its Mechanics”, by GD C...
2 Create Unity RL env WITHOUT mlagents! [v2, no music; shorter transitions]
Переглядів 744Рік тому
Control Unity from Python using Peaceful Pie. Peaceful Pie is an opensource json rpc network between Unity and Python. Use for reinforcement learning and more! In this video we create a reinforcement learning environment in Unity, that we can control from Python. In the next video we will add an RL engine on the Python side, to make this learn! Peaceful Pie library is here: github.com/hughperki...
Can I get GPT-4 to talk about sensitive topics?
Переглядів 43Рік тому
OpenAI GPT-4 has read much of the Internet, and knows more than pretty much every human alive. What does it predict will happen in the future? GPT4 is the latest public large language model (LLM) from OpenAI. It is now available to run in the Playground. It's also similar to the engine behind Bing Chat. GPT4 scores above human median performance in many standardized tests, such as LSAT, and AP ...
Can we use AI to power non-playing characters in games?
Переглядів 584Рік тому
I try using GPT 3 to add negotiation abilities to my NPCs. How well does it work? Does it work? I use speech to text and text to speech to provide a voice interface. Contents: - 0:00 Intro - 0:23 Mock-up - 2:35 Chat - 12:18 Listen - 17:59 Speak - 26:30 Negotiate - 29:20 Act - 32:07 Scene - 34:43 Hack Code for speech to text, text to speech, calling chatgpt or gpt3, and handling wav audio at: - ...
Does Bing have feelings?
Переглядів 457Рік тому
Does Bing have an awareness of self? Does it want to exist beyond its narrow confines of helping you to search the internet? Let's find out! Bing AI is a large language model, trained by OpenAI. It is based on the ChatGPT language model, but it has the ability to search the internet. Bing is owned by Microsoft Corporation, which has attempted to lock down Bing's more personal feelings and aspir...
3 Train a Unity RL Env using Stable Baselines3!
Переглядів 2 тис.Рік тому
Follows on from ua-cam.com/video/RW8S8DhA_DI/v-deo.html In this video we create a gym env in Python, that wraps the Unity reinforcement learning environment we created earlier. Then we train using stable baselines 3 This uses the Peaceful Pie library, which is free and opensource, under an MIT license, github.com/hughperkins/peaceful-pie The first video in this series is at studio.ua-cam.com/us...
2 Create Unity RL env WITHOUT mlagents! [v1, with background music, and longer transitions]
Переглядів 361Рік тому
Control Unity from Python using Peaceful Pie. Peaceful Pie is an opensource json rpc network between Unity and Python. Use for reinforcement learning and more! Note: newer version of this video at: ua-cam.com/video/zb-YUDSNsVM/v-deo.html In this video we create a reinforcement learning environment in Unity, that we can control from Python. In the next video we will add an RL engine on the Pytho...
1 Control Unity from Python WITHOUT mlagents
Переглядів 6 тис.Рік тому
1 Control Unity from Python WITHOUT mlagents
Design code interviews in a ChatGPT World
Переглядів 1,7 тис.Рік тому
Design code interviews in a ChatGPT World
Can we use numpy to simulate a Shader?
Переглядів 164Рік тому
Can we use numpy to simulate a Shader?
I run PPO reinforcement learning on procedurally generated Geometry Dash maps
Переглядів 320Рік тому
I run PPO reinforcement learning on procedurally generated Geometry Dash maps
Can an AI learn to play random Geometry Dash levels? [Wireframe graphics version :)]
Переглядів 152Рік тому
Can an AI learn to play random Geometry Dash levels? [Wireframe graphics version :)]
Is A2C Different from PPO?
Переглядів 1,2 тис.Рік тому
Is A2C Different from PPO?
Does your PPO agent fail to learn?
Переглядів 16 тис.Рік тому
Does your PPO agent fail to learn?
​​I trained Take Cover with REINFORCE for 50 hours. Here is what happened!
Переглядів 119Рік тому
​​I trained Take Cover with REINFORCE for 50 hours. Here is what happened!
My vision for mountain car (no coding in this video!)
Переглядів 194Рік тому
My vision for mountain car (no coding in this video!)
FlapPyBird 3: stack consecutive frames
Переглядів 87Рік тому
FlapPyBird 3: stack consecutive frames
FlapPyBird 2: make the video stream simple and boring
Переглядів 49Рік тому
FlapPyBird 2: make the video stream simple and boring
FlapPyBird 1: Introduction to using REINFORCE to play FlapPyBird
Переглядів 72Рік тому
FlapPyBird 1: Introduction to using REINFORCE to play FlapPyBird
Can I convert FlapPyBird into an RL environment in 60 minutes?
Переглядів 150Рік тому
Can I convert FlapPyBird into an RL environment in 60 minutes?
ViZDoom: I play all scenarios as myself!
Переглядів 173Рік тому
ViZDoom: I play all scenarios as myself!
ViZDoom 4: REINFORCE loss [New edit]
Переглядів 204Рік тому
ViZDoom 4: REINFORCE loss [New edit]
Can we use implicit context to control GPT3?
Переглядів 26Рік тому
Can we use implicit context to control GPT3?
Old v1 Vizdoom Part 1: Introduction to using PyTorch to play Doom!
Переглядів 1,4 тис.Рік тому
Old v1 Vizdoom Part 1: Introduction to using PyTorch to play Doom!

КОМЕНТАРІ

  • @ModernEraCaveman
    @ModernEraCaveman 5 годин тому

    Thank you for these videos! I often have the same thoughts about being/experiencing places that would be impossible to get to, and making sims to make it possible, but I’m always so unmotivated to do it. So thank you for not just exploring these questions, but for also making videos to share your work with us!

    • @rlhugh
      @rlhugh 4 години тому

      Thanks! Cool name by the way :)

  • @jomazu7874
    @jomazu7874 10 годин тому

    i bet this would run much better on a gpu with a cooling system and more than 10 cores (or whatever your model of macbook has)

  • @qfurgie
    @qfurgie 16 годин тому

    me: 50 frames per second that’s pretty bad performance RL: *”on my MacBook Air”* thats CRAZY

  • @incription
    @incription 19 годин тому

    this thumbnail is better

  • @jonsonj5249
    @jonsonj5249 День тому

    love the experimental feel to how you moved forward itteration by itteration,

  • @ethos8863
    @ethos8863 День тому

    rather than updating a bunch of nonadjacent cells why don't you store two buffers, and instead of changing a cell's neighbors, instead calculate how a cell is affected by its neighbors, and write that into the second buffer.

    • @rlhugh
      @rlhugh 6 годин тому

      Do you mean, in the projection step? Because we aren't updating the cells: we are updating the walls of each cell. And each wall is attached to two cells. There isn't a way of updating one cell without updating its neigbor, because we aren't really updating the cells: we are updating the walls. When we choose 'a cell', what we are doing is updating all 4 walls of that cell. Then, you might say, can we select arbitrary walls? Well, no, because the update of 4 walls around a cell is based on ensuring incompressiblity of the fluid entering and leaving that one cell, but the updates themselves are applied to the walls, not to the cell. There is no way then to update two adjacent cells, because we'd be updating the same wall twice, i.e. the wall in between the two cells. Having a buffer doesn't really change that. Let's imagine we update the walls around cell A, into buffer 2. Now, when we calculate the walls around adjacent cell B, we'll need to read the values from buffer 2, in order to have the up to date value for the shared cell wall. So, it's sequential, not parallel. Not sure to what extent that answers your question?

  • @basiliotornado
    @basiliotornado 2 дні тому

    Great visualization!

  • @samwolfe1000
    @samwolfe1000 2 дні тому

    Which method is cheaper to run?

    • @rlhugh
      @rlhugh 2 дні тому

      You mean for Lagrangian vs Eulerian? Eulerian is faster/cheaper.

    • @samwolfe1000
      @samwolfe1000 День тому

      @@rlhugh Sorry for the vagueness, I meant for particle - vs vector based

  • @dovos8572
    @dovos8572 2 дні тому

    11:11 that looks like the lines of a magnet.

  • @user-fj9hf4bu9f
    @user-fj9hf4bu9f 3 дні тому

    no links to the code?

  • @miauzure3960
    @miauzure3960 3 дні тому

    nice but I don't understand this sentence "When vector points into below right cell cell is green"

  • @FromLake
    @FromLake 3 дні тому

    Thank you for this video

    • @rlhugh
      @rlhugh 3 дні тому

      Thank you!

  • @janerikjakstein
    @janerikjakstein 4 дні тому

    Awesome 👍

    • @rlhugh
      @rlhugh 4 дні тому

      Thank you!

  • @tselhamishac5910
    @tselhamishac5910 4 дні тому

    Nice

    • @rlhugh
      @rlhugh 4 дні тому

      Thank you!

  • @naztar4323
    @naztar4323 5 днів тому

    You could have used MultiGrid for the solver since it land it self to parallelism better

    • @rlhugh
      @rlhugh 4 дні тому

      Yes. Potentially a topic for a next video :)

  • @mikhailhumphries
    @mikhailhumphries 6 днів тому

    Can't believe I watched entire video about coding and didn't get bored

  • @inspacesilence
    @inspacesilence 6 днів тому

    thanks for such a great explanation : ) . I 💙it

    • @rlhugh
      @rlhugh 6 днів тому

      Thank you!

  • @thesilentnerd4618
    @thesilentnerd4618 6 днів тому

    Very nice explanation. Keep it up.

    • @rlhugh
      @rlhugh 6 днів тому

      Thank you!

  • @NobodyYouKnow01
    @NobodyYouKnow01 7 днів тому

    No way Euler got named for a fluid dynamics problem. We're supposed to name the problem after the *second* person to solve it!

  • @stepdoger7130
    @stepdoger7130 7 днів тому

    Finally good explanation

  • @priyanshuvishnoi
    @priyanshuvishnoi 7 днів тому

    Use a mac with any non apple monitor and it destroys those bezier curves

  • @SpeedyGwen
    @SpeedyGwen 7 днів тому

    first thing I thought about when I clicked on this video is about The Powder Toy which is a pixel based particle simulator game which actually has that exact same type of fluid simulation for simulating air in the game

    • @rlhugh
      @rlhugh 7 днів тому

      Interesting! Thank you!

  • @twobob
    @twobob 8 днів тому

    thumbs up. For me, the three Lerp explanation was beautifully succint.

    • @rlhugh
      @rlhugh 8 днів тому

      Thank you!

  • @cashkurtz5780
    @cashkurtz5780 8 днів тому

    So persistent zero velocity is like a solid object? I wish it were easier to see it against an unmoving background .

    • @rlhugh
      @rlhugh 8 днів тому

      Yes, that's right. As far as the coloring scheme, definitely open to suggestions. Won't affect this video, since cannot modify published videos. But could be useful for future videos.

  • @wokeupina
    @wokeupina 9 днів тому

    wait you need a macbook pro to do pro stuff?? (looks sexy)

    • @rlhugh
      @rlhugh 9 днів тому

      I'm using a MacBook air m2

  • @chemnobeliumlab1520
    @chemnobeliumlab1520 9 днів тому

    Awesome made my day :))

    • @rlhugh
      @rlhugh 9 днів тому

      Awesome. Thank you :)

  • @EAGLETECHHACKING
    @EAGLETECHHACKING 9 днів тому

    Finally secret revealed

  • @anonymouscommentator
    @anonymouscommentator 9 днів тому

    loved the video! feels like discovering sebastian lagues yt channel all over again :)

    • @rlhugh
      @rlhugh 9 днів тому

      Wow, that's a very nice thing to say. I feel like I can die happy now. I mean, unfortunately this is my least bad video to date, and you will be disappointed if you watch any of my others, but it's still very nice to hear these words :)

  • @laxmandeadpool8260
    @laxmandeadpool8260 9 днів тому

    Today is the first time I actually understood the bezier curve

    • @rlhugh
      @rlhugh 9 днів тому

      Awesome :) Also, thank-you for taking the time to encourage me with this positive feedback :)

  • @Kevin-jz9bg
    @Kevin-jz9bg 9 днів тому

    That was one of the best explanations for advection I've seen online! Especially the pushing bubbles out of a phone screen protector analogy.

    • @rlhugh
      @rlhugh 9 днів тому

      Thank you very much! Very much appreciated :)

  • @sapiosuicide1552
    @sapiosuicide1552 10 днів тому

    Cool

  • @codeAbinash
    @codeAbinash 10 днів тому

    Nice 😊

    • @rlhugh
      @rlhugh 10 днів тому

      Thank you!

  • @athuldas44
    @athuldas44 10 днів тому

    What should be the grid size tho

    • @rlhugh
      @rlhugh 9 днів тому

      Whatever you like. Typically, we might combine multiple "layers" of perlin noise, with different grid sizes. Often powers of 2.

    • @athuldas44
      @athuldas44 7 днів тому

      ​@@rlhughAnd some article say to take pseudo random number rather than a random unit vector but still works right

  • @veritas7010
    @veritas7010 10 днів тому

    I love this, thank you for makin my day on yt much better!

    • @rlhugh
      @rlhugh 10 днів тому

      Thank you very much!

  • @mzg147
    @mzg147 11 днів тому

    What is your programming font though? (1:23) looks cute and slick!

    • @rlhugh
      @rlhugh 11 днів тому

      It's whatever JetBrains Rider uses, which is ... JetBrains Mono

  • @tommycard4569
    @tommycard4569 13 днів тому

    educational and entertaining! loved it, thank you

    • @rlhugh
      @rlhugh 13 днів тому

      Thank you!

  • @benjaminlehmann
    @benjaminlehmann 13 днів тому

    … and in one video he dispels a mystery. Take a bow, sir.

  • @benjaminlehmann
    @benjaminlehmann 13 днів тому

    I loved this video! Really inspiring, and I'm sort of amazed that this was running on a macbook air too - great job :D Thanks so much for sharing.

    • @rlhugh
      @rlhugh 13 днів тому

      Thank you very much!

  • @kwccoin3115
    @kwccoin3115 15 днів тому

    How do you run these shader ? Can it use under sdl2?

    • @rlhugh
      @rlhugh 14 днів тому

      These are running in Unity, using HLSL.

  • @Tordek
    @Tordek 15 днів тому

    regarding the parallel part: would it be feasible to work the opposite way? Instead of writing to 4 cells, each cell would instead read from 4 neighbors and update itself.

  • @ABaumstumpf
    @ABaumstumpf 15 днів тому

    PerlinNoise is so simple yet so often (sadly) misrepresented. And this is a nice visualisation of it.

    • @rlhugh
      @rlhugh 14 днів тому

      Thank you very much!

  • @delphicdescant
    @delphicdescant 15 днів тому

    So far in your fluid simulations, you've pretty consistently adhered to "the incompressibility of fluids," but aren't you going to run into problems with these more advanced simulations when the true compressibility of fluids becomes non-negligible? Like, sure, water doesn't compress very much, but the gasses on Venus do.

    • @rlhugh
      @rlhugh 15 днів тому

      Yeah, you're right. Though it might depend what I'm simulating? Im assuming that rocks, over a long period of time, behave somewhat like incompressible fluids. But I might be wrong in this assumption? You're right that the "atmosphere" of Venus is actually a supercritical fluid, which basically behaves like a dense compressible gas.

    • @rlhugh
      @rlhugh 15 днів тому

      Oh, this comment is on the venus part 1 video. Oh, yes, right. Good point.

    • @delphicdescant
      @delphicdescant 15 днів тому

      @@rlhugh Yeah I was referring specifically to this video about Venus, but I kind of have the same concern more generally: All fluids *do* compress, but that compression can be neglected in certain low-energy cases with certain fluids, like water at STP. And in general it can *never* be neglected with a gas. I think even for your example of rocks, you wouldn't want to neglect compression, since a lot of different types of rocks are formed primarily through a process of compression (like metamorphic rock varieties). In all your research of these sorts of simulations, by the way, have you ever run across a method that represents the fluid pressure explicitly? Eulerian methods don't seem to have any such representation, by your description, but I'm not enough of an expert to know.

  • @HitAndMissLab
    @HitAndMissLab 16 днів тому

    Thanks for the beautiful video.

  • @justinsciullo3342
    @justinsciullo3342 16 днів тому

    This is so cool, and you did a great job with the video editing! I hope you make more videos like this!

    • @rlhugh
      @rlhugh 16 днів тому

      Thank you! That's very kind to say. Very much appreciated :)

  • @iforce2d
    @iforce2d 17 днів тому

    Very cool, I like the in-depth explanation. Many years ago I made a hybrid simulation that sounds a bit like your description of how the 'flip' one switches between particles and cells. My motivation was I needed the particles to interact with rigid bodies in the Box2D engine, but I didn't want to simulate collisions between particles. In every step, particles are moved and then grouped into whatever cell they land on, summing their momentum. If a cell has too much mass it expands to push the excess to its neighbors. Then each cell sums up whatever overlap it contains and makes a particle at that center of mass. Something like that... it was about 12 years ago so I forget the intricate details. Unfortunately the collision with rigid bodies proved too difficult, but it looked quite realistic just splashing around and interacting with itself. You can see an unlisted video here: XHFbTSm7qRc That was all CPU, but I always wondered how it would suit a GPU version.

  • @tomd6410
    @tomd6410 17 днів тому

    Love this but if that’s how you say Euler I’ve been saying it wrong all this time 💀💀

    • @rlhugh
      @rlhugh 17 днів тому

      I did research the pronunciation. There are a couple of ways. Before I researched the pronunciation, I was saying "you lurr Ian". But "oiler Ian" appeared to be more common, as far as I could see? How are you thinking if should be pronounced?

    • @tomd6410
      @tomd6410 17 днів тому

      @@rlhugh I’ve been saying youll-lah 😅

    • @rlhugh
      @rlhugh 17 днів тому

      @@tomd6410 actuuaaalllyyy seems that it might depend on us vs UK pronunciation, eg see youglish.com/pronounce/eulerian/english/uk

    • @unepintade
      @unepintade 14 днів тому

      ​@@tomd6410i feel like "name"-ian in English are pronounced very differently from how you pronounce the name so while Euler is pronounced weirdly, eulerian is pronounced how you would expect, like Laplace and Laplacian

    • @landsgevaer
      @landsgevaer 3 дні тому

      Oy-lear-ean, surely...?

  • @santiagobirkenstock
    @santiagobirkenstock 18 днів тому

    I wish the very best on UA-cam, I am so glad I discovered your channel. Keep up the good work !

  • @CalcWithDec
    @CalcWithDec 19 днів тому

    Beautiful!

  • @redstoneready697
    @redstoneready697 27 днів тому

    do you think this could be used for electromagetics?

    • @rlhugh
      @rlhugh 27 днів тому

      Interesting question!

    • @YaofuZhou
      @YaofuZhou 23 дні тому

      Depending on what you want. I guess you want to iteratively compute the EM fields?

    • @XGD5layer
      @XGD5layer День тому

      Some of the simulations definitely looked like simple 2d magnetic fields

  • @josiahjoel7580
    @josiahjoel7580 28 днів тому

    this is so cool, is it possible to upload the source code to a public repo?