View Full Version : how to make a mirror
04-26-2002, 09:28 PM
I wanted to add a mirror to one of my maps because it would look cool. :)
So I read one of the mirror tuts, but even after a lot of trial'n'error it won't work.
This is what I did:
I put a brush onto a wall, gave it the mirror1 texture out of the common set. Then I put the entity misc_portal_surface 8 units from the surface of the brush into the map. At last I built a border around my mirror brush. According do the tutorial it whould work, but it does not.
Anybody got that problem already?
04-27-2002, 04:03 AM
In some of the other q3 engines, mirrors could be tricky. Even though you do everything right, sometimes they just don't like where they're sitting. I haven't tried mirrors yet with JK2, but I'd first suggest moving the mirror around your map to see if it works in different positions. If not, try e-mailing raven, because I don't remember any mirrors in the single player campaign, so it would be something we have no frame of reference for.
04-27-2002, 04:29 AM
There are mirrors in the game - one near the very very end, in the middle of a hallway. Perhaps there are also others I missed. In any case, they're certainly possible.
04-27-2002, 04:05 PM
I tried to move the mirror to another location, but it does not work on any of the six sides of my testing room.
I also rebuilt the whole room but it won't work. :mad:
So I guess there is a little modificaiton to do in one of the steps to get it working, but I got no idea what to do.
04-27-2002, 08:45 PM
What exactly does show up on the mirror surface in the game? Does it act like a funhouse mirror, and only reflects from weird angles?
04-28-2002, 09:33 AM
The place where the mirror should be is black and there are white lines on it. The mirror reflects from no angle. It's just this ugly texture on the wall and nothing more :(
04-28-2002, 05:52 PM
I have the same problem, the mirror just won't work, I have used the portal surface in the right place and also tried 3 different mirror shaders but I just get the shader grid defaults when I compile it.
04-28-2002, 06:11 PM
If not, try e-mailing raven, because I don't remember any mirrors in the single player campaign
*** POSIBLE MINOR SPOILER ***
Remember when the three Desann's walked off near the end? The path straight forward led to one where another Kyle was in a mirror with a Desann that walked off behind him. This was a dead end, but I believe it was a mirror. The image did everything you did, and the hallway was mirrored.
I agree. And with simple shadows on, you could see the shadow of Desann in behind you even when he runs away (you know when you only see him in the mirror - that was the most scariest part of the game, fraked me out!)
Also what do you think of this...
This is a screenshot released by Raven/LucasArts before the game was released:
Also here is the actual mirror near the end of the game:
Please c&p all links into a browser.
04-30-2002, 07:41 PM
I am absolutely happy. Finally I got my mirror working. I don't know what I did wrong, but I got an answer from Raven and I just set the mirror up as written in the mail and it works.
Reading that some other ppl are having problems to get their mirrors working I'll just paste the mail:
Set up the mirror just as you normally would in Q3...
1. Make sure the mirrored surface has a qer_mirror (or portal) surface
property (we had one in the game called mirror_floor2 in our
2. Put a misc_portal_surface entity above the surface (around 16-32
units away is fine)
3. Make sure the surface is the only mirror the entity can see (it
doesn't like seeing more than one mirror at a time)
4. Make sure the surface to be a mirror is made of only one brush for
(our mirror texture has the following setup in the shader:
blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
blendFunc GL_DST_COLOR GL_SRC_COLOR
blendFunc GL_ONE GL_ONE
rgbGen const ( 0.200000 0.200000 0.200000 )
The forcefield parameter makes shots bounce off of it
The portal parameter makes it show a reflection
the other texture (tests/floor02_alphab) used on it gives it a texture to
show (with an alpha value), just remove this if you want a true mirror...
and the last texture in the setup gave it a shiny environment map like a
piece of glass...
As already written, I don't know what was wrong with my first setupsd, but I think it was the wrong mirror shader. Now it works just fine.
05-01-2002, 02:25 AM
The only way I could get it to work is by using the mirror_yavin shader... never could get mirror1 to work.
Also make sure that the room you want mirrored is reasonably big or else the mirror will act very strange (sometimes it just doesn't show up).
vBulletin®, Copyright ©2000-2016, Jelsoft Enterprises Ltd.