Archived

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

Animated Desktops

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

A while ago i got a thing called Drempels desktop, which displayed a groovy animation on the as the background of my desktop. I want to find out how to write a program that can do the same, but have no idea where to start, anyone know?

Share this post


Link to post
Share on other sites
Basically when you want to do something like this, you will have to find out how to alpha blend images to your desktop, so that you don''t have to have rectangular images, but can draw whatever you want including transparency.

Once you have mastered this, you only need to code something that is capable of holding the frames of your animation and play ''em back.

Regarding the first issue, I can send you some sample code we used for a splash screen in our current project later this day.

TroneX


LightBrain website relaunched, BomberFUN only USD 9.99
visit http://www.lightbrain.de

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
drempels works by setting the desktop to a special color (15,0,15) IIRC, and then blit a destination color key overlay over the entire screen. look in directdraw documentation

Share this post


Link to post
Share on other sites
I''ve seen a DirectDraw app that turned the desktop to white noise, so you could probably get Direct3D working on the desktop. Now that would be fun.

If you''er really stuck, and I know this isn''t ideal, you can set the desktop to a webpage and have an animated gif. Of course that''s really slow and probably isn''t what you want.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Correct me if i''m wrong, but one can probably get a device context from the desktop HWND. Afte that, just draw to the DC what you want!

-N

Share this post


Link to post
Share on other sites
What about those "desktop games" which have things like little characters walking on the tops of your window applications?



- Rob Loach
Current Project: Go Through Object-Oriented Programming in C++ by Robert Lafore

"Do or do not. There is no try."
- Yoda

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Correct me if i''m wrong, but one can probably get a device context from the desktop HWND. Afte that, just draw to the DC what you want!

-N


hehe, that reminded me of a problem with the source in Windows Game Programming for Dummies where instead of writing to just the window, it put it randomly and messed up the preview pane, desktop, etc. it got really ugly

-~-The Cow of Darkness-~-

Share this post


Link to post
Share on other sites
I''ve found that creating an ActiveX control that uses OpenGL and then embedding that in a webpage and using Active Desktop works perfectly fine.

An advantage of doing this as opposed to using overlay support is that only the desktop will be drawn to. If the user''s font happens to be the same color as the color key used to control the overlay, it can be annoying for them when their fonts go screwy.

On the other hand, this means that if you have any files that you want to load for the program, you either need to hard code a directory, put a subdirectory in the Windows folder, or use the registry for install information in order to know where to load the files from.

j

Share this post


Link to post
Share on other sites