Real-Time Dynamic Surface Reflections (Raytracing) Prototype | Roblox

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024
  • In this video, I will be showing you my custom surface raytracing that I built entirely within roblox studio to simulate real reflections dynamically. If you have any ideas for a video, please leave them in the comments down below. If you enjoy my content, consider subscribing!
    -== Other Social Media ==-
    The Grand Development:
    www.roblox.com...

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

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

    TLDR; Make scary ai man, below are just ideas.
    Make a game with all of these demos, imagine a mirror maze with that ai hunting you maybe smoke volumetrics and have it so that when the ai fires it breaks the mirrors, add loud gunshots, lots of vfx. Try to make your players fear the gunshots. Make shake, lighting, loud reloading and cocking. Also incase you didnt see my other comment from the AI video.
    Make it able to swerve, detect lines of fire, and duck into cover. Then give it the ability to hear. Then give it the ability to aim. Finally give it the ability to instil fear in all players. That'd be fun in an fps! (BTW, if it does aim, make it purposefully miss the first time you get out of cover, its more fair.=, it also gives them time to realise their mistake.)
    Make the players footsteps painfully loud, and have everything echo.
    Most importantly, make the AI, sneak in darker areas, and out of sightlines, also make it use sounds to get a rough map. and able to predict motion based on last scene movement. ex; even if you aren't making sounds and it cant see you it will wonder in the direction you went
    Additional idea, two Shepard tones for the background music. One plays when you spot it, or when its very close (so it can silently hunt you till its right behind you) and the other plays always. They fade in and out as the situation changes. Another interesting idea, would be putting in non Euclidian geometry. Have things disappear as you turn corners, or teleport across the map. Only the AI knows how to traverse this. This will make the players fear everything, including the map itself. Also, just for fun, occasionally play the chase music, when it shouldn't. Just to keep them on their toes.
    My two ideas for ending the game / match, is to either finish tasks, or to kill the hunter, in the tasks their slow, but they save, with the weapon option, you would have worse weapons and thus have to repeatedly encounter it, while slowly whittling it down. Maybe when its low or on the final task have it always know where you are, and speed up.

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

      Thanks for the ideas. I will definitely consider some of them.

    • @lnf-sidekick755
      @lnf-sidekick755 2 ปีที่แล้ว +1

      hm oh and the death sound should be just another burning memory it is very fitting

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

    nice, can even do infinity mirrors (like having 2 mirrors face each other)

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

    I can already imagine the sorts of Roblox games that could be created with these kinds of things.

    • @clappingtoday7167
      @clappingtoday7167 2 ปีที่แล้ว

      been in the game for a year and a half, not that new

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

      This must be viewportframe... it's not that new

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

      @@andrededecraf
      Of course this is "not that new."
      Good sir, you are replying to a year old comment on what is possibly an even older video.

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

    all your video's are so cool!!! you're like my favourite roblox youtuber now

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

    bro your entire channel is impressive!, are you using this for a game?

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

      At the moment, no. This was just a proof of concept for roblox. Even though this super optimised for being a raytracer than runs mostly on the CPU, it will be impractical for most games as performance really dies down when looking at more than two mirrors at once. But if your game consists of only a few visible performant mirrors, well then yeah. This could probably be used in a few games.

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

      @@Ethanthegrand o

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

      @@Ethanthegrand would you share the tech

    • @BornAgain0
      @BornAgain0 2 ปีที่แล้ว

      BRO JUST IMAGINE A GAME WITH THESE MECHANICS

    • @Bluemanforlife
      @Bluemanforlife 2 ปีที่แล้ว

      Can you share us the prototype

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

    Honestly, I’d love to see a game made by you, I would definitely support it.

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

    bro this guy should get hired at roblox this is too good

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

    Somewhat remade this, Video: th-cam.com/video/VTPpm1-ySac/w-d-xo.html
    What The Script Does Is Raycast Everything It Is Facing, then the script uses the raycast to calculate the color of the objects, then turns it into frames (or image labels) then it does calculations based off the players camera.
    The Resolution Is Pretty Much How Many Pixels It Will Color From The Raycast, the higher the number, the more accurate of reflection
    I used a module, and a local script to update it based off the players camera angle

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

    this guy is talented holy

  • @SealSal
    @SealSal 2 ปีที่แล้ว

    Posted >4 days ago he's still working on it right now as I'm writing this.
    Btw this is incredible

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

    Hey buddy! You can call me shady. I’m new to your channel! And I really love the stuff you make. It encourages me to keep making Roblox games and learning so I can be just as good as you guys that make these type of stuff! You can keep my subscription and likes. -A young developer
    Keep making more!!!

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

    Viewport Frame, pretty sure im wrong and i think it might have to do something with raycasting for the pixels im guessing.
    Either pretty neat, keep it up 👍

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

      no? ViewportFrame cannot have sky. so sky are full white

  • @YHK_YT
    @YHK_YT 2 ปีที่แล้ว

    Look at him in the reflection looks so swag

  • @Senel-7hg
    @Senel-7hg ปีที่แล้ว

    Glass looks amazing, i wanna add it's in my game

  • @HappiIsHappy
    @HappiIsHappy 2 ปีที่แล้ว

    quote from dani : wow that was really cool

  • @zillion8954
    @zillion8954 2 ปีที่แล้ว

    this would be awsome if roblox added this

  • @ClownFromTheYear9998
    @ClownFromTheYear9998 2 ปีที่แล้ว

    I’ve actually seen this before, although it was super shitty. THIS is much better.

  • @amogus-dn8qn
    @amogus-dn8qn ปีที่แล้ว

    now just add global illumination and you got a partnership with ares vr (the guys who are making basically cod in roblox)

  • @Greenville63
    @Greenville63 3 หลายเดือนก่อน

    hey dude how did you do this this is amazing!

  • @Alex_animaciones.
    @Alex_animaciones. ปีที่แล้ว

    i have a idea what about you do a scary game where that you know that hings reflects you and you need it for search the ghost but sometimes wont work and you would neet to use a item for see them and then escape from the house.

  • @mschfz
    @mschfz 2 ปีที่แล้ว

    If you're gonna make a horror game i think it would be cool if you can enter a mirror dimension where a lot of demon is chasing you but actually its just one and the other is reflection and you need to guess where is the real demon.

  • @zom_tyt7382
    @zom_tyt7382 2 ปีที่แล้ว

    I'm imagining a Kid staring at that Mirror and gettinf Jumpscared by himself.

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

    I need one of these because I make bowling games and the reflection on the lanes is trash, and and I really need reflection this cool mirror reflection it would really make my bowling games stand out will there be a tutorial how to make it soon?

  • @WheresAlex775
    @WheresAlex775 2 ปีที่แล้ว

    js imagine the racing games that coule be made with this

  • @Taveple
    @Taveple 2 ปีที่แล้ว

    this is so insane where do you even start, awesome job!

  • @zinny6761
    @zinny6761 2 ปีที่แล้ว

    Youre creative as heck man keep it up, can you try making a bathroom then adding a flashlight from the light demo? And give us the game link?

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

    why not use screenspace with cubemap reflection? good performance but less a bit quality

  • @filiprodak
    @filiprodak 2 ปีที่แล้ว

    This is really cool!

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

    Hey Ethan! I noticed there's a role on your group called "Music/Sound Designer", I make music and was wondering if it's available to be taken?

  • @supermegaultahypercoolguy4327
    @supermegaultahypercoolguy4327 2 ปีที่แล้ว

    Now make a mirror house like those Disney atractions.

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

    The problems of this reflection they are not adaptive like nvidia bdrf ray and this display screen rays are 1080 rays but the reflection is low resolution Also he uses cam as reflection when use cam as mirror you mirror will not show shadows like this 0:50

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

    SHEESH insane skill level u r

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

    i know how i could make it,
    add camera
    cframe position the camera in the mirror
    and then make the camera copied ur orientation camera in reverse
    and done all to do is add viewport and place all the objects and urself
    heartbeat all the objects cloning to viewport is possible laggy

  • @SaturnSZN
    @SaturnSZN 2 ปีที่แล้ว

    This is incredible

  • @triopical6884
    @triopical6884 2 ปีที่แล้ว

    Making the impossible possible

  • @ArnasDav
    @ArnasDav 2 ปีที่แล้ว

    I love it and i want it how to script it its very cool keep up ur good work!

  • @mekdirblx4129
    @mekdirblx4129 2 ปีที่แล้ว

    its gonna be so cool if brookhaven add mirror like this insted mirror but no reflection :/

  • @DontTrustGlitch
    @DontTrustGlitch 2 ปีที่แล้ว

    Epic

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

    Quick question. Wouldn't that be really laggy since all code on a local script runs on the CPU?

    • @Ethanthegrand
      @Ethanthegrand  2 ปีที่แล้ว

      Yep. I mean these are pretty low resolution mirrors, so it runs pretty well, but once you look at like 5 or more of these at once, it will start to lag. I wish roblox had a way for us to program shaders or have a way to access the GPU, since yeah this is all CPU operations in a single thread

  • @snelwasnthere
    @snelwasnthere 2 ปีที่แล้ว

    My PC when using raytracing: Expolde

  • @LuaGunsX
    @LuaGunsX 2 ปีที่แล้ว

    YOU GOT 1K SUBS

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

    Woah.That is soo cool!!
    How long does it takes to make that?

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

      Literally just made this within a day :3
      The real time consuming thing here is trying to optimize it a bunch without losing too much quality. The blur on the images also fakes high resolutions on the reflections when in reality they are just 15x15p

  • @BubasGaming
    @BubasGaming 2 ปีที่แล้ว

    Make it use paralell lua, it's only in studio beta but check if it gives performance.

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

      I have tried parallel lua before with my other raytracers and things but i have no idea how to use it correctly to improve performance. But I will definitely try to get parallel lua working on something at some point

  • @real_meme_amogus
    @real_meme_amogus 2 ปีที่แล้ว

    That's so cool

  • @_Tipic
    @_Tipic 2 ปีที่แล้ว

    man i wish i was this good are programing

  • @theplague8068
    @theplague8068 2 ปีที่แล้ว

    how much money would it take to like, actually hire you to make games

  • @shloop3321
    @shloop3321 2 ปีที่แล้ว

    thats so cool wow

  • @onenamechanged4646
    @onenamechanged4646 2 ปีที่แล้ว

    wow very nice

  • @zillion8954
    @zillion8954 2 ปีที่แล้ว

    also please make these aveyable to play i would love to play around with all the things your make

    • @Ethanthegrand
      @Ethanthegrand  2 ปีที่แล้ว

      Yeah I guess I could make these smaller projects available to play and mess around with. So stick around!

  • @HAHAHAHA-vf9qu
    @HAHAHAHA-vf9qu 2 ปีที่แล้ว

    hey man we should make a game together

  • @thunder72
    @thunder72 2 ปีที่แล้ว

    i just made the same thing

  • @keeganplayz1875
    @keeganplayz1875 2 ปีที่แล้ว

    My PC:
    aaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAA- *overheats*

  • @linjax
    @linjax 2 ปีที่แล้ว

    Wow

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

    HOWWW

  • @Eric.31107
    @Eric.31107 2 ปีที่แล้ว

    If theres a way to increase the resolution please do
    I wanna see if my pc can handle it
    (Its kinda beefy apart from the gpu, its a 1660 super)

    • @friedpotato6037
      @friedpotato6037 2 ปีที่แล้ว

      although you run this all on a cpu (single thread)

  • @Senel-7hg
    @Senel-7hg 2 ปีที่แล้ว +2

    Link to the game

  • @jasonsimpson675
    @jasonsimpson675 2 ปีที่แล้ว

    Can you help me make a game?

  • @matthewmarquez4094
    @matthewmarquez4094 2 ปีที่แล้ว

    Can you do this on cars?

    • @Ethanthegrand
      @Ethanthegrand  2 ปีที่แล้ว

      This specific method for crating the reflection wont really work on a car that well. So unless your car is made up of cubes and rectangles, it wont work with SurfaceGUIs. This is one of the limitations of this raytracing method

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

    how does this work

  • @thegooberst
    @thegooberst 2 ปีที่แล้ว

    HOW

  • @variegatus4674
    @variegatus4674 2 ปีที่แล้ว

    how, lmao!

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

    How?

  • @jovan1670
    @jovan1670 2 ปีที่แล้ว

    gta 3 ray tracing

  • @alaxolame
    @alaxolame 2 ปีที่แล้ว

    where do you get this plz????

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

      Currently you cant get the system. I made it myself from scratch

  • @oreiboon
    @oreiboon 2 ปีที่แล้ว

    How to destroy your computer 101

  • @davi27j91
    @davi27j91 2 ปีที่แล้ว

    Were the pixels made with RayCasting?

    • @Ethanthegrand
      @Ethanthegrand  2 ปีที่แล้ว

      Yes. Raycasts were used for every single pixel

    • @davi27j91
      @davi27j91 2 ปีที่แล้ว

      How did you do to blur the image?

    • @Ethanthegrand
      @Ethanthegrand  2 ปีที่แล้ว

      @@davi27j91 i just used a bunch of blur imagelabels for the pixels

    • @davi27j91
      @davi27j91 2 ปีที่แล้ว

      Wait, you are shooting multiple rays from the camera, if these rays touch any object, it will get the object's color and send it to the mirror (or some part that reflects)?

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

    does this only work with 2d planes?

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

      Yeah. It will only work on flat rectangular planes as this works with SurfaceGUIs

  • @Vaxerino
    @Vaxerino 2 ปีที่แล้ว

    yeah, but that grab script

  • @TalesYeap
    @TalesYeap 2 ปีที่แล้ว

    can you make full ray tracing?

    • @Ethanthegrand
      @Ethanthegrand  2 ปีที่แล้ว

      What do you mean by full? So you mean giving all surfaces visible reflections? Cause if so, probably not at the moment. Currently I can only have a few surfaces with reflections without lag and to have this whole map or even the baseplate to have true surface reflections, it will cause some serious performance issues

    • @TalesYeap
      @TalesYeap 2 ปีที่แล้ว

      @@Ethanthegrandhhhmmm ok, can you remake this th-cam.com/video/uUWc_yKojvk/w-d-xo.html

    • @Ethanthegrand
      @Ethanthegrand  2 ปีที่แล้ว

      @@TalesYeap thats not raytracing, but instead uses lots of lights to simulate light bouncing, and i cant remember what they did for the volumetric lights. And yeah, that wouldn’t be too difficult to recreate. Also im pretty sure the plugin they are using doesn’t work anymore or is discontinued.

    • @user-wi7iy2me7y
      @user-wi7iy2me7y 2 ปีที่แล้ว

      @@Ethanthegrand thats raytracing and prob not hard to make just hard to master

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

    Does it reflect terrain?

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

      yeah it will work fine, but unfortunately you wont get the textures. just flat shaded colours

  • @astro5078
    @astro5078 2 ปีที่แล้ว

    Hi ethan do you have discord? if yes please give me it

    • @Ethanthegrand
      @Ethanthegrand  2 ปีที่แล้ว

      Yes. I do have discord. Also ok
      discord.com/download

  • @sofastealeroffensive
    @sofastealeroffensive 2 ปีที่แล้ว

    Soon slenders will look themselves in the mirror in these type of games and they will be cringing

  • @BlLJANS
    @BlLJANS 2 ปีที่แล้ว

    Epic

  • @doggy0_0
    @doggy0_0 2 ปีที่แล้ว

    How?