Hi Roblox Developers,
I’m pretty new to the Roblox community, especially when it comes to writing code and such, but I wanted to post something today to kind of show off what I’ve recently been working on!
The stuff you probably don't care about, but I include anyways:
(btw, if you just want to cut to the chase, skip this part).
About around November of last year I started working on my first video game (which is still no where near being finished, but that’s aside from the point) and I’ve been really enjoying writing my own custom code for a lot of things in Roblox. Usually I never do these types of things, and I will admit that I still think that the stuff I am working on is merely just a small hobby compared to all of the other work I do, but I still find quite a charm in working in the Roblox community. I feel as though Roblox, even with all of the new features they have added over the years, is still a growing and developing community- and while I could have easily decided to make my first video game on higher level software than what Roblox Studio provides, I’m glad that I didn’t because it means that I get to share my work with others to help them learn as well! With that being said, let me show off what I’ve been working on, I think if you’ve read this far you’ll probably enjoy it.
The stuff you actually want to read:
Alright so I’m going to try to explain this as fast as possible.
Basically, while I was working on developing my first video game I ended up writing some code for an NPC- very basic code that most of it I won’t use in the future BUT it serves as a baseline for more complex code. Now, I wanted to make pretty realistic NPCs- ones that could easily be mistaken for actual players, so I didn’t want their movements to be weird or robotic.
I could just make static animations for these NPCs… but that’s boring.
And I could just use Roblox’s path finding service… but I’m stubborn and I don’t like it.
So I started working on my own path finding service, and accidentally ended up making a raytracing algorithm. Don’t ask me how I accidentally did that, I’d waste as much time explaining it to you as I did when I wasted my time writing the first version of the code.
Once I realized that the code I had written was 1) stupidly complicated and 2) not even useful for what I initially was trying to create- I was pretty conflicted as I didn’t want to get rid of the code I had worked so hard on but I also didn’t have a use for it either.
Yeah so I decided to do it anyways because why not. Here’s what I ended up with:
Pretty nice am I right? If you’re mad or confused, give me a second to explain.
So this is, technically speaking, a path-tracing/ray-tracing engine – and if you’re really not familiar with the code behind these things or if you have been deceived by the RTX brand (if you don’t understand that joke, don’t worry about it), this is probably going to look pretty boring to you. I don’t blame you for thinking it’s boring. I’d assume that most of you out there would think that this post would be showing off some beautiful imagery where the sun shines brightly and there are reflections everywhere… and while this isn’t showing that type of imagery, what it does show is how the code for that imagery is made.
The image you see is literally a representation (roughly) of what happens in order to make those reflections and sun light (etc.) look so great, and what this means is that as long as I build more onto this those reflections and such will be 100% possible.
So I mean, idk… I think that’s kinda exciting.
Anyways, let me know what you think, and thanks for reading my very mal-formed post. I unfortunately went to school for mathematics and science, not language, so I apologize.
Thanks!