Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-22-2003, 06:07 PM   #1
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
Earth looks beautiful. Check out my openGL app

Check out this OpenGL project i coded last week. I just thought i created something beautiful and i felt like sharing

(everything virus checked, no worries)

Download: http://www.cjultra.com/opengl/planet.zip

You also need to put this file in your system32 folder: http://www.cjultra.com/opengl/glut32.dll


Instructions:

Extract the contents of the zip file in a folder.

Run main.exe

You will see a blank window. Now you can use the right click menu to draw. Click on the following selections:

- Draw planet sphere
- Planet texture -> earth.bmp
- Draw cloud sphere
- Cloud texture -> clouds.bmp
- Cloud transparency
- Cloud shadows

You can use the left mouse button to drag and rotate the planet. Also you can use the Animate option in the right click menu to make it rotate smoothly (clouds and planet rotate at different speeds). You can use the wireframe mode to see the wireframe model of the planet. You can use culling for increasing the performance; it doesnt draw the opposite surface that is not visible to the camera if it is enabled.

You can use your own textures with the program. But they have to be 2:1 in size and the dimensions have to be power of 2 and extensions need to be bmp. So they have to be like 1024x512 or 512x256 or 256x128 etc.. When you run main.exe, it will detect them all and add to the list inside the program.


here are a few resized screenshots (but it looks much better when you run it from your PC):







here is the sourcecode:
http://www.cjultra.com/opengl/main.cpp
http://www.cjultra.com/opengl/Glext.h
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2003, 06:09 PM   #2
Theo
HAL 9000
 
Industry Role:
Join Date: May 2001
Posts: 34,515
impressive!
Theo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2003, 06:15 PM   #3
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
thanks

this is the map that i used:

__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2003, 06:32 PM   #4
X37375787
Guest
 
Posts: n/a
cool beans bro
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2003, 09:55 PM   #5
buddyjuf
Guest
 
Posts: n/a
wow! awesome work buddy!
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2003, 10:03 PM   #6
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
if you think your graphics card can handle it, try using these images to get more detail


http://www.oera.net/How2/PlanetTexs/..._2500x1250.jpg
http://www.oera.net/How2/PlanetTexs/..._2500x1250.jpg


you have to resize them to 2048x1024 and convert to bmp and put in the same folder where the proggy is.

and there are some more here:
http://www.oera.net/How2/TextureMaps.htm
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2003, 11:28 PM   #7
X37375787
Guest
 
Posts: n/a
youre the shit boro
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-22-2003, 11:35 PM   #8
Nina
Confirmed User
 
Join Date: Mar 2002
Location: NYC
Posts: 2,687
cool.
Nina is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2003, 02:32 AM   #9
OzKaNoz
Confirmed User
 
Join Date: Jan 2001
Location: Deep With In Your Mind
Posts: 1,834
Pretty damn cool Lane!



Oz
__________________
Techie Media Web Hosting
OzKaNoz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2003, 02:50 AM   #10
Baal
Confirmed User
 
Join Date: Jan 2002
Location: SoCal
Posts: 696
Quote:
Originally posted by Lane
if you think your graphics card can handle it, try using these images to get more detail


http://www.oera.net/How2/PlanetTexs/..._2500x1250.jpg
http://www.oera.net/How2/PlanetTexs/..._2500x1250.jpg


you have to resize them to 2048x1024 and convert to bmp and put in the same folder where the proggy is.

and there are some more here:
http://www.oera.net/How2/TextureMaps.htm
Good stuff there, I remember I found a world map based upon those maps that was something like 25,000x18000 resolution... that was amazing. I could almost see myself on there! Don't remember the site that huge map is on though.
Baal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.