Boothand Posted October 9, 2013 Posted October 9, 2013 I'm aware that this is pretty far from earth (as is the universe of Star Wars) - could there possibly be a way of having a mirror NOT draw players? Something along a line in the mirror shader. Or anything equally mad?
Circa Posted October 9, 2013 Posted October 9, 2013 Couldn't you just make it a shiny window-like texture? Only showing the texture you put there?
eezstreet Posted October 9, 2013 Posted October 9, 2013 You could use an environment map (tcgen environment I believe it is) to draw an envmap which does pretty much exactly what you're talking about.
Boothand Posted October 9, 2013 Author Posted October 9, 2013 You mean a window-like reflection of a room? (As in, a jpg texture of what I want to reflect). eezstreet - I'll look up tcgen environment! What I'm creating is a sort of paradox in a corridor, where you walk through a mirror which is invisible on one side (but you can't walk back), and shows a reflection of the corridor if you try to go back. A reflection, as if the path had actually changed and going back would appear to be the same way as going onward. I've made a slight alteration in the idea though. I want to repeat this effect with two mirrors facing each other (from some distance). Don't worry, I'm aware that mirrors can't mirror other mirrors in this game. But I'm making a work-around using cameras. I have run into a new problem though (and quite silly it is). Problem: The camera the portal surface is pointing to shows the world up-side down. I tried using one earlier in a different part of the map, and it was normal.What I ultimately want to achieve is to have the camera in the height that makes it look exactly like the textures on the wall (etc) repeats along the camera view. Onysfx likes this
Onysfx Posted October 9, 2013 Posted October 9, 2013 What I'm creating is a sort of paradox in a corridor, where you walk through a mirror which is invisible on one side (but you can't walk back), and shows a reflection of the corridor if you try to go back. A reflection, as if the path had actually changed and going back would appear to be the same way as going onward. I've made a slight alteration in the idea though. I want to repeat this effect with two mirrors facing each other (from some distance). Don't worry, I'm aware that mirrors can't mirror other mirrors in this game. But I'm making a work-around using cameras. I have run into a new problem though (and quite silly it is).I have no idea what kind of thing your making, but this idea is epic!If your doing this with mirrors... Then the next thing you know, you'll be making twisted hallways xD.
MoonDog Posted October 9, 2013 Posted October 9, 2013 All of that is extremely easy to do. A player can walk through the back of a patch mesh no issues. So you could just make a 2x2 plane across the hall. As for the upside down portal image, add the roll key to your misc_portal_camera. For example Key: roll Value: 180 Onysfx and Boothand like this
Boothand Posted October 9, 2013 Author Posted October 9, 2013 Onysfx, haha would love that. Zelda (and mario with the never-ending stairs) had some great concepts. Zack!!!!! You've brought me back in business. The roll did the trick. As for the patch mesh, I have tried that a couple of times, but it leaks the mirror it seems. For now I'll just use a clip (patch mesh) to hold the player in. When trying it out in game after doing the roll-parameter, I actually scared myself. Like, I got chills, surprised by how it worked. Still need a few tweaks, but expect a little pk3 showcase of it for those who play JK2 here... soon enough! Thanks!
Onysfx Posted October 10, 2013 Posted October 10, 2013 So this is only for JK2? Sad face. Oh well, something like this could probably be easily ported to jka anyway .
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now