How do Major Video Games Render Grass?

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 581

  • @simondev758
    @simondev758  Рік тому +70

    Patrons can now vote for the next video! Thank you for your support.
    ❤ Support me on Patreon: www.patreon.com/simondevyt
    🌍 Live Demo + Courses: simondev.io

    • @cicik57
      @cicik57 Рік тому

      is it possible to clip bottom parts of grass what are not visible?

    • @LacklusterThoughts
      @LacklusterThoughts Рік тому

      It seems like online games, like in milsims where render distance is far. Have a really bad problem with grass if you ever feel like analyzing it.

    • @road2nohand
      @road2nohand 7 місяців тому

      can you please pleas pelase host this crazy stuff

  • @deanolium
    @deanolium Рік тому +1010

    For the wind, try giving each blade of grass a random 'stiffness' which goes from 1 to 0.8 or so then use this to multiply the effect from the wind. That would give a little bit of variance to each blades movement which would make it feel a little more realistic, since each blade will have slightly different resistance to being moved by the wind.

    • @simondev758
      @simondev758  Рік тому +237

      Good idea!

    • @gibraelkotwal6894
      @gibraelkotwal6894 Рік тому +14

      Wouldn't that take a hell of a lot of computation power?

    • @squidwardstesticles5914
      @squidwardstesticles5914 Рік тому +127

      @@gibraelkotwal6894 not really, just a single random number generation and multiplication per blade. Of all the things done in the video that would probably be one of the least expensive things

    • @simondev758
      @simondev758  Рік тому +124

      @@squidwardstesticles5914 To add, GPU's are measured in TFLOP's these days, to give you an idea of just how absurdly powerful they are.

    • @RiversJ
      @RiversJ Рік тому +24

      They aren't particularly 'powerful' really, per die / computing unit theyre Way weaker than most mobile phone CPUs, the difference is better modeled conceptually by comparing mentally a high pressure hydraulic line at 600 atmospheres but it has tiny diameter, while the GPU is a firehose, not nearly as fast but boy does it move a Lot of stuff.
      The SIMD concept or something similar is very important to understand for graphics programmers if you don't want to be like some new 'AAA' titles that get their shaders 'proper' fixes by modders to make them run well.
      Essentially you want to make sure everything is as flat as possible, that you write in aliased manner from memory without in-flight conflicts (read only done right is ok).
      There's no getting around learning the fundamentals of SIMD architecture if you want to be good at graphics programming.

  • @theblackquill5921
    @theblackquill5921 7 місяців тому +577

    THe more you render grass the less you touch grass

  • @neoshenlong
    @neoshenlong Рік тому +257

    Dude, you are like "yeah I'm just messing around" and then build a scene that looks absolutely amazing and far better than like half of the games I can think of right now.

    • @wille84fin
      @wille84fin 8 місяців тому +8

      And it doesn't magically just vanish (stop) after 30-50 meters like in 90% of games today..

    • @freakinmonkey85
      @freakinmonkey85 5 місяців тому +3

      …running in a browser

    • @nerdError0XF
      @nerdError0XF 5 місяців тому

      ​@wille84fin man... he just made a tech demo of grass. In real games you need to optimize your games to be more accessible and like... aside from grass you need to render and compute billion other things lol
      I honestly can comperhand how people compare tech demons and real playable games

  • @asandax6
    @asandax6 11 місяців тому +537

    Simon: "I'm just messing around"
    (Proceeds to make one of the most awesome grass scenes that looks better than some games released in 2023)

    • @lmancz
      @lmancz 5 місяців тому +12

      in a browser...wtf

    • @michael-zv5xq
      @michael-zv5xq 5 місяців тому +1

      Part of that would be because the performance and the engine they chose to make the grass lol

    • @Raevolpe
      @Raevolpe 5 місяців тому +7

      ​@@michael-zv5xqIt has nothing to do with the engine, it's the people using it that matters. Bethesda can't to shit with their engine but modders make better job and optimize things. Same goes for unreal engine games, some people optimise and others don't, frostbite too etc.

  • @SteveLEKORodrigue
    @SteveLEKORodrigue Рік тому +968

    I'm mesmerized by how good this stuff can look. I'm not a game developer, but you make me want to become one. 😁

    • @Yadobler
      @Yadobler Рік тому +75

      Makes me want to be a render engineer instead of game development

    • @lilbahr
      @lilbahr Рік тому +3

      Epitaph

    • @alex-qn5xp
      @alex-qn5xp Рік тому +15

      It's easier than it looks once you know what you're looking at.

    • @Shifae_
      @Shifae_ Рік тому +31

      I'm 44 and trying to teach myself UE5 using UA-cam videos. There's no reason why you can't.

    • @SteveLEKORodrigue
      @SteveLEKORodrigue Рік тому

      @@Shifae_ : I'm already working in game industry (network infrastructure).

  • @B0ltSoft
    @B0ltSoft 11 місяців тому +124

    As the developer of GrassFlow, I approve of this video.
    It's weird how familiar hearing about their grass setup feels to how I ended up developing it.
    Ghost of Tsushima actually inspired me to add bendy grass and stuff at the time because I was jealous they could do it and I didn't have it.
    That was back when using geometry shaders though, now it's just raw mesh instancing baybee.
    At one point I hacked together an experiment inspired by nanite using a compute shader based micropolygon software rasterizer to render a truly insane amount of grass with like 1000 triangles per single clump and hundreds of millions of triangles at like 2K 450 fps. I wish it was practical to implement that more generally. But cool nonetheless

    • @simondev758
      @simondev758  11 місяців тому +20

      That sounds super cool!

    • @GRAYgauss
      @GRAYgauss 9 місяців тому

      Sounds so cool I hate to say I actually don't believe you. Any scraps on github?

  • @zeekjones1
    @zeekjones1 9 місяців тому +13

    I'd add the actors move vector to the "wind" for a given area so the grass gets a little push as you pass through.

  • @AnimusAgent
    @AnimusAgent Рік тому +207

    The fact that this was made in Javascript is mind-boggling for me as a web-developers that have been working with JS-related stuff for about 10 years.
    And as always, awesome video!

    • @joaovitormeyer7817
      @joaovitormeyer7817 Рік тому +35

      Three.js uses WebGL, wich is just a way of using OpenGL in the web, so while it is indeed JavaScript, the havy work is all done on the GPU and JavaScript just uses it. I'm shure you know that but to me it feels like cheating to say that this was done with JS (performance-wise)

    • @greggoog7559
      @greggoog7559 Рік тому +11

      Web technologies have really come such a long way that I'd personally go as far as saying that native code is unnecessary in 95% of use cases.

    • @Mnmn-xi6cj
      @Mnmn-xi6cj Рік тому

      @@greggoog7559 browsers can indeed pretty much do anything, I'm just not sure whether that is even desirable. Wouldn't be surprised to see browsers replacing the OS entirely 😅

    • @LittleRainGames
      @LittleRainGames Рік тому

      @@greggoog7559 Until you move to huge projects.

    • @askeladden450
      @askeladden450 Рік тому

      ​@@greggoog7559for rendering and games? Javascript is good for toying around or experimenting, but if u want to make anything fullscale, native is absolutely the way to go.

  • @playonce4186
    @playonce4186 11 місяців тому +43

    To be honest man, this grass looks artisticly unique and very beautiful. I really love it ! One of the best grasses I have seen in a game.
    The more realistic something is to real life the more it looses that childlike connection and desire to that play game.
    Your grass has a a type of characterstic to it which i find very wanting to run around the grass meadowy hills.

  • @seriouce4832
    @seriouce4832 Рік тому +274

    Simon, consider this: Since the video compression really messes with the grass details far away, you could consider this step: Simply upscale the video to 4k and upload. This sounds a bit silly but the 4k stream will have much more bitrate and the grass will look much nicer, even though it is technically still a 1080p video. The upscaling does not make it nicer, but the higher bitrate does - and you won't get that from youtube without increasing the resolution.

    • @simondev758
      @simondev758  Рік тому +79

      That is a great idea!

    • @clonkex
      @clonkex Рік тому

      ​​@@simondev758We upscale our videos as well to force the better codec that UA-cam won't give us unless we have many subscribers (although you probably have that codec already)

    • @luizarthurbrito
      @luizarthurbrito Рік тому +19

      UA-cam uses a significantly higher bitrate and better compression from 1440p onwards. Sometimes, 2k will do the trick!

    • @JOCoStudio1
      @JOCoStudio1 Рік тому +8

      Agreed. No. matter the resolution of the source file, you should always upload at the highest resolution possible to tap into that higher bitrate. Wish UA-cam would just decouple resolution and bitrate, but it is what it is.

    • @gruuli
      @gruuli 11 місяців тому +1

      you are all right but its not only about bitrate as you think,
      it is also about the codec used by youtube: keyword vp9

  • @RGSTR
    @RGSTR 10 місяців тому +4

    I used to dream of becoming a game programmer. Now, I watch technical videos such as this, and enjoy them a lot. Thank you!

  • @DavidsKanal
    @DavidsKanal Рік тому +43

    Love how you're doing your tutorials in the browser - not only is it easier for people to view this demo, but it also constantly reminds people of the power of modern browsers and what you can make with them. I much prefer this approach over fiddling around in some heavyweight engine like Unity.

    • @jabadahut50
      @jabadahut50 Рік тому +4

      And browsers are only getting more powerful with additions like WASM and WebGPU. As these technologies mature, the only things that will really be holding the web back from being the primary way to deliver games will be tradition (good luck getting a steam user to move away from steam), download speeds (as large assets will still take a very long time to download), and browser cache size (though there are already ways around this now so this one is less of an issue.)

    • @leo-oh1bc
      @leo-oh1bc Рік тому

      ​@@jabadahut50and Logic also. Browsers should focus more on being a way to get and send information on internet instead of trying to become another operative system
      Browsers should get simpler, not more complex, It Is already too complex to develop a browser from scratch even for Microsoft

    • @niceowl
      @niceowl Рік тому +7

      ​@@jabadahut50the Steam client does more than just downloading games.
      Do you know how big of a performance impact the browser makes? With the sandbox I'd imagine it to be quite big

    • @Onaterdem
      @Onaterdem Рік тому +6

      @@jabadahut50 Are there any benefits to "the web back from being the primary way to deliver games"? Why would we move towards such a future?

    • @nicholasmaniccia1005
      @nicholasmaniccia1005 Рік тому

      @@Onaterdem Ease of access, and more control over your own product. Business 101 in trying to make a great product that makes a lot of money is to try and cut out any middlemen and buy and/or sell direct from suppliers and to consumers. Even drug dealers know this.

  • @mattwayne9128
    @mattwayne9128 Рік тому +37

    Some of the best javascript and game dev content on the Internet. Thanks for sharing your knowledge. I'll definitely be looking into your courses (when I get some money).

  • @theranpan_
    @theranpan_ Рік тому +4

    Almost everything bounced over my head but I loved the video for some reason. Subscribed because I wanna watch remaining videos you have uploaded.

  • @kingcrimson_2112
    @kingcrimson_2112 11 місяців тому +14

    you are a true wizard. And I absolutely love your approach of tutorial making. Please dont stop, its inspiring.

  • @zarblitz
    @zarblitz Рік тому +14

    I think the real value of this video (aside from the great approach to grass) is demonstrating how to turn a description of a methodology into an implementation

  • @LewisRidyard
    @LewisRidyard Рік тому +51

    I recently watched the same GDC talk, after playing the game for the first time, and wondered how it could be approached in the browser. Super cool to see your thought process, especially around the points you chose to focus on vs simplify. Great stuff. Really loving your content both here and on Twitter!

  • @4.0.4
    @4.0.4 Рік тому +15

    I'm absolutely impressed by how good of a result you got for what is basically a throwaway toy demo. Love your explanations.

  • @hydraulicsystems332
    @hydraulicsystems332 8 місяців тому +2

    This looks very nice, if you really want to sell the wind illusion you could make the butterflies be slightly perturbed by the wind waves.

  • @wafi5576
    @wafi5576 6 місяців тому +2

    the plot twist at the end got me. amazing

  • @pklpklpkl
    @pklpklpkl 9 місяців тому +2

    As someome tuning into your optimization analysis, that last sentence made me choke. I wasn't prepared, but am impressed

  • @The_Pariah
    @The_Pariah 6 місяців тому +8

    As someone who codes but doesn't write video games, I love watching stuff like this.
    When I play games, I constantly think about some of the nuances. Grass/vegetation is something I constantly think about.
    It's neat to see the code that drives this kind of stuff.
    Geek-friendly and enjoyable.

  • @omgabaddon
    @omgabaddon 10 місяців тому +1

    that grass movement looks fucking sick, it looks like actual wind is moving across the field, and it's just a tiny square... bro

  • @michaelpease2103
    @michaelpease2103 10 місяців тому +2

    At 5:40 that grass would already work really well for a stylized game. Good stuff

  • @JordanBeagle
    @JordanBeagle 10 місяців тому +1

    Crazy they have to model every blade of grass!

  • @spaaaaace8952
    @spaaaaace8952 4 місяці тому +1

    You're, sir, are insane. You changed the way I think about JS.

  • @_jurd
    @_jurd Рік тому +6

    Last year I wrote this for Unity HDRP but got stuck building artist tools to paint grass and creating a system to bake a heightmap based on multiple meshes. Thanks for motivating this programmer to get back to work!

    • @xdanic3
      @xdanic3 Рік тому +2

      I'm curious about how you would do this in unity, do you have a single object for all the grass? Do you model the grass and import or create the mesh inside unity?

    • @_jurd
      @_jurd Рік тому +1

      ​@@xdanic3 Currently, it's created in a C# script with each chunk being its own mesh. From my research it's the only feasible way to support important HDRP stuff like deferred lighting.
      It's probably not possible to only use one object (mesh) as you'll probably very quickly overload the index buffer which when formatted to 32 bits supports about 4 billion vertices.

  • @kerch00
    @kerch00 7 місяців тому +1

    I noticed a difference in the real life video you took of some grass, where vortices are formed in between blades of grass moving them horizontally instead of just vertically. You could introduce some random movement in the blades proportional to the perpendicular of the wind to create a more varied/realistic look.

  • @maalikserebryakov
    @maalikserebryakov Місяць тому

    The last scene you made literally drew my breath away.
    😍

  • @jixal
    @jixal Рік тому +2

    That is nuts. Really excelllent result! I'm not a coder but it was very interesting to follow your steps.

  • @Draxen
    @Draxen Рік тому +18

    Absolutely insane, you sir are a genius.
    Thanks for another informative and fun video 🎉

  • @SomeRandomPiggo
    @SomeRandomPiggo 5 місяців тому

    The Perlin noise really did it, looks like real wind!

  • @BRZguy
    @BRZguy 10 місяців тому

    It's really amazing how much games have improved in this area. Back in the day, you'd be lucky if you saw a couple static blades of grass and a green ground texture in a large open area. Nowadays it's all over and individual blades are modeled as well as have movement with the wind and player.

  • @shootnblankz187
    @shootnblankz187 11 місяців тому +1

    aliased grass is the bane of every gameplay experience lol. Looks pretty good!!!

  • @hund1267
    @hund1267 10 місяців тому

    I just wanted to add a rooman for the algorithm, but also your ego. This has on so many LODs so much quality that everybody should believe in humanity again. Thanks for your humble work.

  • @kkodingg
    @kkodingg Рік тому +2

    I didn't expect you would mention browser at the end. It caught me off guard. Though, I was a little confused why there was javascript in the middle of the video. Anyways, Great stuff! Looking forward to see your next videos!

    • @simondev758
      @simondev758  Рік тому +1

      Yeah, it's amazing what JS can do these days. I mostly use it out of ease and convenience.

  • @thevoidunknown
    @thevoidunknown Рік тому +3

    Definitely going to check out your courses first chance I get. Please don't stop what you're doing, this is some of the best dev content out there!

  • @GamePhysics
    @GamePhysics Рік тому +1

    Looks great! I was shocked when you said it's running in a browser. Impressive!

  • @Kujeful
    @Kujeful Рік тому +2

    That was some lovely grassing and nice outcome! Thank you!

  • @asherspira
    @asherspira Рік тому +2

    Watching this video, seeing the program slowly come to life was as amazing as the final product 🙏

  • @kipchickensout
    @kipchickensout Рік тому +1

    Just listening to your voice while watching that snack-sized video summary of something so interesting is a nice way to start the evening

  • @AbrahamZilberstein
    @AbrahamZilberstein Рік тому +4

    This makes me excited like a child, that things like that can be done by a human being. Definitely worth learning

  • @mav45678
    @mav45678 8 місяців тому +1

    Awesome video.
    The grass movement is not looking much like wind to me. More like someone was moving a grass carpet from underneath.

  • @nicolaslanglais
    @nicolaslanglais 5 місяців тому +1

    the thing that would sell it would be player collision detection

  • @ManiakPL22
    @ManiakPL22 3 місяці тому

    I love how often beauty is crated from simplicity in computer graphics.
    When you look at it all it often feels overwhelming, you can't stop the optimalizations and you just marvel at how the fuck does my computer even handles that? and then you hear it explained, and it's still beautiful, but there is something more to it for me, since it is made with nothing as complicated as my brain made it out to be.
    No matter if high fidelity, stylized, or something else I think most often the most beautiful games prove to be the ones that get simplicity right, not the other way around.

  • @alexjeffrey3981
    @alexjeffrey3981 Рік тому +2

    What a banger of a topic! I've bumped into this issue a few times working on my own lil games, excited to hear your perspective

  • @anon_y_mousse
    @anon_y_mousse Рік тому +4

    I love how so many channels I watch keep showing all these techniques for doing grass. It's really making me want to make a lawn moving game. Although, I'm wondering how I might apply these techniques to have a room of tentacles like say you're on an alien planet and there are tentacles coming from every crevice.

    • @simondev758
      @simondev758  Рік тому +1

      That sounds awesome, some nice cutting mechanics and fluid sim for slime flying everywhere.

    • @No_True_Scotsman
      @No_True_Scotsman Місяць тому +1

      Oh damn I bet people would love a lawnmowing game. Look how much they love Powerwashing Simulator

  • @Memeieli
    @Memeieli Рік тому +1

    You truly make the best Indepth videos on how to do these techniques. Your truly amazing.

    • @Memeieli
      @Memeieli Рік тому

      Id pay money for a more in depth course that follows more of the talk or just other techniques as well.
      GPU instancing a bunch of geometry like horizon zero dawn has been something ive been trying to learn for a while. Is there any chance u could cover rendering trees/rocks and other geometry with compute shaders?

    • @simondev758
      @simondev758  Рік тому +2

      100% yes
      I'm holding a poll on Patreon right now on the next video, 2 potential topics are how to render 100's of thousands of objects easily, the other is how to manage enormous scenes, basically 2 different spins on rendering a crapload of stuff.
      I will eventually build up to how games like Horizon, etc. use compute shaders for modern gpu driven rendering.

  • @NickStagakis
    @NickStagakis Рік тому +5

    Sadly the youtube video compression does not like the grass moving towards the end of the video. Still very beautiful though!

  • @youknowho4439
    @youknowho4439 11 місяців тому +3

    This is one of the biggest difficulties for me as a beginner in Blender. Wanting to design the environment, and render it, AND add animations AND maybe custom assets is pretty easy. When you learn the basics. Hoping to get there.

  • @tufanaydin6340
    @tufanaydin6340 Рік тому +1

    I am absolutely tuned about to buy your courses. I loved your knowledge.

  • @SierraSierraFoxtrot
    @SierraSierraFoxtrot 6 місяців тому +1

    Their blending from 15 to 7 vertices is CRAZY.
    PS
    I'm not a graphics pro but I've been around for a while and I've never seen this technique. Does it have a name?

  • @vici83
    @vici83 Рік тому +4

    Everytime that I beginning to lose the direction of what I'm doing, I come back here and get that glow on the eye back. Love your work.

  • @visionary_3_d
    @visionary_3_d Рік тому +2

    Great video.
    The grass looks great!
    I'll try the movement tricks here at some point 😋

  • @AmazingMaxStuff
    @AmazingMaxStuff 4 місяці тому +1

    Thank you so much Simon!

  • @addmix
    @addmix Рік тому +1

    This guy just does not miss. Absolute GOAT

  • @Crempsen
    @Crempsen Рік тому +1

    Someone "without an artistic eye"
    cut it out, this looks amazing

    • @simondev758
      @simondev758  Рік тому

      Hah. I've worked with so many artists over the years, and they have always been clear that I should stick to the tech.

  • @dhawaljoshi
    @dhawaljoshi Рік тому +2

    grass does look good, it's amazing to see this was done in JS

  • @TommyLikeTom
    @TommyLikeTom Рік тому

    this video has shown up on my feed like 10 times each time with a different thumbnail. I just came here to say this, I know how all this is done.

    • @simondev758
      @simondev758  Рік тому

      Ya, gotta play around with the thumbnail, first version was pretty bad

  • @phutureproof
    @phutureproof Рік тому +1

    fantastic! as a simple web dev this stuff blows my mind

  • @nacs
    @nacs 8 місяців тому

    Fantastic narration and video. Love how it's paced well but still concise and to the point
    Oh and the final result looks fantastic

  • @raphaeljaggerd3585
    @raphaeljaggerd3585 Рік тому +2

    This is awesome. Im not smart enough to understand these talks but thanks to you i now can. If possible please try to recreate the physics driven animation GDC talk for uncharted

  • @_prothegee
    @_prothegee Рік тому +1

    Those grass looks great with wind simulation

  • @Novanimator
    @Novanimator Рік тому +2

    You deserve more recognition bro, this is amazing

  • @AndersonMancini
    @AndersonMancini Рік тому +2

    Wow. This is just pure gold man. Thank you so much Simon. 👏🏻👏🏻👏🏻

  • @jonhulsart
    @jonhulsart 11 місяців тому +1

    I get so scared of playing dark souls but after watching this video I want to play it again. thank you for this experience

  • @christopherfrancique9912
    @christopherfrancique9912 3 місяці тому

    looks so good. dusk scene fire!

  • @strokkur24
    @strokkur24 6 місяців тому

    Holy shit. Holy fucking shit this is awesome! This grass looks so good I that I want to go out and touch some.
    All jokes aside, the grass looks insane. You got youself a new subscriber mate

  • @eboatwright_
    @eboatwright_ Рік тому +2

    This just looks absolutely amazing!! Makes me want to get back into graphics programming

  • @Lucas-hh4oh
    @Lucas-hh4oh Рік тому +3

    What a great video you have here! Instant sub!!

  • @Nebulaoblivion
    @Nebulaoblivion Рік тому +1

    Your results are really cool, thanks for sharing!

  • @spider853
    @spider853 6 місяців тому

    Not sure you added that delay, but I think their grass wind is affecting the Bezier handles first then the end points, like with an offset delay to get that smooth bend motion

  • @robertwallace5498
    @robertwallace5498 Рік тому +1

    SimonDev is a god among us, best videos on youtube

  • @sandwich.entity3810
    @sandwich.entity3810 5 місяців тому

    Would be interesting to see what small variations in height, either from a noise map or maybe just random offsets, would look like?

  • @hamzzashaffi
    @hamzzashaffi Рік тому +3

    Thank you for sharing these videos with us! :)

  • @itsMBWAAA
    @itsMBWAAA Рік тому +1

    my god ive been looking for a game dev math course for months! years maybe!

  • @Mcs1v
    @Mcs1v Рік тому +2

    Ey, another high quality content from you. Thanks! :)

  • @NamanArusia
    @NamanArusia 5 місяців тому

    Damn man this is insanely impressive. And the thing is when you go step by step it actually makes so much sense, like an obfuscated memory was unlocked.

  • @Bvngee
    @Bvngee Рік тому +1

    This is so cool. Makes me excited about computers again. Thank you very much sir :)

  • @dpatulea
    @dpatulea Рік тому +2

    Wow. It's amazing! Thank you for your share!

  • @Bluesky35102
    @Bluesky35102 Рік тому +2

    This looks amazing! Awesome video

  • @MonsieurFlange
    @MonsieurFlange Рік тому +1

    Looks amazing! I'd love to see how you'd implement player influence on the grass movement

    • @simondev758
      @simondev758  Рік тому +1

      I didn't really call it out in the video, but there's a video on my twitter of player influence. Added it for fun, but just didn't feel like it needed to be included on YT.

    • @Bravest-d3k
      @Bravest-d3k Рік тому

      that would of it the video for me that beautiful end part with a player walking threw the grass almost pushing it to each side, love the buttflies too@@simondev758

  • @Limofeus
    @Limofeus 7 місяців тому

    Looks really neat! Is there a web demo for it by any chance?

  • @yoyooo2008
    @yoyooo2008 11 місяців тому +1

    great tutorial, easy to follow and the results is really nice

  • @dev_reimu
    @dev_reimu Рік тому +1

    The end genuinely killed me.

  • @tigerwolf8338
    @tigerwolf8338 Рік тому +1

    Thanks for your game-math course!

  • @marverickbin
    @marverickbin 11 місяців тому +1

    Pretty smooth, a task that seems so heavy.
    Also, javascript!!!

  • @0x8badbeef
    @0x8badbeef 4 місяці тому

    Ghost of Tsushima does a novel thing with the grass. Most games have some sort of navigation system. Ghost of Tsushima points the blades of grass in the direction you should be going. Likewise with the wind.

  • @shayhan6227
    @shayhan6227 11 місяців тому +1

    Sony makes some of the best exclusive games that are graphically beautiful and innovative and also incorporate good story telling and game mechanics. It was insane how Ghost of Tsushima didnt get game of the year. Other great games were Last of Us, Uncharted, God of War, etc.

  • @oscoorpgames
    @oscoorpgames 11 місяців тому

    Can You Please make A Full Start To End Detailed Video For This Grass Features In Unreal Engine 5 .

  • @Callie_Cosmo
    @Callie_Cosmo Рік тому +5

    Wait, running in the browser? I’m sorry, right at the end there, the BROWSER? This Is Running, In THe BROWSER???

  • @HuynhLuong227
    @HuynhLuong227 Рік тому +1

    wow, long time no see, welcome back with threejs

  • @GameDevAcademy
    @GameDevAcademy 10 місяців тому

    Great video. Thanks for sharing.

  • @Mampinator
    @Mampinator Рік тому +1

    OMG THANKS. I used noise and it looks like grass from far away. that was my original solution.

  • @vishnuvarma2826
    @vishnuvarma2826 9 місяців тому +1

    Really amazing video! These videos keeps me more interested with game dev! Just subcribed your channel! Great content 🫡😎thank you ❤

  • @SuboptimalEng
    @SuboptimalEng Рік тому +3

    Michelin star chefs are afraid of this man cause he can cook.

  • @Desopolis
    @Desopolis Рік тому +2

    Great as always!
    This would be a great addition to the shader course.
    I think I’ll give this a shot some time this week to see if I can replicate it.
    I’m curious to see the performance and with some of the acerola ideas how optimized it could go.

    • @simondev758
      @simondev758  Рік тому +2

      I think we do really similar things with chunking and LOD'ing, so I wouldn't realistically expect performance to be substantially different any difference in the shaders. My shaders likely being more complex since they're both doing all the Ghost of Tsushima stuff + deriving from the full lighting and shadowing system from three.js.
      Memory wise, this uses almost nothing. The vertex format is heavily compressed, float16's for offsets, uint8s for the vertex itself. It would be even smaller, if not for some problems with three.js that I didn't feel like overcoming.
      The path forward for optimizing likely includes doing what they mention, which is aggressively swapping out tiles 4:1.

    • @Desopolis
      @Desopolis Рік тому

      @@simondev758what kind of FPS were you getting?
      I’m hovering around 20fps on my 3060 which seems super low.
      I’m wondering if it’s a problem on my end

    • @simondev758
      @simondev758  Рік тому

      @@Desopolis I've now tested on 3 different systems, vega64 was running at 100fps no problem, no idea the actual top framerate, 4080 was the same, and my old surface laptop was getting 35-40 fps for just the grass.
      20 fps on a 3060? Yeah, something is seriously wrong. Maybe try it again with the latest, I removed a lot of the extra passes that I added just to take the video, should be mostly grass
      Although tbh, those passes are mostly basic ssao and stuff, I didn't write them, but they shouldn't be so heavy weight to even bother a 3060.

  • @NotGarbageLoops
    @NotGarbageLoops Рік тому +1

    Absolutely incredible. Well done

  • @mmilerngruppe
    @mmilerngruppe 4 місяці тому +1

    The butterflies who don't give a fuck about the wind are awesome!

    • @simondev758
      @simondev758  4 місяці тому

      Giving af about the wind is expensive and harder heh.