Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Eyes behind my head

This topic is 5305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

dx8 vb6 ... but can understand in c++ Been struggling with this one for a while now. It is understood that I am able to place 2d on top of 3d. But how do you go about putting 3d on top of 3d as in a mirror? Or as a window within a window. I seen info in the sdk refering to stencils but it did not really say how to go about it. Help

Share this post

Link to post
Share on other sites
Well, this may not be Alot of help, but in Opengl you can set your "ViewPort" which is th escreen rectangle that gets drawn to. Usually it is set to be the whole screen, but for amirror effect, try this:

1) Draw scene normally
2) Set the viewport to the screen coordinates that you want the "mirror" drawn to.
3) Move the camera so that it sees what the mirror sees, and draw the scene again.

This is a high-level overview of what needs to be done, and I don not know the DX semantics for Viewports, but thats the idea.


"Before you insult a man, walk a mile in his shoes.
That way, when you do insult him, you''ll be a mile away, and you''ll have his shoes."

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!