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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!