Adding This One Thing Made my Game Look 327% Better

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

КОМЕНТАРІ • 513

  • @mastrio5772
    @mastrio5772 2 роки тому +187

    An easy way to optimize the grass more is to disable them from casting shadows. They can still recieve shadows from other objects but won't cats any themselves.

    • @overphildev
      @overphildev  2 роки тому +24

      I'll try it out

    • @minireceka2091
      @minireceka2091 2 роки тому +5

      Thats true

    • @minireceka2091
      @minireceka2091 2 роки тому +2

      Why aren't you uploading a video.For me it jas benn A WHOLE MONTH

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

      ​@@overphildevand frustum culling is amazing too

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

      At the cost of great graphical quality reduction. If you can, supplant the grass shadows with screen-space shadows.

  • @seekpodcast
    @seekpodcast 2 роки тому +113

    Tip: have the grass models be only two triangles. One upside down and one right side up on top of it. This will allow you to speed up the game tremendously without sacrificing too much. The grass in Breath of the Wild is actually only two triangles as well.

    • @overphildev
      @overphildev  2 роки тому +16

      That's very interesting I'll have to try it

    • @remus-alexandrusimion3439
      @remus-alexandrusimion3439 2 роки тому +2

      do you mean like a rhombus?

    • @seekpodcast
      @seekpodcast 2 роки тому +2

      @@remus-alexandrusimion3439 Yes, but have the bottom triangle be much smaller than the top one

    • @Chris-jo1zr
      @Chris-jo1zr 2 роки тому

      @@seekpodcast Or just one triagle! 2 grasses for the price of 1!

    • @seekpodcast
      @seekpodcast 2 роки тому

      @@Chris-jo1zr 1 triangle looks a bit off. I’ve tried it myself. I think you definitely need at least 2.

  • @alexevaldez
    @alexevaldez 2 роки тому +86

    Good video! A good next steps for your optimizations are:
    Textured cutouts rather than full poly grass.
    Occulusion drawing (rather than drawing everything from a circle. Do it like the line of sight)
    Lod grass. The farther the grass the less detailed it should be~
    Then colored grass would be an awesome next visual xD

    • @overphildev
      @overphildev  2 роки тому +7

      Thanks! Looks like I have a long way to go on grass still

    • @smol.TomatenSuppe
      @smol.TomatenSuppe 2 роки тому

      agreed

    • @kylemordaunt1896
      @kylemordaunt1896 2 роки тому

      Just seen this and agree, my msg is now useless haha

    • @TechArtAlex
      @TechArtAlex 2 роки тому +4

      We're reaching a point where polygons are so cheap to render that textured cutouts aka opacity masking may actually be more expensive in some cases, mostly due to overdraw.

    • @alexevaldez
      @alexevaldez 2 роки тому

      ​@@TechArtAlex it depends, specially which part of the old will you use it. also cutouts arent taxing to where I've been using it. the polygon problem isn't a big deal until you use it on hundreds and thousands of objects like what happened in the video. you can see on his stats alone the GPU really took a toll. even just shaving a few polys would be good enough.
      Neglecting polys can be a huge bottle neck on optimization in the future.

  • @SirHorned19
    @SirHorned19 2 роки тому +96

    I like the tree shaking a lot more than the camera doing so. Maybe just add the screen shake on the last hit, when the tree explodes (Or when it hits the ground in the future perhaps). I think the problem with the tree shake right now is how the base of the trunk is moving, when really that part should be static.
    I think you should use the camera shake when getting hit by enemies instead, maybe add a red vignette or a blue one since you play as a robot (electricity/sparks).

    • @overphildev
      @overphildev  2 роки тому +2

      I'll keep that I mind

    • @N1ghtR1der666
      @N1ghtR1der666 2 роки тому +1

      @@overphildev in the same way a grass shader will morph the grass mesh more at the top that the bottom you could apply the tree shake more at the top than the bottom

  • @smiles9882
    @smiles9882 2 роки тому +145

    I feel like there's too much grass, maybe have areas with some less dense grass clumps and areas where theres none at all, ferns and different species of fauna will help as well
    Also a way to improve performance further is make it so the further away something is from the player the less polygons it uses so you can be be able to render in the entire map from one spot as well as increas ethe performance of the game.

    • @overphildev
      @overphildev  2 роки тому +9

      Good point I will definitely be tweaking it

    • @HyuganGaming
      @HyuganGaming 2 роки тому +6

      this + also some textures (not for the grass, but the ground itself) could be a good idea
      theres also URP to make things look even better

    • @michieltjjj7821
      @michieltjjj7821 2 роки тому +6

      In addition to this, I'd add some sand near water rather than have tons of grass on your coastline :)

    • @shannenmr
      @shannenmr 2 роки тому +5

      With GPU instancing you can still do scale variation for free so that can help so it doesn't look so uniformed and it can help hide holes and reduce the amount you need on screen.
      Also you probably don't need to apply Wind (World Position Offset) for grass mid to far from your character.

    • @remus-alexandrusimion3439
      @remus-alexandrusimion3439 2 роки тому +4

      This is the way. LOD is a must have for any kind of outsy game. Keep that in mind for trees, grass, rocks, whatever you put in the world. Even enemies/other players (in multiplayer) can dramatically impact performance (or lack thereof). Just mind how you do LOD because it might become visible that you're doing it if done wrong. usually the best pointer is trying to keep the silhouette the same regardless of LOD.

  • @kihayu
    @kihayu 2 роки тому +4

    Some tips on how to improve the grass (stolen from Breath of the Wild):
    - Zelda renders every blade of grass separately. It uses a straightforward model with 8 vertices for the sides (4 on each side) and another 4 in the vertical center. This allows you to make the blade more 3d like by bending on the two vertices in the middle. This 3d model has the shape of a rectangle and isn't in the shape of a blade. It uses a texture of a grass blade that bends however you modify the 3d model. This allows you to have a more complex texture. I hope I described that enough. Just ask for more information.
    - To increase the grass distance, replace the (already simple) model with another one that is more simple with like 6 or 4 vertices in the distance. It will look like normal grass at that distance and you don't have to animate it which also improves performance.
    - At a certain distance, don't render every grass blade. Render only every 2nd or 3rd or 4th blade.
    - Don't let the grass blades pop in. Use a smooth transition to fade them in or out.
    As I said if something is unclear or if you have some further questions, just ask. Maybe I can help :)

    • @overphildev
      @overphildev  2 роки тому +1

      All good suggestions I think the fade in instead of pooping I'm would look really good

  • @Mighty_Oak214
    @Mighty_Oak214 2 роки тому +27

    I think the sky box does really improve the look of the game. one thing I would say is that it looks more realistic than everything else in the world right now so that's maybe why it looks a bit off. maybe you could add some really simple looking cartoonish clouds that slowly move off and disappear a bit like how the Minecraft clouds do. anyways loving the game :)

    • @overphildev
      @overphildev  2 роки тому +3

      Yeah good point

    • @theFishy_
      @theFishy_ 2 роки тому +1

      @@overphildev there is a unity option for custom clouds that look realistic, its called volumetric clouds

    • @interstellardragoncg
      @interstellardragoncg 2 роки тому +2

      You should try scrolling a noise texture over the ground to make it feel like the clouds really exist. This would really help make the world feel more real and immersive.

    • @overphildev
      @overphildev  2 роки тому

      I'll have to check that out thanks

    • @wetsaapbrehh7839
      @wetsaapbrehh7839 2 роки тому

      @@overphildev You would probably be better off with some 2D clouds vs volumetric would match your style as well as be much more optimized.

  • @heresjohnny7550
    @heresjohnny7550 2 роки тому +2

    Your welcome for sending the video!

  • @Danntens
    @Danntens 2 роки тому +3

    Everybody: „Damn, we need grass“
    Me: „His mouse is on the left side of his keyboard“

    • @overphildev
      @overphildev  2 роки тому

      That's what happens when you record upside down

  • @lg03812
    @lg03812 2 роки тому +15

    I’d suggest having geographic landmarks in your world. It’s a good way to not get lost when exploring a new world. For example in ARK Survival there are unique terrain features in different locations. Once you see a giant mountain or cave, you know where you are!
    Regardless, loving the content, keep it up! Really enjoying watching the progress!

    • @overphildev
      @overphildev  2 роки тому +5

      I am planning to add point of interest in the future. I have some fun ideas for that

  • @obrooks
    @obrooks 2 роки тому +4

    Nice progress as always! I think for the terrain, it might improve the look of the hills by increasing the roughness of the perlin noise to combat that smooth look - maybe even increasing the roughness only on the hills, so that you still keep those nice rolling grassy meadows. Also spawning rocky cliff pieces on steep terrain could help with it looking bare when the grass stops - not sure what the performance would be like though. Keep it up!

    • @obrooks
      @obrooks 2 роки тому +2

      And adding noise in the grass shader for the colour, so you can have patches of grass that vary visually, to help break it up 😄

    • @overphildev
      @overphildev  2 роки тому +1

      I'll keep that in mind. Im sure there is plenty more I will do to the terrain before I'm finished

  • @dalecranston7343
    @dalecranston7343 2 роки тому +94

    I think it would be nice to have a more hilly world rather than a flattish one

    • @overphildev
      @overphildev  2 роки тому +11

      It is something I will definitely tweak a bunch before I'm done

    • @XvirusX
      @XvirusX 2 роки тому

      @@overphildev i think this is up to the Developer to decide and not fans

    • @qar_ty7732
      @qar_ty7732 2 роки тому +19

      @@XvirusX you know suggestions exist

    • @Andrew-pq3lj
      @Andrew-pq3lj 2 роки тому +1

      Maybe keep the flatter terrain and make a mountain model that you can spawn in like trees?

    • @XvirusX
      @XvirusX 2 роки тому +3

      @@qar_ty7732 well i dont like hilly world i prefer flat one X'';
      lets see you make npc climb this mountain

  • @Glooberloob
    @Glooberloob 2 роки тому +1

    the brightness from the skybox looks great in my opinion! love seeing your progress

  • @dev.midnighthays
    @dev.midnighthays 2 роки тому +7

    I want to say this is an really good start to making terrians!
    I am struggling rn with developing mine for my new game and I want to say don't let this part of level design mess with you. it takes a long time but in the end it will determine the game level

    • @overphildev
      @overphildev  2 роки тому +1

      Yeah it's definitely a drag but very important

    • @dev.midnighthays
      @dev.midnighthays 2 роки тому +1

      @@overphildev Just keep your head up mate! before you know it your project will be doing well!

  • @sammyn.9141
    @sammyn.9141 2 роки тому +2

    Love the new light! I also like how it is flatter more.

  • @sanderschat
    @sanderschat 2 роки тому +4

    when you see hills, in real life or virtual, you wll get a sense of perspective. Suddenly you realize how 'far' away stuff is, how grand the scenery is.... so adding a few distance hill might give a sense of 'scale' to your world too.
    Great to follow your work!

    • @overphildev
      @overphildev  2 роки тому +1

      That's a good point, maybe in the future I will add them back in

  • @lejodev
    @lejodev 2 роки тому +2

    I really love the new skybox and lighting, keep up the great work, it looks amazing

  • @caden5936
    @caden5936 2 роки тому +4

    I honestly really like the flatter worlds, it makes the environment look so much more vast and pretty

  • @deepcanionstudio
    @deepcanionstudio 2 роки тому +2

    i think that making the top of the grass brighter or the bottom darker would be a great effect to fake ambient occlusion, also randomly scaling the grass can make it look more natural

  • @LemurG
    @LemurG 2 роки тому +2

    I love acerola’s videos so it was cool you found his grass video! He makes a ton of videos about post processing and such and they are super useful

    • @overphildev
      @overphildev  2 роки тому

      Yeah I might be using him again when the time comes for that stuff

  • @SalvadorMusica98
    @SalvadorMusica98 2 роки тому +2

    You could use occlusion culling, instead of chunking the terrain. It renders only what the camera sees (within a group of static objects).

  • @HatPeasyCat
    @HatPeasyCat 2 роки тому +1

    this game will turn out to be amazing! You improve fast

    • @overphildev
      @overphildev  2 роки тому

      Thank you I'm trying to keep a good pace

  • @Fearlez_11
    @Fearlez_11 2 роки тому +2

    this channel is underrated! glad i found this masterpiece before im late :)

  • @almostabsent5464
    @almostabsent5464 2 роки тому +1

    It's first video I saw from you and it's so nice watching ur journey of making a game.
    I was sure you gonna mention the way of rotating grass-faces to face player's camera, it wouldn't look as good as the final result though so nice work so far

  • @forbutinactive
    @forbutinactive 2 роки тому +2

    I suggest making LOD models (level of detail), basically the model gets less and lass detailed the farther away from the camera it is, so it will look nice close to you and you wont be able to tell that it looks bad far away, and if you want to have, lets say, a mountain, it would look weird to have it be completely smooth, so you can have it just be low poly and it wont even be noticeable, hope this helps :)

  • @LemuriaGames
    @LemuriaGames 2 роки тому +1

    Vegetation Studio is on sale from time to time and really worth it. I'm experimenting with a scene right now that brings Unity standard terrain trees and grass down to single-digit frames while VS still runs it at 50 fps.

    • @overphildev
      @overphildev  2 роки тому

      Hmm might have to give it a chance then if it goes on sale

  • @RonuPlays
    @RonuPlays 2 роки тому +2

    Woah, the game is really taking shape, can't wait to see what comes next! Also, I personally like the flatter terrain, I think it it fits with the overall feel.

    • @overphildev
      @overphildev  2 роки тому +1

      Thanks appreciate the feedback

  • @zachooray
    @zachooray 2 роки тому +2

    Depends on what you're going for, but turning off the shadows on your grass and using SSAO ( screen space ambient occlusion) might look better

    • @overphildev
      @overphildev  2 роки тому

      Hmm that could be interesting I'll have to play around with that now

  • @ZeoWorks
    @ZeoWorks 2 роки тому +2

    Grass is an absolute nightmare in Unity.
    Perhaps remove the realtime shadowing of the grass and add a gradient to the grass texture instead?
    Another neat trick I learned was to fade the grass' opacity into the ground similar to how soft particles work. :)

    • @overphildev
      @overphildev  2 роки тому

      That is a neat trick I might steal

  • @MathMith
    @MathMith 2 роки тому +1

    I didn't know a thing about GPU instancing before this video so thanks so much man! For the global look of the game I would add a bit of post processing effect like bloom and motion blur and other shiny stuff like that. But I think what would improve it instantly with no cost is to just activate the fog in lighting options in rendering (assuming you work with Unity). That could really give a sense of depth and distance to your game!

    • @overphildev
      @overphildev  2 роки тому

      I honestly didn't know fog was that easy. I'll have to try that

    • @MathMith
      @MathMith 2 роки тому

      @@overphildev yeah it's just one box to tick! Just be careful with the linear fog, it was my favorite one but for some reasons it just doesn't render in the build...

  • @Haapavuo
    @Haapavuo 2 роки тому +2

    Nice! Just one question: How did you calculate that the game now looks exactly 327% better?

    • @overphildev
      @overphildev  2 роки тому +1

      A guestimate. If you calculated something different I can change it

  • @Fredo22
    @Fredo22 2 роки тому +2

    maybe add a level of detail to the grass?

  • @BubbledBasil
    @BubbledBasil 2 роки тому +3

    You could definitely add some bushes and small twigs to make the game more visually appealing , also you can add trees variant colors

    • @overphildev
      @overphildev  2 роки тому

      Plenty more still to come. Just wanted to get it started in this video. Bushes and things will be added soon

  • @potatoesss6174
    @potatoesss6174 2 роки тому +1

    Your game looks really cool! I think the tree shaking looks better than shaking the camera tho >()

    • @overphildev
      @overphildev  2 роки тому +1

      Yeah I think I'm going to change it back

  • @PeterSedesse
    @PeterSedesse 2 роки тому +1

    There is a free asset called ' per layer camera culling' that can do a lot of heavy lifting for that type of optimization. You assign objects to a layer, and then set the distance to show objects on that layer. For instance, I have a layer called ' tiny ' and add all little sticks, sea shells, acorns, weeds and stuff like that.. and have the distance at 10 meters. and it just works. Since the layer of a prefab is set in the inspector, it doesn't matter if it is pre-placed or added at runtime.

    • @overphildev
      @overphildev  2 роки тому

      Oh that's cool. I'll try it out

  • @fernwaerts
    @fernwaerts 2 роки тому +1

    Looks already pretty nice :) and I totally agree not having grass in your game is not an option in 2022.
    Small remark: You could also use a noise texture that spans across your world for color variation of the grass: For each grass object you would look up the value of the noise texture and use it as a multiplier. In this way you can get darker / lighter grass very cheaply.
    You can also move the noise texture (or use another one) to simulate cloud movement.

  • @sammyn.9141
    @sammyn.9141 2 роки тому +3

    I think a cool feature to add more life into the map would be different type of terrain/biomes. Possibly like snow terrain, sand terrain, etc. Just a thought!!

  • @redmatter20
    @redmatter20 2 роки тому +1

    Fantastic vid! Im not sure if this has been menitioned yet but I think if you are having issues with finding items on the ground you could take a borderlands approach and add a small beacon on each item depending on the type and rarity of the object. Also subscribed, I love finding more game dev youtubers

  • @holyshiftstudio
    @holyshiftstudio 2 роки тому +1

    Great job, this was a really interesting video

  • @datdev
    @datdev 2 роки тому +2

    Is it just me or does this game remind me of the old windows desktop screen saver?

    • @overphildev
      @overphildev  2 роки тому +1

      Who wouldn't want to run in that field though

  • @themerpheus
    @themerpheus 2 роки тому +1

    There are couple of things to do with grass but one is frustum culling with jobs and burst. The other is a little harder but effective. It is by writing a software rasterizer for grass and drawing it by yourself to the screen.

    • @overphildev
      @overphildev  2 роки тому

      One of those options sound way easier lol

  • @aryszin
    @aryszin 2 роки тому +1

    Besides chunks, add if something is behind a certain degree from where the camera as facing, that it isn't displayed!

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

    Great work, the game is really improving in looks. It reminds me of the wii sports golfing arenas which I always loved the atmosphere of growing up.

  • @wazaDev
    @wazaDev 2 роки тому +1

    the game is coming along very wonderfully, the grass really makes everything pop. A bit more post processing and the quality will be awesome

  • @zeroxplay10
    @zeroxplay10 2 роки тому +1

    You can use raycasts and/or colliders to stop the items from appearing from afar and through the ground.

  • @vanilla2425
    @vanilla2425 2 роки тому +1

    I think the game "pops" a lot more with brighter colors and lots of green vegetation. It adds a lot of juxtaposing visuals with the white robots in a way that adds clarity and makes the game look visually interesting.

  • @CG_CAKE
    @CG_CAKE 2 роки тому +1

    Ive heard compute shading is more performant it works 100x faster than cpu but more difficult to master .

    • @overphildev
      @overphildev  2 роки тому +1

      Any chance you're a pro at it?

    • @CG_CAKE
      @CG_CAKE 2 роки тому

      @@overphildev no I tried but It gave me a head ache , mabe I need more time

  • @polimetakrylanmetylu2483
    @polimetakrylanmetylu2483 2 роки тому +1

    About instancing, obligatory:
    Your models are already sent to the GPU. The problem is just that issuing draw call is costly. Doing thousands of draw calls every frame is worse than doing one instanced call, even if they are rendering the same amount of geometry
    What you could've confused was a thing in OpenGL or older Direct3D where draw calls are actually blocking, like IO. Doing a draw call in those stops CPU from executing until the GPU acknowledges it finished work

    • @overphildev
      @overphildev  2 роки тому

      Very interesting I'll look into it more

  • @andrewkauke
    @andrewkauke 2 роки тому +1

    For game optimization you might want to try altering the grass density bases on distance from the player. An area that’s far away but still in a loaded chunk doesn’t need to have as much grass to look convincing

  • @Lightningsquid
    @Lightningsquid 2 роки тому +1

    I really like how this looks but you should add more materials to the ground like mud and such!

    • @overphildev
      @overphildev  2 роки тому

      Much more improvements to come

  • @OkOkOkIMightKnowYou
    @OkOkOkIMightKnowYou 2 роки тому +1

    Instancing reduces draw calls, what’s described here sounds like batching geometry.

    • @overphildev
      @overphildev  2 роки тому

      I'll have to look into it more. I am just starting to lean about this stuff so I wouldn't be surprised if I got something wrong

  • @Aurich88
    @Aurich88 2 роки тому +1

    I think the tree shake looks better than the camera shake. Maybe try shaking it without moving the object origin (assuming the origin is the base of the tree) so it looks less like the tree is just shivering 'cause it's cold.

    • @overphildev
      @overphildev  2 роки тому

      Yeah I think that is a good idea

  • @SuperSertyuio
    @SuperSertyuio 2 роки тому +1

    Next step in optimisation is frustrum culling! Unless it is on, which i don t think so! Basically, it makes the game render only what the camera can see! That will definitely improve performance by alot! Also, good luck! Game starts to look good! Keep up the good work!

    • @overphildev
      @overphildev  2 роки тому

      Thank you I will try that next

  • @coolyo_kai
    @coolyo_kai 2 роки тому +2

    The sky box makes EVERYTHING better its much better but a different HDRI sky box would probably do the same for the game so tweak it how you want 👍 the game is also at the point where i think the Graphix are good enough that it wouldn't be something to stop me from buying it and wouldn't annoy me.

  • @xaviercheney4831
    @xaviercheney4831 2 роки тому +1

    The grass looks beautiful!

  • @sometf2player752
    @sometf2player752 2 роки тому +1

    the brighter lighting looks way better

  • @GIRGHGH
    @GIRGHGH 2 роки тому +1

    I would change the ungrassed grass texture to look more like the grassed grass, so the ungrassed grass doesn't look so flat, cause it stands out a lot even though it's at a distance.

  • @philip9698
    @philip9698 2 роки тому +1

    The grass makes it look so much better. Its coming together

  • @lyvenn
    @lyvenn 2 роки тому +1

    I like the new light level, I didn't notice anything really off about it. I also would add in culling if you haven't already, or making grass further away from you have a lower detail mesh (maybe just 3 vertices for the furthest grass before it stops being rendered)

  • @Difinitive-thoughts
    @Difinitive-thoughts 2 роки тому +1

    the actual best way you could've done the grass so it does lag is to code it so it makes one BIG object that covers the whole land and so the GPU only needs to take care of one (
    code it so it ray traces the whole map and finds the exact angle and depth the grass needs and join all the grass objects together
    )

    • @overphildev
      @overphildev  2 роки тому

      Hmm that's an interesting idea

  • @JasonKazz
    @JasonKazz 2 роки тому +1

    I agree the comments saying the grass should be a bit smaller. Either that or maybe you could make the robot a larger? Anyways, I am always excited to see improvements you make. Great job!

  • @Brixxter
    @Brixxter 2 роки тому +1

    The bright colors look so much better in my opinion

  • @AceGrip
    @AceGrip 2 роки тому +3

    For the grass personally, i think you should have 'patches' of grass in the chunks, instead of having 100% filled, see if you can lower the amount of grass anyways (maybe it improves framerate). And also perhaps make the grass a bit lower in height.
    With Mountains/hills, i think you should have some hils, and if you are planning on implementing mines/caves in your game then at least a couple mountains with caves in them would be a nice atmospheric change. (myb have loot chests in the "mountain caves")

    • @overphildev
      @overphildev  2 роки тому +1

      Lowering the amount of grass would definitely improve framerate amd if it looks better too that's a win win

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

    bro literally just discovered Frustum and Occlusion Culling (where he deletes grass that you don't see), and mixed it with World Streaming (where he generates parts of the map that matter to you, and de-renders the rest), all in one video. Good job :)

  • @ashenr1der
    @ashenr1der 2 роки тому +1

    I think you can improve the processing speed if you decrease the tesselation based on distance and make further away parts less dense. I had a similar issue to you where I needed grass in a low poly proc gen vr game I was working on and I modified some code I found online to work like this, and I went from sub 60 fps to well over 100 or more if I recall correctly.

    • @ashenr1der
      @ashenr1der 2 роки тому

      if (averageDist >= _TessellationDistFar)
      f.edge[0] = f.edge[1] = f.edge[2] = f.inside = _TessellationUniformAtFarDistance;
      else if (averageDist >= _TessellationDist)
      f.edge[0] = f.edge[1] = f.edge[2] = f.inside = _TessellationUniformAtDistance;
      else
      f.edge[0] = f.edge[1] = f.edge[2] = f.inside = _TessellationUniform;
      even i hardly understand the code (i know very little about shaders) but it just has 3 density settings for the grass tesselation so that distant grass is less dense, which can even remove the harsh lines caused by render distance cut offs
      I'm sure there is a smoother way to do this though

    • @overphildev
      @overphildev  2 роки тому +1

      Wow that would be really great I'll have to try it out. Thanks for providing the code too

    • @ashenr1der
      @ashenr1der 2 роки тому

      ​@@overphildev Yeah, I hope it helps!

  • @thebestgamer5248
    @thebestgamer5248 2 роки тому +1

    I would recommend adding fog. You could also make the skybox brighter and make the grass less saturated.

  • @HIBIKIent
    @HIBIKIent 2 роки тому +1

    Additional to Shadows, if you disable directional shadows you can add contact shadows in its place, it's much cheaper solution if you still want to keep shadows (however not necessary for stylised games).
    Also consider additional camera frustum culling of your chunks, this adds some CPU cost on top but it has an additional save to GPU from not rendering behind view.
    Mesh vertex density
    The smaller the triangles to pixel ratio is, the absolute worse GPU processing will be, along with alpha cutout overdraw, these two alone can cripple performance more than the amount of veggies.
    Finally frame debugger, you want to check this regularly that your instancing or instancing indirect meshes are correctly rendering and not failing forcing it through a different render loop ( or worse a static batch render which should already be disabled.)
    GL :3

    • @overphildev
      @overphildev  2 роки тому

      Thanks for all the suggestions I'll look into them more

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

    Presumably you can also use an LOD system with the chunking as well to switch to basically just simply billboard textures when it's further away and you still want something but it doesn't need to be as good.

  • @dontwanttobeknown3611
    @dontwanttobeknown3611 2 роки тому +2

    Little Feedback: The flatter world is a 50/50 for me, I liked those mountains but the plains appear to ne nice too. One Part I dont like atm is the new shaking Animation. I think the old one where only the tree shakes was great, so you could change that back… also it is really annoying when the camera shakes all the time. You can do that at heavy attacks or earthquakes, Stuff that doesnt happen that often as punching trees. Another great Improvement was the sky, I really like the look of it.
    Keep the great work up, I really enjoy ur content

    • @overphildev
      @overphildev  2 роки тому

      Thanks for the feedback, I am also leaning towards putting the tree shake back and just keeping the screen shake to taking damage.

  • @eliman2006
    @eliman2006 2 роки тому +1

    These changes are great! I cant even Imagine how long it took. I think the lighter sky complements the world well and you should keep it that way but maybe have transitions for things like fights or night. idk. But keep up the crazy coding man

    • @overphildev
      @overphildev  2 роки тому

      It definitely took some time but glad you like it

  • @walker1054
    @walker1054 2 роки тому +2

    Since you mentioned Horizon and this video is largely about optimisation(like most game dev stuff really) it reminded me of that Horizon behind the scenes thing where you can see which chunks of the world are being rendered when the camera moves. It's here if you wanna see what I'm talking about. Horizon has like hour long developer videos about how they did their foiliage in general, like placement and design and how it's rendered and stuff, might give ideas for this even if you would be doing a much more basic version.
    /r/gaming/comments/7v85ff/heres_whats_happening_in_horizon_zero_dawn_every/

    • @overphildev
      @overphildev  2 роки тому +1

      That's really cool! I had never heard about this thank you

    • @diggerpy
      @diggerpy 2 роки тому

      Are you talking about occlusion culling

  • @BeautyBoy4577
    @BeautyBoy4577 2 роки тому +1

    I would test if a max cull distance for the individual grass instances would improve the performance even further.
    I read some people who advice you to use grass meshes with 2 polygons only. I wouldn't say that this is always the best option, as in some circumstances this can lead to quad overdraws very easily (if you heavily rely on the alpha texture and have a lot of unused space in your grass mesh), which decrease performance and you have a hard time giving your grass a wind animation which makes them much more alive and less static.
    I would recommend to use more polygons and model the grass so it kinda has the form of a single grass, and use a alphacut texture to make it look more detailed and use your uv space more efficiently. This way you can reduce quad overdraws. Then use LODs to reduce their polycount over distance. That's what i do with my grass in unreal, but i think that in unity it shouldn't make a big difference.

    • @overphildev
      @overphildev  2 роки тому

      Cool very interesting I'll have to check it out

  • @wetsaapbrehh7839
    @wetsaapbrehh7839 2 роки тому +1

    I would look into crafting an auto material with multiple grass types, dirt, rocks sand, underwater coral, seaweed and even bushes and ground clutter and based off of predetermined height and slope it will apply the correct material and meshes to your landscape. I have created quite a few for unreal I haven't used Unity in awhile but I'm fairly certain this is possible there as well. It takes a bit of time to set up and tweak to our liking but it will drastically help speed things up when prototyping new levels in the future.

  • @lolly166541
    @lolly166541 2 роки тому +2

    I have to say, the brighter Version sure suits the Game a lot more! The Style in which everything is rendered suits the more poppy colour you get from the new Skybox! I'd keep it. Makes it a lot more Cartoony.

    • @overphildev
      @overphildev  2 роки тому +1

      I agree a cartoony look would suit it very well

  • @abdulahmad2680
    @abdulahmad2680 2 роки тому +1

    removing the shadows from grass might help too. although i don’t know if the shadows are also gpu instanced.

  • @cosmomnom
    @cosmomnom 2 роки тому +1

    Maybe you could introduce some randomness to the density of the grass patches and the coloring of the grass blades. Off-coloring each individual blade and perphaps shading them depending on their height could make them pop out more and look less like one uniform green grassy shape. Also, lod grass could help the performance issues, you don't need that many polygons, especially for grass that is further away.

    • @overphildev
      @overphildev  2 роки тому +1

      All good ideas. I will try to add those things

  • @AKNightHawk
    @AKNightHawk 2 роки тому +1

    Howdy. If you are going to get an asset from the store I would highly recommend Amplify Imposters. It can make any game object that you have on your map an imposter and will really improve the FPS to it. Basically it turns the 3D object into a 2D plane and can really improve performance. The object will still look 3D. And at good distances you wont be able to tell it is a 2D plane. Also make sure you lod everything. Either by getting a LOD generating asset or doing it manually in a 3D program. Lods really help in that department. Mantis LOD Editor - Professional Edition comes with a standalone program to lod objects. And makes it easy to lod things directly in the editor or in the standalone program.
    Lastly I would actually get Vegetation Studio it would really help with rendering grass and trees. But wait for when assets go on sale. Or get them through humble bundle. Having assets can actually make things go a lot better in the long run.

    • @overphildev
      @overphildev  2 роки тому

      Thats really interesting I'll have to look more into it.

  • @coreragestudios3430
    @coreragestudios3430 2 роки тому +2

    5:04 for this I would say learn knock back

  • @BrockRocksGaming
    @BrockRocksGaming 2 роки тому +1

    The grass seems tall. And at first I thought that was bad, but I suppose no one is there to mow the grass in a robot apocalypse

    • @overphildev
      @overphildev  2 роки тому

      Yeah I might decrease the size anyways to make it look better

  • @alexfroest8432
    @alexfroest8432 2 роки тому +1

    I like the new skybox and the increased light

    • @overphildev
      @overphildev  2 роки тому

      Great it's really been growing on me

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

    You can absolutely use GPU instancing on trees. Collision isn't done on the GPU so that shouldn't be an issue. Though that should basically be a checkbox on the tree material to tell the game to do so inside of Unity. But if you could only instance completely static objects that are never altered it'd be completely useless in anything other than a static scene.

  • @kloaken1
    @kloaken1 2 роки тому +2

    If your thanking on making a terain editing tool or something alike the you should to that soon because it's going to be very hard implement that in the future.

  • @masonleesummerhill
    @masonleesummerhill 2 роки тому +1

    i think if you made the light from the sky warmer or changed the time of day to be closer to dawn/dusk that the feel would be much nicer. also you could not only chunk the grass, but allow chunks that are farther away to be lower res?

  • @thereviewerofgames5353
    @thereviewerofgames5353 2 роки тому +2

    Another great video

  • @Dorian.473x
    @Dorian.473x 2 роки тому +3

    Good job bro

  • @Kaltinril
    @Kaltinril 2 роки тому +1

    what about oct-trees or quad-trees to help identify the grass locations?

  • @DennisUlijn
    @DennisUlijn 2 роки тому +1

    Around 4 minutes you're basically talking about LOD, where grass is rendered 100% when close, and 0% when far away. You could investigate how it would feel if you use a gradual fall off, multiple levels of LOD or even use a texture that looks like grass stems. This would also help when the game is played on low graphics settings, where foliage rendering is simply way too much.

    • @overphildev
      @overphildev  2 роки тому

      Yeah I agree the cutoff right now is too drastic. I think a fade would look pretty nice

  • @gofrisuto
    @gofrisuto 2 роки тому +4

    Great video! I'm not in a state, where I can write a proper constructive criticism, I need time to collect my thoughts, but I wanted to write a comment for the algorithm. Expect to see this comment change soon.

  • @SuperMatthew345
    @SuperMatthew345 2 роки тому +1

    Looks fantastic!

  • @becoldandjustforyou
    @becoldandjustforyou 2 роки тому +2

    You should try maybe making the grass shorter and adding some bushes and/or small flowers, you could probably take some inspiration from @Codeer , their game looks similar to yours
    For example, fog

  • @Cunnah101
    @Cunnah101 2 роки тому +1

    You can add grass via script to a terrain, you need to modify the terrain data. It is controlled via the detail properties.

    • @overphildev
      @overphildev  2 роки тому

      I'll have to look into it more

    • @Cunnah101
      @Cunnah101 2 роки тому

      @@overphildev I am working on a similar thing and its based off some older work so if I remember when I get round to it I will send some info if you like.

    • @overphildev
      @overphildev  2 роки тому

      Yeah that'd be great thanks

  • @xp2645
    @xp2645 2 роки тому +1

    I think the sky looks a bit weird right where its going behind the ground on the horizon, maybe fog could help

    • @overphildev
      @overphildev  2 роки тому

      I think fog would help with a lot of things

  • @susannabean5973
    @susannabean5973 2 роки тому +1

    Rather than using an actual, modeled blade of grass, use a flat plane (you can use 2 flat planes in an X pattern for an even better looking result) with an alpha clipped/transparent grass texture. This allows you to have multiple blades of grass per grass instance since the blades are actually just a texture and keeps the poly count even lower than what you have here. As well, you can cover a larger area of terrain with one grass instance this way. This is how games have done it for years now, great examples being the elder scrolls oblivion/skyrim if you want a good example to study (oblivion especially has really dense grass despite being a game from 2006 this way).

  • @susannasu6824
    @susannasu6824 2 роки тому +1

    Looks great, i like more hills, and maybe make the water look better

  • @LukyClips
    @LukyClips 2 роки тому +1

    the tree shake looked better ngl

  • @adam-sl2ih
    @adam-sl2ih 2 роки тому +1

    I think a bit of fog would help the look a lot as well as hide the grass popping in and out.

  • @JovenDecarne
    @JovenDecarne 2 роки тому +3

    Make the grass model bigger so you don't have to generate as many gameObjects but still cover the same area

  • @voodoo5191
    @voodoo5191 2 роки тому +1

    I'm in a similiar situation as you were xD. I'm making a game about fishing and defending your island from planes (yeah sounds weird ik xD). My terrain is also procedurally generated. Right now it looks ok but your video convinced me to add grass since it did really help your game so I think It'll work in mine too.

    • @overphildev
      @overphildev  2 роки тому +1

      That's a very it interesting game idea curious how it turns out. But yes I was surprised just how much grass added

  • @florianmaitre-maudhuit3567
    @florianmaitre-maudhuit3567 2 роки тому +1

    I find the new light caused by the new skybox better than the older

  • @dbweb.creative
    @dbweb.creative 2 роки тому +1

    technically, you could use some empty objects with colliders to prevent player from going through the trees, and keep the graphics on gpu memory