Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hey there I'm trying to create a plane that can have a texture on it and reflect the 3d elements around it. for example a plane with a laminate floor texture and above it a cube rotating. I want the plane to retain the floor texture but have a reflection of the cube.

I've been trying to figure out how to go about doing this. I'm using flash stage3d capabilities and a 3d engine but i'm sure the same principles will apply from other engines and languages.

From what I can tell I create some kind of reflection matrix from the plane? and then use that somehow with the camera position?

Any further info/drawings/guidance is greatly appreciated.

share|improve this question

1)Create a plane that usually contain a point and a normal that represents the floor.

2)Reflect your camera position and rotation from this plane.

3)Create a view matrix from these point and rotation.

4)Render scene from this matrix into a texture.

5)Transmiss those texture and matrix into a shader.

6)Project texture onto a surface of floor using transmissed matrix.



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.