i want to know how to make an effect as follow:
make a mirror at the center of the scene,and leave a object(such as cube.etc.)at one side of the mirror,then i can move the camera,and when the camera stands in front of the mirror(the side of the object left in the scene),i can see the shadow of the object which is showed by the mirror.
i know a way to make specular effects of slippy surface.that is:
make another objects which is symmetric to this one,and place it to the another side of the slippy surface at an equal distance with the distance between the first object with the slippy surface,and then use the alpha blending to make people wrong impression that is like the specular effect.
but it''s limited,because if the camera is moved to back of the mirror,u will the truth:a symmetric object is on the other side.
So,is there a better way to make a more real mirror specular effect?
Programming,make a whole new world.
i can give you a general algorithimn for totally realistic mirroed textures. But i doubt its real-time-able. NeHe has a tutorial on it. There are probably a slew of other tutorals out there that i dont know of. Personally im not interested a great deal, I`m not really interesed in the latest/greates 3d engine. So go search.
I came, I saw, I got programmers block. ~V''''lion
Not sure but isn''t there a way to to this with Stencil Buffers?
Just Draw Your Mirror, xchange the Stencil Setting to GL_KEEP or something like that, draw all the geometry to be mirrored also inverted, then turn off the stencil, draw all again but normal. That should eliminate some problems with the camera.
something like that, i don''t remember well the function names, but soon if i have time i should post back the method.
I think there is a tutorial for that on NeHe, also check the glbook.gamedev.net and download the book samples, there is some mirror samples.