Jump to content
  • Advertisement

Archived

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

Eyes behind my head

This topic is 5127 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
Advertisement
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.



Waramp.

"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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!