Important alert: (current site time 7/16/2013 2:21:21 AM EDT)
 

winzip icon

EGL_ClockCubeScreenSaver

Email
Submitted on: 2/11/2011 5:46:58 PM
By: Erkan Sanli  
Level: Advanced
User Rating: By 44 Users
Compatibility: VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 21537
author picture
 
     BugFix :Error 326. Thnx Robert Rayment and Paul Bahlawan for feedback. By the way Update clock hands color and setup defaults. Real time 3D clock cube screensaver. Supported bilinear filtering. Pure VB.(267 KB)(Rev:11.Feb.2011)

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 14 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

3/6/2008 1:46:40 PMCptnVic

Very nice (tested on win2000 pro) with no errors.
(If this comment was disrespectful, please report it.)

 
3/7/2008 9:26:05 AMNoName

How can i modify it to show different pics on each side?
(If this comment was disrespectful, please report it.)

 
3/9/2008 5:05:54 AMPaul Turcksin

Excellent post, but PSC users at their best i.e. ignoring this remarkable submission.I really feel sorry for you because it deserves much more votes.
(If this comment was disrespectful, please report it.)

 
3/10/2008 8:17:16 PMErnest

Excellent coding.

5 * * * * * from me.
(If this comment was disrespectful, please report it.)

 
3/11/2008 6:05:02 AMJoaquin Marcher

exelent, i got 320fps =)
(If this comment was disrespectful, please report it.)

 
3/11/2008 7:16:45 AMNorm Cook

Not intuitive, but in VB6
Dim rX, rY As Single
rX is Variant, rY is Single

(If this comment was disrespectful, please report it.)

 
3/11/2008 8:00:00 AMCobein

Awesome code, five stars.
(If this comment was disrespectful, please report it.)

 
3/11/2008 10:34:19 AMZhu JinYong

funny if make different pictures for diffrent faces (position) with mouse event additional.eg.TexturizedCube menu.
(If this comment was disrespectful, please report it.)

 
3/11/2008 10:56:22 PMA. G. Violette

Great code. I would suggest you add the perpective projection to your matrix multiplications. 5 *'s for ya!
(If this comment was disrespectful, please report it.)

 
3/12/2008 4:15:03 AMaaron

very nice code!!ill gave u 5

(If this comment was disrespectful, please report it.)

 
3/14/2008 8:06:00 AMMark

Very nice!! Where did you find this one?? --> VarPtrArray Lib "MSVBVM60.dll"
(If this comment was disrespectful, please report it.)

 
3/14/2008 5:32:08 PMWilksey!

Hi, is there anyway to stop it from using 50% cpu? I compiled it and ran it on my laptop which has a dual core 1.6 processor and 2GB memory on XP Media Center edition.
(If this comment was disrespectful, please report it.)

 
3/15/2008 11:10:00 AMKenneth Foster

Do you have plans to include loading jpg's and gif's?
(If this comment was disrespectful, please report it.)

 
3/15/2008 10:32:57 PMCharles

Mark, VarPtrArray Lib "MSVBVM60.dll" is an undocumented and unsupported function, but nonetheless useful.
(If this comment was disrespectful, please report it.)

 
3/18/2008 9:33:13 AMZhu JinYong

for playing,please add one key to stop rotating.But On static state,CPU still 100% occupied.
(If this comment was disrespectful, please report it.)

 
3/18/2008 9:08:37 PMDavid

Dear Coder,
Thank you for sharing this wonderful project with all of us here. Outstanding work, 5 from me, as it appears everyone else as well.
(If this comment was disrespectful, please report it.)

 
3/19/2008 9:57:49 AMSoorya

No doubt its amazing !
But 70% CPU usage is making us fed up.
Any how u deserve 5* from me too...
Thanks
(If this comment was disrespectful, please report it.)

 
3/19/2008 4:26:41 PMBrent Albertson

cool
(If this comment was disrespectful, please report it.)

 
3/22/2008 12:38:04 AMdipanjanbosu

Great code.
5 globes from me.
Keep up the great work Procam.
(If this comment was disrespectful, please report it.)

 
3/28/2008 3:29:22 AMSolomon

I ran this code on a WindowsXP Media Center Edition. I have a duo core 1.6 + 1.6 CPU. This showed 80 FPS. Thank you for the submission. This code rocks. 5 from me.
(If this comment was disrespectful, please report it.)

 
3/28/2008 5:40:59 AMPippo

Ottimo lavoro, ma devi
Correggere la prospettiva del cubo.
5 globes for me....

(If this comment was disrespectful, please report it.)

 
3/28/2008 5:44:12 AMPippo

Great code.
5 globes from me.
Fix the prospect of the cube.

(If this comment was disrespectful, please report it.)

 
4/3/2008 6:18:50 AMJoaquin Marcher

It's your son that kid at the pictures? it's lovelly :)
(If this comment was disrespectful, please report it.)

 
4/3/2008 8:01:41 AMBryanTech

5 globes from me
(If this comment was disrespectful, please report it.)

 
4/3/2008 10:22:39 PMAeric

Haven't see the code yet nor tested but the picture, description and comments impressed me.
5 planets from me.

btw, EGL stands for?
(If this comment was disrespectful, please report it.)

 
4/6/2008 3:22:52 PMxpert

Excellent !!!
5 globes
(If this comment was disrespectful, please report it.)

 
4/17/2008 11:27:02 AMBryanTech

Excellent, 5 globes from me
I have tried it and it works great on Windows 2000
(If this comment was disrespectful, please report it.)

 
6/7/2008 11:29:10 AMJoaquin Marcher

exelent new features
(If this comment was disrespectful, please report it.)

 
11/30/2009 3:23:09 AMSaed abumokh

your program displays 4 - dimensional images, the 4 - dimensional viewing doesnt display perspective, you should make it perspetive 3D, that will be more natural, the perspecitve lets you can realise the distances of the objects from your eye sight
AN IMPORTANT INFORMATION: you can use the PlgBlt API function instead of all your many of mudules and classes, it displays the picture like a Parallelogram, its also supports a transparent color like what you did in your project, anyway, ••••• form me
(If this comment was disrespectful, please report it.)

 
3/18/2010 2:42:30 AMGerald

does this work in visual studio.net 2008? how do i convert the file from vb 6.0 to vb.net as some of the functions are unavailable in vb.net
(If this comment was disrespectful, please report it.)

 
3/29/2010 4:44:15 PMSaed abumokh

great good, but for writing less code:
use PlgBlt api function to display pictures as a parallelogram.
1) transform the picture using PlgBlt to memory dc
2) use AlphaBlend api function to set the transparency: get the source dc from the memory dc and paint it with aplha channel to the screen saver form.
note: before using plgblt, set the background of the memory dc (istead of black) to background like the destnation ones, this will apear like alpha mask .
(If this comment was disrespectful, please report it.)

 
12/29/2010 5:12:10 AMmadroureh

10x, 5*
(If this comment was disrespectful, please report it.)

 
2/7/2011 5:41:14 PMPaul Bahlawan

I'm surprised I missed this previously! But It's not working now. It shows a box with an X on each side. "Settings" gives runtime error 326.
(If this comment was disrespectful, please report it.)

 
2/9/2011 4:52:09 AMRobert Rayment

Under Settings get Error 326 "0" not found. At frmSetup Form_Load .ClockFaceIndex = 0

(If this comment was disrespectful, please report it.)

 
2/12/2011 2:13:05 AMMark

Fantastic!! 5*'s
(If this comment was disrespectful, please report it.)

 
2/12/2011 9:54:49 AMPaul Bahlawan

Works now. Cool!
(If this comment was disrespectful, please report it.)

 
9/23/2012 3:53:08 AMmjohnlq

5 from me. very good!
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.