Jump to content


Photo

3D Galaxy Creator!


  • Please log in to reply
10 replies to this topic

#1 coolkat677

coolkat677

    GMC Member

  • GMC Member
  • 113 posts

Posted 25 September 2011 - 07:17 AM

Hello everyone! I made this procedural galaxy generator a while back and thought that there might be some more creative people here who could run with it!

Anyway, lemme tell you a little about it! It is truly of realistic size. Each pixel you see is 1 meter. The radius of the Earth is 6,378,100m meaning that it would be 6,378,100 pixels in radius. Cool right? I managed to overcome that stupid z-precision problem by setting the camera's x,y,z position to a constant (0,0,0). If you program with openGL, this is how the camera works where the camera stays at (0,0,0) and the objects around it move to give the illusion that you're moving. The concept sounds weird, but it works!

Also, the galaxy does have over a million stars. You just can't see them all because it is organized into data trees! Go near a star cluster and it turns on it's branches. Go to one of the branches turns on more and more until you hit the solar system level.

Anyway have fun mucking around in my coding nightmare!

GMK Download Link
Exe Download Link




Posted Image


Posted Image


Posted Image


Also the basic controls:

Click with the left mouse button to move to a new cluster/ star
Hold down the right mouse button to orbit around
Use the mouse wheel to zoom (use shift to zoom faster)

P.S. I put in the our solar system if you zoom in initally! It's not much just the Earth, Moon, Jupiter, and a light beam coming from the Sun.

Edited by coolkat677, 26 September 2011 - 11:02 PM.

  • 0

#2 Debels

Debels

    GMC Member

  • GMC Member
  • 2752 posts
  • Version:GM:Studio

Posted 25 September 2011 - 07:31 AM

ERROR in
action number 3
of Other Event: Room Start
for object obj_start_control:

File is not opened for reading.

We need the models
  • 0

#3 coolkat677

coolkat677

    GMC Member

  • GMC Member
  • 113 posts

Posted 25 September 2011 - 07:37 AM

Oops sorry about that link should be fixed!
  • 0

#4 Debels

Debels

    GMC Member

  • GMC Member
  • 2752 posts
  • Version:GM:Studio

Posted 25 September 2011 - 07:49 AM

Cool Example!

Thanks
  • 0

#5 sneaky666

sneaky666

    536e65616b79

  • GMC Member
  • 1045 posts
  • Version:GM:Studio

Posted 26 September 2011 - 02:41 PM

can u put the .exe as well?
  • 0

#6 coolkat677

coolkat677

    GMC Member

  • GMC Member
  • 113 posts

Posted 26 September 2011 - 11:03 PM

As per request, the .exe has put uploaded with a few new images ^^
  • 0

#7 Railgun88

Railgun88

    GMC Member

  • New Member
  • 81 posts

Posted 29 September 2011 - 09:02 AM

Two questions. Could you turn this do only 2D? Can I use it my real time 4X game?
  • 0

#8 sparkythecat101

sparkythecat101

    GMC Member

  • New Member
  • 50 posts

Posted 29 September 2011 - 06:42 PM

From the screenshots and your description, it sounds really neat, but on my box, it takes a minute to load the main window.
And then, it just shows a white screen, while using 100% cpu.
I've left it for 15 minutes so far and it still hasn't done anything!
  • 0

#9 coolkat677

coolkat677

    GMC Member

  • GMC Member
  • 113 posts

Posted 29 September 2011 - 08:59 PM

@Railgun: Yeah of course you can turn it into 2D and use it! Some sort of credit would be nice would be nice though.

@Sparkythecat101: It seems as though your computer probably doesn't have a good graphics card (either old or integrated). If you're running the gmk then the stars are created by using a billboard that scales the alpha depending on the distance. Here are the details for the ram/cpu usage as well as my computer specs:

Game Usage:
RAM: 66,372 Kb
CPU: 10%

Computer Specs:
Processor: AMD Phenom II x4 910 (4 Cpus) 2.6Ghz
RAM: 8Gb DDR3
GPU: ATI Radeon HD 4300/4500 (240Mb of memory)

If you post your specs I can help you debug it better!
  • 0

#10 sparkythecat101

sparkythecat101

    GMC Member

  • New Member
  • 50 posts

Posted 30 September 2011 - 08:09 PM

@coolkat677
Celeron 2.9ghz
512mb
128mb ati radeon 9100

I think I should upgrade sometime... But you have 8gb? Isn't that a tad overkill?
  • 0

#11 Pro

Pro

    GMC Member

  • GMC Member
  • 53 posts
  • Version:GM8

Posted 06 October 2011 - 06:53 PM

This is awesome! It would be perfect for a menu like spore! ::lmao::
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users