ENG New site

Advanced search

[ New messages · Forum rules · Members ]
  • Page 1 of 1
  • 1
My idea for a procedural universe.
DisasterpieceDate: Monday, 10.12.2012, 19:44 | Message # 1
World Builder
Group: Users
United States
Messages: 640
Status: Offline
About 2 years ago I started thinking about procedural terrain for use in games that I was developing. Later I started thinking about procedural planets, which brought me to terragen. Then I decided, why just a planet. I started thinking of larger and larger scales until I decided I wanted to have a procedural universe. I searched for quite awhile (and somehow missed this) and then I decided I would have to make it. My idea was basically based on a seed (as usual in procedural worlds) that would be used to choose 2 million integers between 1 and 100 billion. These would be galaxy numbers. These numbers would be used to choose galaxy size in parsecs, galaxy type and colors of dust and gas. Each galaxy type would have models that are made of a few scattered points to give the general shape of the galaxy (between 2,000-20,000 of these). These points, referred to as form points, would be assigned their number, which is formatted as galaxy number and then form point number (ex. 12345-16000). This number would be used to procedurally generate star locations and their spectral class, size etc. Stars would be assigned numbers as galaxy number- form point number- star number (ex. 12345-16000-9,345,012) that would be used to generate planets, asteroids, comets and dwarf planets. These bodies would get their numbers the same way everything else does which would generate moons, terrain and liquids.

Would the idea work? Or would it be too difficult to work out the coding? Also would it be too computationally expensive?





I play teh spase engien

Edited by Disasterpiece - Saturday, 06.04.2013, 16:16
 
VoekoevakaDate: Monday, 10.12.2012, 22:53 | Message # 2
World Builder
Group: SE team
France
Messages: 1016
Status: Offline
Quote (Disasterpiece)
My idea was basically based on a seed (as usual in procedural worlds) that would be used to choose 2 million integers between 1 and 100 billion. These would be galaxy numbers.

One integer is coded in one byte, so the seed would take 2Mb. That's very expensive. You take 1Gb to emulate 500 galaxies...

I think you can need less resources (for example, a Minecraft world is based on a small sequence of chars), and you can find functions to generate more stuff with a "chaotic" aspect.

For example, take a random number x (between 0 and 1), and iterate x(n+1)=x(n)*k*(1-x(n)) : the comportement of the sequence x(n) will depend of k, and when k>3.5, it is very difficult to differenciate x(n) and a random sequence. Almost and all the RNGs (Random Number Generators) are based on such algorithms.





Want some music of mine ? Please go here !

 
DisasterpieceDate: Monday, 10.12.2012, 23:24 | Message # 3
World Builder
Group: Users
United States
Messages: 640
Status: Offline
Could you explain the part about 1Gb being 500 galaxies? I don't want to answer this in some way and sound retarded.




I play teh spase engien
 
VoekoevakaDate: Wednesday, 12.12.2012, 08:29 | Message # 4
World Builder
Group: SE team
France
Messages: 1016
Status: Offline
Quote (Disasterpiece)
Could you explain the part about 1Gb being 500 galaxies? I don't want to answer this in some way and sound retarded.


You said the galaxy seed is a set of 2 millions integers, so 500 galaxies are equivalent to 500*2000000=1000000000 integers. The basic format to save an integer on a computer takes 1 byte, so 500 galaxies takes 1Gb.

But as I said, there is a possibility to generate the seed with an oher seed, less big, and other parameters like the galaxy position.





Want some music of mine ? Please go here !

 
SpaceEngineerDate: Wednesday, 12.12.2012, 21:51 | Message # 5
Author of Space Engine
Group: Administrators
Russian Federation
Messages: 4800
Status: Offline
Why to save all these seeds? This makes no sense. You should just generate the seed based on coordinates of the galaxy or the star system.

*





 
DisasterpieceDate: Thursday, 13.12.2012, 21:03 | Message # 6
World Builder
Group: Users
United States
Messages: 640
Status: Offline
Thanks for the insight, my 11 year old brain wasn't to developed when I thought of the idea and the situation hasn't gotten much better biggrin .




I play teh spase engien
 
SpyroDate: Friday, 05.04.2013, 11:27 | Message # 7
Explorer
Group: Users
United States
Messages: 162
Status: Offline
In about a decade 1Gb to make 500 Galaxies will be almost nothing.
So it MAY work. but to design over 20,000 galaxy parts? No. That would take a very long time. By then, you would most likely lose all intrest.





I'm back, but am I here to stay? Hopefully!
 
RobbieDate: Saturday, 06.04.2013, 10:48 | Message # 8
Pioneer
Group: Global Moderators
United Kingdom
Messages: 590
Status: Offline
Disasterpiece, can you please rename your topic title to something more relevant to the discussion please. In fact the sub-title would be better as a topic title.




Quad Core i7 930 CPU o/c 3.8 GHz - 6GB DDR3 1600MHz RAM - ATI HD 5870 1024Mb - Intel SSD X25-M Gen 2 - Win 7 64-bit
Add Your PC Spec To Your Signature Or Post It Here
 
  • Page 1 of 1
  • 1
Search: