mirror

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
olbik

mirror

Post by olbik »

is there any idea how to make a mirror in irrlicht?
just rectangular in 3d space, which reflect all around?

regards, olbik
Acki

Post by Acki »

Well, I think there is no function in Irrlicht for that...
But I remember "Duke Nukem 3D", with the editor u could make mirrors in this way:
Behind the mirror u have to build the same room, but mirrored.
U have to set a second (flipped, scale x = -1) player modell in the mirror room and move it like the original player modell...
The mirror itself has to be an hole, or maybe a transparent shape like glass...

Well, the editor of "Duke Nukem 3D" creates the mirror room on its own, u only have to build the second room with no inventory...

Maybe this clue helps u ???

CU, Acki
stampsm
Posts: 142
Joined: Mon Nov 10, 2003 5:52 pm
Location: Las Vegas

Post by stampsm »

i will work alot like a portal rendering system
you should look up info on this to find out how it works
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

Not sure if this is possible in Irrlicht:

Put a camera facing the same direction as the mirror, save the image that it produces and then apply that as a texture to the mirror surface. Should work with only a mirror or two before it starts slowing down.
________
MAINE DISPENSARY
Post Reply