2D/3D Fog In Unity | VFX Graph | 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 30

  • @gdthatbigderp2375
    @gdthatbigderp2375 2 ปีที่แล้ว +2

    Legit most underrated youtuber I've seen. I saw much youtubers that were so much underrated, but you are on next level.

  • @8BitsPerPlay
    @8BitsPerPlay 2 ปีที่แล้ว +1

    Happy to find more VFX Graph tutorials coming out on TH-cam.

  • @hhcdghjjgsdrt235
    @hhcdghjjgsdrt235 2 ปีที่แล้ว +1

    great contents. happy to find your channel

  • @MX1732
    @MX1732 4 หลายเดือนก่อน

    Is there a way to toggle the fog?

    • @GameDevBox
      @GameDevBox  4 หลายเดือนก่อน

      there are a couple of ways, the easiest one is to just disable the VFX. but you can definitely make a boolean variable to just toggle. or increasing, decreasing the amount of fog in once.

  • @secretaxon1328
    @secretaxon1328 7 หลายเดือนก่อน

    I have a problem, apparently the value of the Exposed Vector3 is updated according to the position of the player since when checking the vfxObject inspector, it shows it that way, however, it does not seem to affect the fog when I enter it.
    On the other hand, if I disconnect the CollidePos parameter from the Collide with sphere node, and move the node's default sphere, it works perfectly. It's the only problem I have. By the way, great tutorial.

    • @secretaxon1328
      @secretaxon1328 7 หลายเดือนก่อน

      solved, for those who have the same problem, you just have to change the sphere from local to world in the button next to where it says sphere in the collide with sphere node.
      Thanks friend for the tremendous tutorial.

  • @jxturbo4489
    @jxturbo4489 11 หลายเดือนก่อน

    just to ask, id like to adjust the fog so that i can expand the radius of what i see with a variable. But it doesnt even seem to accept small values like 0.01 and treats it as though the radius of the collider is 1

    • @GameDevBox
      @GameDevBox  11 หลายเดือนก่อน

      for changing the collide sphere you have to expand the radius with a variable and control it in the script, but I can't find why it shouldn't accept a small value I should test it by myself

    • @jxturbo4489
      @jxturbo4489 10 หลายเดือนก่อน

      @@GameDevBoxnote: i eventually did manage to find a workaround by shrinking the radius of the collide sphere for the fog particle. But yeah i still don't get why this happens 😅

  • @UnGlame
    @UnGlame 5 หลายเดือนก่อน

    Thanks for the tutorial! I was wondering if it's possible to control the number of colliders at run-time by script (i.e. adding/removing colliders)?

    • @GameDevBox
      @GameDevBox  5 หลายเดือนก่อน +1

      Glad that it helped 💚 I checked out the Unity Docs but couldn't find a way to give arrays of colliders. so my best bet is to create another Collide with Sphere if it would be possible. I think we can implement something without using colliders but I'm not sure how, if I find something about it I will let you know. Thanks for watching!

    • @UnGlame
      @UnGlame 5 หลายเดือนก่อน

      @@GameDevBox yeah I couldn't find a way either :( It would need to be totally dynamic to clear up patches of squares of the fog as the game progresses. I'm currently looking at SDF collision for possible solution.

    • @jadsa
      @jadsa 12 วันที่ผ่านมา

      @@UnGlame Did you fing a solution? I have the same problem.

    • @UnGlame
      @UnGlame 12 วันที่ผ่านมา

      @@jadsa I ended up not needing to do that anymore. But I would say it's quite difficult to do it this way, so if it helps maybe you could have multiple of the vfx object and manage their lifetime by creating and deleting them at runtime

    • @UnGlame
      @UnGlame 12 วันที่ผ่านมา

      Or enabling/disabling

  • @margitappreciationaccount996
    @margitappreciationaccount996 5 หลายเดือนก่อน

    hello sorry to disturb you do you by chance know how can i apply the colide with sphere to multiple entities in the game and dynamically remove or add sphere to entity that spawn or get killed ?

  • @AnotherJon6613
    @AnotherJon6613 ปีที่แล้ว

    is there a way to "preload" the fog so when the scene loads the fog does not take a second or two to fully populate?

    • @GameDevBox
      @GameDevBox  ปีที่แล้ว +1

      in Initialize (VFX) Use Burst Spawn And Set the value you want to spawn in the first frame. Thanks For watching!

  • @xxozmaxx6211
    @xxozmaxx6211 ปีที่แล้ว

    Hi buddy, I followed the entire tutorial, but at minute 7:35, I encountered an issue. In my menu, I have "Transform" instead of "Center." However, I see a "Center" option under "Conform to Sphere." So, how do I proceed?

    • @GameDevBox
      @GameDevBox  ปีที่แล้ว +1

      What is your Unity version? I assume you are using the latest one. Perhaps they have changed the names or placement, but it shouldn't give you an error. Just set the collider position to the player in the script, and it should work perfectly. I think the name "Center" was wrong because of that they changed it to "Transform". "center or transform" these are collider position. I hope it was helpful Thanks for Watching!

    • @xxozmaxx6211
      @xxozmaxx6211 ปีที่แล้ว

      I was able to solve the previous issue, which was occurring because I confused some steps to follow. Now, I have reached the part where I have to edit the script to add character tracking, and for some reason unknown to me, the sphere is not following.
      Edit: I use the new "input system"
      @@GameDevBox

    • @GameDevBox
      @GameDevBox  ปีที่แล้ว

      @@xxozmaxx6211 It doesn't matter which input system you are using, just be sure to Set the correct VFX object, also when you use SetVector3 for the parameter Set The Collider name Exactly Without any difference.

  • @blasen_schlampe1108
    @blasen_schlampe1108 9 หลายเดือนก่อน

    so I have a project using your tutorial and it works great but when I go in see if it works well a problem occurs, I can only see the fog in game if I have the camera REALLY zoomed out and I dont want that, how do I have it so that I can see the fog no matter how close the camera is, its a 2D topdown game
    Edit: Nvm I got it thank you

    • @GameDevBox
      @GameDevBox  9 หลายเดือนก่อน

      I'm glad to hear that you were able to resolve the Problem Thanks for watching 💙

    • @TeachIT_
      @TeachIT_ 4 หลายเดือนก่อน

      What do you mean by "Edit: Nvm I got it thank you" !!! How you solved it :c

    • @blasen_schlampe1108
      @blasen_schlampe1108 4 หลายเดือนก่อน

      @@TeachIT_ oh god that was a while ago. I think it had to do with the layer of the fog