Important alert: (current site time 9/3/2014 12:16:32 AM EDT)
 

winzip icon

The Truth is Out There Demo

Email
Submitted on: 6/19/2004 11:48:46 AM
By: Daniel Vukadinovic  
Level: Advanced
User Rating: By 5 Users
Compatibility: Microsoft Visual C++
Views: 4655
 
     This is wannabe-demo.it's done in opengl using GLUT with c (compiled on windows machine using VC++6).3d earth rotating around the sun and the stars are shining and there is also some alien spaceship and xfiles music.It shows the basics of OpenGL(glut,user input,sphere mapping,playing music,lighting).it's really basic code and everyone should understand it.I used .raw textures, because they are easy to handle and easy to understand for beginners. ssk,comment,vote :)

 
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.

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 7 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

6/20/2004 5:41:57 AM

someone just warned me that the application isn't working without a glut32.dll, so i uploaded it to a temp space, just click on the GLUT text: http://bsdpowa.50megs.com
(If this comment was disrespectful, please report it.)

 
6/21/2004 5:52:54 AMmnasell

textures are missing !?

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

 
6/21/2004 7:15:13 AMdaniel vukadinovic

uh, this PSC is really weird, i know i put al the textures in, you can visit my website and download the EXE + source code + textures + music = 940Kb or here us the DDL www.freewebs.com/vbmax_/en/download/TTOT.zip i apologize once again
(If this comment was disrespectful, please report it.)

 
6/21/2004 10:40:13 AMmnasell

use glDisable(GL_BLEND); to disable TextureBlending, cause i suppose the viewer can't see the earth behind the sun ;-)

I guess also that this isn't advance.

... but keep on (4 Globes)

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

 
6/21/2004 1:39:27 PMdaniel vukadinovic

thanks for the advice (i totaly forgot about that), no it's not advance, the opposite, it's beginner level, i accidently clicked the 'advanced' button :) thanks for your post and voting
(If this comment was disrespectful, please report it.)

 
12/24/2004 1:42:39 PMSarmad

the link u gave is not working.....great work though...just a perfect one for the beginners like me
(If this comment was disrespectful, please report it.)

 
3/12/2006 4:12:27 AMnightangel

Hi,im quite new in Opengl with c++
can any1 solve this problem for me thx

Linking...
test10.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
Debug/test10.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
(If this comment was disrespectful, please report it.)

 
3/12/2006 4:25:57 AMnightangel

although i disable the code of the PlaySound function, it come out 39 warnings and it cnanot be found the bmp files


load_texture("yellow.bmp", 640, 320, 3, GL_RGB, GL_NEAREST);
load_texture("earth.raw", 640, 320, 3, GL_RGB, GL_NEAREST);
load_texture("alien.bmp", 640, 320, 3, GL_RGB, GL_NEAREST);

is it i missing download the bmp files? it is not inside the ZIP file tat posting inside this webpage
(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.