|
Mirrors in all editions? Here's the trick
#61701
01/07/06 16:53
01/07/06 16:53
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
OP
Senior Expert
|
OP
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
I just thought of an ingenious way to allow for mirrors in all editions, even standard. It does have it's limitations though, but it's much better than a mere screenshot used as a texture and much more accurate. It still won't, however, be like real mirrors, but very considerable. This only works with flat mirrors and not a room filled with them (thus, for a typical bathroom mirror, this would work). Here's the trick:
1. Where a mirrored block would normally be, have an opening that goes into the wall. 2. Recreate the scene that would normally show up in the mirror having depth. Only, scale it down, way down. The smaller the mirror, the smaller the scale should be. Use lower-poly models than those in the scene. Make this replica passable so collision isn't run on it to speed up the engine. 3. For the player, just have a duplicate in this area on the "mirror" and, of course, scaled down accordingly. 4. To prevent weird things from happening, put an invisible barrier right where the mirror would normally be to prevent the player from getting in it. To avoid seeing the "special effect" when in a remote area, make the mirror scene invisible and passable.
Does this work for you? It should work even in standard edition even in very old releases like A5 or A4.
Edit: I haven't tested the trick in Gamestudio, but from running simulations in my mind game, it should certainly work.
Last edited by ulillillia; 01/07/06 16:57.
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
Re: Mirrors in all editions? Here's the trick
[Re: Bilbo]
#61703
01/07/06 17:06
01/07/06 17:06
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
OP
Senior Expert
|
OP
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
I did a search for "mirror" in this forum, but nothing came up relating to it. It could've been one of those deleted posts. I set the search range to 1 year and it turned up 27 results....
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
Re: Mirrors in all editions? Here's the trick
[Re: Pappenheimer]
#61708
01/07/06 19:53
01/07/06 19:53
|
Joined: Jan 2003
Posts: 1,142 California
Daedelus
Senior Developer
|
Senior Developer
Joined: Jan 2003
Posts: 1,142
California
|
I agree. It really is. He's done some pretty great things for us in the past. Here's a link to one of his homepages: http://www.rumramruf.com/3dgs/
Last edited by Daedelus; 01/07/06 19:55.
|
|
|
Re: Mirrors in all editions? Here's the trick
[Re: Pappenheimer]
#61709
01/07/06 19:54
01/07/06 19:54
|
Joined: Oct 2004
Posts: 1,856
TheExpert
Senior Developer
|
Senior Developer
Joined: Oct 2004
Posts: 1,856
|
Don't laught , if the sceen is detailled, you'll have 0.001 FPS ... No this method is not good ,and use real mirrors is a lot better and a lot more less CPU consuming. You want real mirrors use Ogre3D, irrlicht ,TV3D or Torque or another ... i'll hope Conitec will put render to texture for commercial editions ... caus it's a such basic 3D thing
|
|
|
|