Jump to content
  • Advertisement

Archived

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

yulair

How to get a screenshot without drawing the object?

This topic is 5197 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

I want to generate the screenshot of a set of .x models, but I do not want to use the D3DDevice to draw''em on screen. Any one got the idea, thanks!

Share this post


Link to post
Share on other sites
Advertisement
You''ll find it tough.

If you did use Direct3D to do it, you could just use D3DX to load it, render it to a texture, and then save out that texture.

If you''re not, you''ll have to write your own .X file loader and renderer.

Share this post


Link to post
Share on other sites
You could always create the device, but indicate that you want it in windowed mode, and pass it a handle to a window that is hidden. Then you can use the device to render to a texture, as superpig suggested. So although you technically do have a device and a window and everything, it doesn''t really look like it. You won''t have to worry about mode-changes, unnecessary windows popping up, etc. Or at least, I would think that this should theoretically work...

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!