RocketShotgun
RocketShotgun
  • 1
  • 79 699
Volumetric Lighting in ROBLOX and How I Created It
A showcase of a volumetric lighting technique in ROBLOX that I figured out how to do years ago. This is done entirely within ROBLOX and is a relatively basic technique.
Performance:
For me it runs at 60FPS in-game, but obviously results will vary depending computing power and a number of other factors, like density between the beams, the range of the beam box, whether there is proper camera culling, scene complexity, etc.
PC specs:
i5-7600k @ 3.80GHz
GTX 1060 6GB
16GB DDR4 ram @ 2400MHz
0:00 Introduction
1:50 The concept
4:58 Connecting it to the camera
5:31 Potential optimizations
6:11 Removing excessive beams
7:13 Mitigating artifacts
7:56 Lights
8:18 Caustics prototype
9:03 Screenshot slideshow
Переглядів: 79 818

Відео

КОМЕНТАРІ

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

    This is actually so genius!!! I’m gonna try it out 🤯 thank youuuu

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

    Didn't work for me :( and I can't find any other tutorials other than this

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

      I have a free model posted in the pinned comment, if you're having a hard time you can check it out to see how it works

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

    does volumetric lighting still look good with the moon? since im currently trying to make a realistic horror game.

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

      @@Spidxiooo yeah, it looks good at night, too

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

    This map is free ? I see everywhere 😅

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

      its because its the map called "Crossroads" its one of the first Classic roblox Maps

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

      @@TigerPlaysRbx52923 how to get this ?

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

    i did it and my sun wont stop moving

  • @jujhar.
    @jujhar. 22 дні тому

    Beautiful, I love it.

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

    Did you change your thumbnail? I think this is the video i've been searching for week!?!?

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

      @TelaGamer yeah, I changed the thumbnail a little while back. Before it was just a screenshot

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

    this is worst way to do that due performance

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

    Yo this is super cool❤ wish you luck on youtube😊

  • @mr.honkers7986
    @mr.honkers7986 Місяць тому

    oh i figured this out on accident a while ago

  • @BlakeLindsay-v6p
    @BlakeLindsay-v6p Місяць тому

    I have a new technique that kinda optimises it, if you go into blender, get the shape you want a volumetric cloud/fog, give it a particle system, make an icosphere, set the “render as” in the particle system to “object” then pick the icosphere, and under source, set “emit from” to “volume”, then change “jittered” to “random”, mess around with size then apply the particle system. Select all icospheres (except the first one) and join them with ctrl+j, decimate with triangulate till face count is below 10,000, then set a displacement and set it to whatever displacement texture you want and mess around, then go to “edit normals” modifier and give it weird normals (fixing the bottom shaded part) and then import to Roblox, give it a fancy transparent pbr texture and mess with transparency and yeah, that would also work with pointlights.

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

    Does the volumetric lighting makes the game lag a bit more?

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

    you can do this with parts (baking fake light) and the lightray feature in lighting

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

      Did you even watch the video? Sunrays were mentioned but it looks much worse than volumetric light

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

    autism is a super power

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

    Most users on ROBLOX don't even have the power to run this lol Very cool though u earned a sub!

  • @coolboyboy-w6n
    @coolboyboy-w6n Місяць тому

    he was making this while dr disrespect was getting freaky

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

    Honeslty man, this is great. For a game engine that was an old version of unity to its own engine that doesn't look great, this it cool

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

    im guessing this would tank on about 90% of computers

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

      @@mahuba2553 as long as your PC is decently powerful it can run it, my PC uses parts from 2016 and it runs fine

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

    OHH MY PCCCCC

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

    no way this dude did volumetric lighting and caustics accidently. this is actually top ten 999iq plays

  • @Asarchi
    @Asarchi 2 місяці тому

    wtf is that in the thumbnail? gm_construct?

    • @RocketShotgun
      @RocketShotgun 2 місяці тому

      @@Asarchi the thumbnail is from the showcase place that is linked in the pinned comment

  • @zillion8954
    @zillion8954 2 місяці тому

    so just letting eveyone know when future is bright 3 was in beta this same effect could be used with point lights, so lanterns and stuff could cast shadows like in this video. unfortunatly it was patched out, and now it only works for sunlight

  • @waphols
    @waphols 2 місяці тому

    gatekeeping an effect for 6 years... man

  •  2 місяці тому

    That's actually crazy LOL You really did that without coding anything, congrats!!

  • @noobiest99thepro
    @noobiest99thepro 2 місяці тому

    Theres no literal way he was starting with layered water

  • @edwardkoziol5697
    @edwardkoziol5697 2 місяці тому

    When you're in first person, do you see your characters shadow, that was another issue I found with stock lighting

    • @RocketShotgun
      @RocketShotgun 2 місяці тому

      @edwardkoziol5697 no, the character shadow is still invisible in first person. There are free scripts to make your shadow visible in first person, though, which look pretty cool with the volumetric lighting

    • @edwardkoziol5697
      @edwardkoziol5697 2 місяці тому

      @@RocketShotgun Oh, nvm THANKS!

  • @Nekzt_
    @Nekzt_ 2 місяці тому

    Guys, this is the future

  • @debs-3309
    @debs-3309 2 місяці тому

    can you make a cathedral with gothic architecture with the windows with those rays?

  • @xXSteelCapeXx
    @xXSteelCapeXx 2 місяці тому

    An awesome twist on the technique for making fog in the 2010 era :P

  • @MagAgent006-qj5nm
    @MagAgent006-qj5nm 2 місяці тому

    ok dude now teach us how make fading out mesh (only thing i know its about blender alpha erase)

  • @24thmurygin93
    @24thmurygin93 2 місяці тому

    If only you can render it sepretly, and have a blur effect on it for more natural rays

  • @catlover281
    @catlover281 2 місяці тому

    give us the rbxl or a proper tutorial i WANNA USE THIS

  • @hafupaly
    @hafupaly 2 місяці тому

    can you uncopylock your game?

  • @pingeee
    @pingeee 2 місяці тому

    this is actually so cool

  • @KatIsBored
    @KatIsBored 2 місяці тому

    theres a simmilar way some people do it on blender

  • @SealStudiosAviation
    @SealStudiosAviation 2 місяці тому

    Woah!!!!! That is SICK!

  • @NeutronGD_OFFICIAL
    @NeutronGD_OFFICIAL 2 місяці тому

    Dude, that actually looks crazily good. This was definitely the more easier way than using bollboard GUI.

  • @ilyysm
    @ilyysm 2 місяці тому

    so kawaii

  • @PermanentSpik
    @PermanentSpik 2 місяці тому

    He came- He showed us how to make volumetric lighting- He left-

  • @ZacAttackk
    @ZacAttackk 2 місяці тому

    Awesome work dude. I'll try it out myself. I've been working on a retro anime cel-shaded / chromatic abberation effect, i should document a video on it some day.

  • @aidencella4971
    @aidencella4971 2 місяці тому

    If you implemented culling, would objects that’s models are offscreen but have volumetric shadows that should still be on screen also have their shadows disappear?

    • @RocketShotgun
      @RocketShotgun 2 місяці тому

      @aidencella4971 No, nothing would change with the shadows. What I meant by culling was removing excess beams that are off camera and making the beam box fit the camera's field of view

  • @saulgoodman5148
    @saulgoodman5148 2 місяці тому

    you should've kept gatekeeping

  • @boomer_29bc49
    @boomer_29bc49 2 місяці тому

    That really looks cool

  • @khuutznetsov
    @khuutznetsov 2 місяці тому

    So Im not the biggest nerd on graphics. What type of lighting does Roblox already built in at max graphics? Cause I always kinda thought it was volumetric already.

    • @RocketShotgun
      @RocketShotgun 2 місяці тому

      What Roblox has is the sunrays effect, which is screenspace instead of volumetric. This means that it only has access to the information that's displayed on your screen. Basically if you can't see the sun, the sunrays don't exist, so things like what's shown at 0:52 isn't possible with Roblox's effect

  • @piecity4
    @piecity4 2 місяці тому

    now bake it

  • @coupchap2294
    @coupchap2294 2 місяці тому

    we got roblox raytracing before GTA 6 😭

    • @wastoxic
      @wastoxic 2 місяці тому

      What does this have to do with rtx lmao

  • @SakuraNothan
    @SakuraNothan 2 місяці тому

    Cool video

  • @xAz.1u
    @xAz.1u 2 місяці тому

    hey how to make the lighting system big to use in sword fights of the heights map [bro the model is small] 🤔🤔🤔

  • @ultramegakingdom6798
    @ultramegakingdom6798 2 місяці тому

    I think I found a way to fix the bug where it doesn't work on light objects You can invert a part using code with CFrames. Do that and then create another part and make it uninverted in the same position. I haven't tested it yet and will editing this comment once I find out it doesn't work

    • @dovahfruit9503
      @dovahfruit9503 2 місяці тому

      any updates?

    • @ultramegakingdom6798
      @ultramegakingdom6798 2 місяці тому

      @@dovahfruit9503 Yes, the way works. However, it doesn't look as good and it has a much greater cost

    • @Togawaa
      @Togawaa 2 місяці тому

      did it work? If it did, could you make a free model of it?

  • @Chiyochichi69420
    @Chiyochichi69420 2 місяці тому

    Brother you nailed it