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...
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.
Thanks for the ideas. I will definitely consider some of them.
hm oh and the death sound should be just another burning memory it is very fitting
nice, can even do infinity mirrors (like having 2 mirrors face each other)
I can already imagine the sorts of Roblox games that could be created with these kinds of things.
been in the game for a year and a half, not that new
This must be viewportframe... it's not that new
@@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.
all your video's are so cool!!! you're like my favourite roblox youtuber now
bro your entire channel is impressive!, are you using this for a game?
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.
@@Ethanthegrand o
@@Ethanthegrand would you share the tech
BRO JUST IMAGINE A GAME WITH THESE MECHANICS
Can you share us the prototype
Honestly, I’d love to see a game made by you, I would definitely support it.
bro this guy should get hired at roblox this is too good
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
this guy is talented holy
Posted >4 days ago he's still working on it right now as I'm writing this.
Btw this is incredible
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!!!
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 👍
no? ViewportFrame cannot have sky. so sky are full white
Look at him in the reflection looks so swag
Glass looks amazing, i wanna add it's in my game
quote from dani : wow that was really cool
this would be awsome if roblox added this
I’ve actually seen this before, although it was super shitty. THIS is much better.
now just add global illumination and you got a partnership with ares vr (the guys who are making basically cod in roblox)
hey dude how did you do this this is amazing!
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.
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.
I'm imagining a Kid staring at that Mirror and gettinf Jumpscared by himself.
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?
js imagine the racing games that coule be made with this
this is so insane where do you even start, awesome job!
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?
why not use screenspace with cubemap reflection? good performance but less a bit quality
This is really cool!
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?
Now make a mirror house like those Disney atractions.
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
SHEESH insane skill level u r
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
This is incredible
Making the impossible possible
I love it and i want it how to script it its very cool keep up ur good work!
its gonna be so cool if brookhaven add mirror like this insted mirror but no reflection :/
Epic
Quick question. Wouldn't that be really laggy since all code on a local script runs on the CPU?
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
My PC when using raytracing: Expolde
YOU GOT 1K SUBS
Woah.That is soo cool!!
How long does it takes to make that?
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
Make it use paralell lua, it's only in studio beta but check if it gives performance.
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
That's so cool
man i wish i was this good are programing
how much money would it take to like, actually hire you to make games
thats so cool wow
wow very nice
also please make these aveyable to play i would love to play around with all the things your make
Yeah I guess I could make these smaller projects available to play and mess around with. So stick around!
hey man we should make a game together
i just made the same thing
My PC:
aaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAA- *overheats*
Wow
HOWWW
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)
although you run this all on a cpu (single thread)
Link to the game
Or name
Can you help me make a game?
Can you do this on cars?
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
how does this work
HOW
how, lmao!
How?
gta 3 ray tracing
where do you get this plz????
Currently you cant get the system. I made it myself from scratch
How to destroy your computer 101
Were the pixels made with RayCasting?
Yes. Raycasts were used for every single pixel
How did you do to blur the image?
@@davi27j91 i just used a bunch of blur imagelabels for the pixels
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)?
does this only work with 2d planes?
Yeah. It will only work on flat rectangular planes as this works with SurfaceGUIs
yeah, but that grab script
can you make full ray tracing?
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
@@Ethanthegrandhhhmmm ok, can you remake this th-cam.com/video/uUWc_yKojvk/w-d-xo.html
@@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.
@@Ethanthegrand thats raytracing and prob not hard to make just hard to master
Does it reflect terrain?
yeah it will work fine, but unfortunately you wont get the textures. just flat shaded colours
Hi ethan do you have discord? if yes please give me it
Yes. I do have discord. Also ok
discord.com/download
Soon slenders will look themselves in the mirror in these type of games and they will be cringing
Epic
How?