Martin Johannesson

I'm simply wondering if there is a way to somehow capture the backbuffer contents to a file on the xbox 360 and then transfer that file back to the PC I've checked the framework docs and this forum and it doesn't seem to be possible, but I'm hoping that I am wrong. :-)

A screenshot looks slightly less amateurish on a website than if I photograph my TV, even though it still looks like programmer art. The one solution I have come up with is to run the same code on the PC and capture the screen that way. The problem is that my PC GPU isn't on par with the Xbox 360 and I would prefer not to have to write separate shaders just to enable me to capture the screen. Plus, the screen shots would be uglier.



Re: XNA Framework Screen shots on the Xbox 360

Butterman

I think you can take screenshots from the VGA cable. Im not sure if thats what you want




Re: XNA Framework Screen shots on the Xbox 360

Martin Johannesson

Actually, what I want is an actual digital pixel-for-pixel accurate dump of the screen. I.e. I want to save the backbuffer data and then get it across to the PC. The VGA signal is analog so it would still not be totally accurate, but it's definitely one option to consider if there is no way to do it in software.





Re: XNA Framework Screen shots on the Xbox 360

waruwaru

I havn't tried this yet. How about, render your buffer to a texture following the tip in here:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1022084&SiteID=1

Then use the texture's save method to save it as a .tga or something.






Re: XNA Framework Screen shots on the Xbox 360

Martin Johannesson

Yes, that should work, but the part I can't figure out how to do is this: How do I get the tga (or whatever file format one would use) back to the PC As far as I can tell, you can save to file on the 360, but I see no way of transferring it back to the PC. Maybe this is trivial and I have misunderstood the documentation, I don't know. :-)

I guess what I am really asking is this: How do I access a file that has been stored on a 360 storage device using the XNA framework from my PC





Re: XNA Framework Screen shots on the Xbox 360

Dodger_

This is just a springboard of an idea because I don't have much experience with remote debugging in Visual Studio and haven't got XNA Creators Club yet to try for myself: Could you somehow retrieve data via the remote debugging

As far as I'm aware, there is no method available to send data back across to the PC from the 360, GSE deployment is a one-way street. The only avenue I'm aware of that is even slightly two-way is debugging.




Re: XNA Framework Screen shots on the Xbox 360

Nick Gravelyn

Another idea. I read that USB Flash Drives can be used in a 360. I'm not sure what file access or permissions the OS gives to moving data around, but perhaps you can somehow put the image onto a flash drive and then use that on your PC. I've yet to try anything like that, but it's an idea.




Re: XNA Framework Screen shots on the Xbox 360

Martin Johannesson

I will give both the USB drive idea and the remote debugging idea a try tomorrow. I know I can write text to the debug output console at least, so if nothing else works, I can write the screen shot as strings of hex encoded bytes to the debug output console. :-) Thanks for the suggestions.



Re: XNA Framework Screen shots on the Xbox 360

Mitch Walker - MSFT

There is no built in support for this currently. I'll add it to the list of things to consider for future releases. :)




Re: XNA Framework Screen shots on the Xbox 360


Re: XNA Framework Screen shots on the Xbox 360

waruwaru

The ZMan wrote:

Shawn blogged a solution to this using debug output

http://blogs.msdn.com/shawnhar/archive/2007/01/08/capturing-screenshots-from-xbox-xna-games.aspx

If only we can use XGSE with Visual Studio 2005 Pro instead... <hint hint>






Re: XNA Framework Screen shots on the Xbox 360

Shawn Hargreaves - MSFT

In what way would VS Pro help you take screenshots from an Xbox game





Re: XNA Framework Screen shots on the Xbox 360

waruwaru

Shawn Hargreaves - MSFT wrote:
In what way would VS Pro help you take screenshots from an Xbox game

Could write a plug-in, macros to automate the steps detailed on the blog. If the debugger visualizer works on XGSE, could write a visualizer to capture the image data...etc.






Re: XNA Framework Screen shots on the Xbox 360

Shawn Hargreaves - MSFT

You can use debugger visualisers with C# Express. They aren't supported by the Compact Framework on Xbox, but that's an Xbox limitation rather than a C# Express issue.





Re: XNA Framework Screen shots on the Xbox 360

waruwaru

Shawn Hargreaves - MSFT wrote:
You can use debugger visualisers with C# Express. They aren't supported by the Compact Framework on Xbox, but that's an Xbox limitation rather than a C# Express issue.

Agree, I am just saying if XGSE was on VS 2005 Pro, then there are more tools/better ways to accomplish this automatically (besides enabling debugger visualizer on xbox CF). Just a personal dead-horse that I like to beat on. ;)