Jump to content
  • Advertisement

Archived

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

Mulligan

Animated Desktops

This topic is 5553 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
Advertisement
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
Humm, i tried just getting a device context for the desktop, i did:
m_hDC = GetDC( HWND_DESKTOP );

to no avail, is that what you mean?

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!