Animated Desktops
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?
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
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
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
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.
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.
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
-N
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
- Rob Loach
Current Project: Go Through Object-Oriented Programming in C++ by Robert Lafore
"Do or do not. There is no try."
- Yoda
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-~-
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?
m_hDC = GetDC( HWND_DESKTOP );
to no avail, is that what you mean?
ZMatrix is open source so you can look at it...
zmatrix.sourceforge.net I believe the link is
zmatrix.sourceforge.net I believe the link is
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement