Floor Reflections

I was wondering If I could get your opinion on a new game I am going to create, The game uses mirrors as puzzles and I have a little demonstration of it. ( the video was made with a pretty bad recorder, sorry if its buggy.) There are two reflections, a player only reflection and a reflection that effects the surrounding world. I have mostly made stuff like this because I was bored, but I think I might be able to put it into a puzzle game. I am still working on the mirror script, sometimes your character will bug out and disappear. Other times it will just not appear at all when you join.

3 Likes

Looks cool, how is it done? Is it normally this laggy or was it the recorder.

It was the recorder, it dose not matter what type of mirror you use, it just has to work. You put the mirror upside down so it replicates the world and character upside down, put a invisible block on top that surrounds the area of the mirror. put a texture / decal into the block and make it 0.7 or so transparency, this is your choice. after that it will look like a reflective floor/surface because of the decal being only partially transparent. ( when I say it dose not matter what type of mirror, I have tested this with a free model mirror. and it works just the same as the one I have made)

Yeah but how does it work, rays, region3 cloning etc?

I am pretty sure it uses cloning, I made the script a while ago and I dont always remember what I put in so I will go check.

Okay I looked, It uses cloning.

I think the script I used was a remastered version of an already made one, I cant remember. I think one of the mirror tutorials I saw I was able to replicate, when I first used a mirror tutorial It would not work with R6 so I think I tampered with it a long time ago. but I am not completely sure since its been so long since I used it.

If you think back to trigonometry teachers would make you clone points and shapes across different axises. You’re going to do the exact same thing here as well just in three dimensions instead.

First loop through and clone all the necessary parts then update the parts to mirror the originals on something like heartbeat.

1 Like

Yea, that would work as well. I have not seen many mirrors that use that, strangely but that would definitely work.

Though since the mirror was very buggy when I made it, I never spent much time fixing the bugs it had. so like I said in the post, the players character may disappear at times. If I think I am going to use it I will have to fix all the bugs I can.