views:

392

answers:

6

I'm fairly sure you can create screensavers with.NET but are there any tutorials on doing so? and how well can you make XNA screensavers?

+7  A: 

A screensaver is just an executable named that has been renamed '.scr' :) So yes, you can make one in whatever language you like, pretty much.

Noon Silk
What about accomanying DLLs? what happens to those?
RCIX
Place in the Windows folder, with the 'scr' executable.
Havenard
Ok cool!
RCIX
+2  A: 

For a simple tutorial try Useful screensavers which also explains how to do the preview mode which is generally left out of any accounts

mikej
+3  A: 

Here's a nice and small tutorial that explains how to create a screensaver with C#.

As already mentioned, a screensaver is just an executable with an .scr file extension instead of .exe. Additionally, if you want to create a useful screensaver, you should support these command-line arguments:

/c, /c:HWND, /c HWND: Configuration mode where HWND is the handle to the window that should be used as the parent.
/p, /p HWND: Preview mode where HWND is the handle to the parent window.
/s: Run in full-screen mode

Christian
+2  A: 

James O'Meara has created a nice XNA Screensaver Starter Kit which is a great resource for learning how to create a screensaver with XNA. Detail including the downloads are in the XNA forum here. I recommend reading the comments too, as there are some good tips on how to show the screensaver in the preview window also.

Rhys Jones
+2  A: 

Today, I have posted an updated starter kit at the XNA forum here. The update consists of XNA GS 3.1 support, working preview and modal configuration dialog.

Tonight, I will write an article describing the different aspects here: http://doktormadsen.dk/wp/xna-screensaver-kit/.

Update: the article is now drafted and comments are very welcome.

Christian Madsen
A: 

There is an XNA 3.1 screen saver kit on the second page of this thread.

http://forums.xna.com/forums/t/254.aspx

Nanook