Thrive Game Development
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Thrive Game Development

Development of the evolution game Thrive.
 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  
Welcome new and returning members!
If you're new, read around a bit before you post: the odds are we've already covered your suggestion.
If you want to join the development team, sign up and tell us why.
ADMIN is pleased to note that this marquee has finally been updated.
ADMIN reminds you that the Devblog is REQUIRED reading.
Currently: The Microbe Stage GUI is under heavy development
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Quick Links
Website
/r/thrive
GitHub
FAQs
Wiki
New Posts
Search
 
 

Display results as :
 
Rechercher Advanced Search
Statistics
We have 1675 registered users
The newest registered user is dejo123

Our users have posted a total of 30851 messages in 1411 subjects
Who is online?
In total there are 12 users online :: 0 Registered, 0 Hidden and 12 Guests

None

Most users ever online was 443 on Sun Mar 17, 2013 5:41 pm
Latest topics
» THIS FORUM IS NOW OBSOLETE
Planetary coordinates - Page 2 Emptyby NickTheNick Sat Sep 26, 2015 10:26 pm

» To all the people who come here looking for thrive.
Planetary coordinates - Page 2 Emptyby NickTheNick Sat Sep 26, 2015 10:22 pm

» Build Error Code::Blocks / CMake
Planetary coordinates - Page 2 Emptyby crovea Tue Jul 28, 2015 5:28 pm

» Hello! I can translate in japanese
Planetary coordinates - Page 2 Emptyby tjwhale Thu Jul 02, 2015 7:23 pm

» On Leave (Offline thread)
Planetary coordinates - Page 2 Emptyby NickTheNick Wed Jul 01, 2015 12:20 am

» Devblog #14: A Brave New Forum
Planetary coordinates - Page 2 Emptyby NickTheNick Mon Jun 29, 2015 4:49 am

» Application for Programmer
Planetary coordinates - Page 2 Emptyby crovea Fri Jun 26, 2015 11:14 am

» Re-Reapplication
Planetary coordinates - Page 2 Emptyby The Creator Thu Jun 25, 2015 10:57 pm

» Application (programming)
Planetary coordinates - Page 2 Emptyby crovea Tue Jun 23, 2015 8:00 am

» Achieving Sapience
Planetary coordinates - Page 2 Emptyby MitochondriaBox Sun Jun 21, 2015 7:03 pm

» Microbe Stage GDD
Planetary coordinates - Page 2 Emptyby tjwhale Sat Jun 20, 2015 3:44 pm

» Application for Programmer/ Theorist
Planetary coordinates - Page 2 Emptyby tjwhale Wed Jun 17, 2015 9:56 am

» Application for a 3D Modeler.
Planetary coordinates - Page 2 Emptyby Kaiju4u Wed Jun 10, 2015 11:16 am

» Presentation
Planetary coordinates - Page 2 Emptyby Othithu Tue Jun 02, 2015 10:38 am

» Application of Sorts
Planetary coordinates - Page 2 Emptyby crovea Sun May 31, 2015 5:06 pm

» want to contribute
Planetary coordinates - Page 2 Emptyby Renzope Sun May 31, 2015 12:58 pm

» Music List Thread (Post New Themes Here)
Planetary coordinates - Page 2 Emptyby Oliveriver Thu May 28, 2015 1:06 pm

» Application: English-Spanish translator
Planetary coordinates - Page 2 Emptyby Renzope Tue May 26, 2015 1:53 pm

» Want to be promoter or project manager
Planetary coordinates - Page 2 Emptyby TheBudderBros Sun May 24, 2015 9:00 pm

» A new round of Forum Revamps!
Planetary coordinates - Page 2 Emptyby Oliveriver Wed May 20, 2015 11:32 am


 

 Planetary coordinates

Go down 
+3
Invader
Commander Keen
roadkillguy
7 posters
Go to page : Previous  1, 2
AuthorMessage
~sciocont
Overall Team Lead
~sciocont


Posts : 3406
Reputation : 138
Join date : 2010-07-06

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptySun Sep 05, 2010 6:59 pm

It's good to use for distance away fron the player, though, right?
Back to top Go down
roadkillguy
Experienced
roadkillguy


Posts : 528
Reputation : 17
Join date : 2010-08-25
Age : 31
Location : Rhode Island

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptySun Sep 05, 2010 7:09 pm

Now that I re-read what uteen said, that would be much more suited by a blur effect. What I've written is for terrain in the distance.

Also, I've been able to put together a simple grid, I'm now working on the subdivisions.
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyMon Sep 06, 2010 11:24 pm

roadkillguy wrote:
For simplicity's sake I was thinking of something like the following:

Planetary coordinates - Page 2 Map10

Not necessarily like a quadtree, just sectioned LOD. It may prove to not work if the planet is VERY large, but for this game I was thinking spore sized planets or less.

It would work by having nodes that contain two-dimensional arrays. To get the vertices, we render the initial grid, and then add more vertices depending on the detail level.

It works in my head anyway

EDIT: Here's some pseudo-code.

Spoiler:


I've been thinking about this quite a bit during lectures, and this is pretty much what we need. We need a base detail level for environmental simulations such as the discussion in another thread about water simulations and erosion and whatnot.

You have a base detail level as an array, lets say, a meter by a meter squared, and then you interpolate that into a more detailed mesh. Otherwise when we get to implementing Navier-stokes, the whole world asplodes. Navier-stokes algorithms on a randomly detailed quadtree is INSANE.
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyMon Sep 06, 2010 11:25 pm

Commander Keen wrote:
Planets should be as scalabe as possible, because right now we can't just see what size will have the best gameplay/performance ratio. Limiting it to Spore size or less might lead us into problems later.

Yeah thats easy. Change the constant, change the planet size.
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyMon Sep 06, 2010 11:26 pm

~sciocont wrote:
roadkillguy wrote:
I'm sure it will work for what we're trying to do.
Again, experimentation is the best way to figure this out.

AFAIK, that is what roadkillguy is doing now
Back to top Go down
roadkillguy
Experienced
roadkillguy


Posts : 528
Reputation : 17
Join date : 2010-08-25
Age : 31
Location : Rhode Island

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyMon Sep 06, 2010 11:31 pm

Recently I've actually been thinking about using perlin noise to generate the terrain. Then, theoretically, we could get as detailed as we want letting the equation generate the terrain.

Navier–Stokes? Fluid dynamics right? That sounds pretty crazy... I have to admit I've never made or played a game where that was implemented.
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyMon Sep 06, 2010 11:41 pm

roadkillguy wrote:
Recently I've actually been thinking about using perlin noise to generate the terrain. Then, theoretically, we could get as detailed as we want letting the equation generate the terrain.

Navier–Stokes? Fluid dynamics right? That sounds pretty crazy... I have to admit I've never made or played a game where that was implemented.



It's quite interesting.


Okay, more detail:

you have a set of base arrays:

planetgrid[][]
These are all cells of even size, say 1 metre. and take up a space of say 100 Metres.
Then each 100 metre grid is stored on a bunch of nodes, which are attached to a node the size of the cube face, or something similar.

We apply perlin noise to the grids we are working with, to get our planet layout.

This grid is further subdivided to create our detailed mesh close up.
For rendering far away, we simply take every second, fourth, or eight value and so on.

This way we have a consistent size for the terrain simulations and we can still LOD to our heart's content.


We could cut it a thousand ways, having only one grid for each cube face, and so on, but this is a general idea. We could also have 100metre grids stored on a quadtree that gets leafed with the average height of the game grid or something.

P.S.

wow. I accidentally edited your post. Still getting used to being a mod suddenly :/
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyMon Sep 06, 2010 11:45 pm

See, the problem with generating top down if we want dynamic terrain is just that. you can't have dynamic terrain.

So... We can still generate procedurally, but we have to go bottom up.
Back to top Go down
roadkillguy
Experienced
roadkillguy


Posts : 528
Reputation : 17
Join date : 2010-08-25
Age : 31
Location : Rhode Island

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 12:16 am

That's true, and it's actually coming along fairly well. I have an ogre head showing up, along with a nice grid of algorithmically generated faces.

The only thing I'm worried about is merging the two. If the current project is a spline editor, and I'm working on an entire planet It may be a while until we merge the two.
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 12:32 am

roadkillguy wrote:
That's true, and it's actually coming along fairly well. I have an ogre head showing up, along with a nice grid of algorithmically generated faces.

The only thing I'm worried about is merging the two. If the current project is a spline editor, and I'm working on an entire planet It may be a while until we merge the two.

Not really. It's segregated quite a bit. most everything is implemented as a module.

The renderer is part of the parent engine, so that we have to heavily modify. But the terrain output merely needs to be wrtitten into a module class, and implement the load unload enable disable and step functions, and bam you have a module.

Modules work like this:

a standard module that only implements load unload enable and disable functions can plug in as a dll (i'm currently working on the dll plugging code) and is managed automatically by the module manager within the parent engine.

Any custom modules can be loaded manually from the engine and compiled directly into it.

EDIT: CONTINUED:


all modules get passed a pointer to an assetmanager class, which is where all assets (game resources, such as game objects, fonts, etc.) get stored.

Ill include a versioning system as well so that any dll compiled with the assetmanager header will contain the assetmanager version, and when loading the dll the modulemanager will check for compatability with the current assetmanager and possibly providing an alternate interface in the case that there is a mismatch.


Last edited by Bashinerox on Tue Sep 07, 2010 4:55 am; edited 1 time in total
Back to top Go down
Noitulove
Regular



Posts : 237
Reputation : 0
Join date : 2010-07-09

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 2:23 am

Something-of-a-bump.

What I'm getting from this is that as you get closer to the planet, the grid gets smaller and smaller; thus, if you have a 4 x 4 grid that splits (quadtree), one of those four squares will have four squares inside it, and in essence the grid is getting smaller and more of the planet is being generated, or loaded, that is, if you've visited it before.

Getting warmer?
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 4:49 am

Noitulove wrote:
Something-of-a-bump.

What I'm getting from this is that as you get closer to the planet, the grid gets smaller and smaller; thus, if you have a 4 x 4 grid that splits (quadtree), one of those four squares will have four squares inside it, and in essence the grid is getting smaller and more of the planet is being generated, or loaded, that is, if you've visited it before.

Getting warmer?

Spot on.
Back to top Go down
roadkillguy
Experienced
roadkillguy


Posts : 528
Reputation : 17
Join date : 2010-08-25
Age : 31
Location : Rhode Island

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 10:42 pm

Something to that effect. This is how I thought the noise should work.

1. We create a nice subdivided cube.

2. We send the vertices through an equation to get a sphere.

3. We apply the noise to get the altitude.

While I wrote that I just realized that may not work if we don't want to re-render the entire cube/sphere at once..
In other words, if we only want to update the terrain we're near it would fail when subdividing.. I'm just worried it will flicker.
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 10:48 pm

roadkillguy wrote:
Something to that effect. This is how I thought the noise should work.

1. We create a nice subdivided cube.

2. We send the vertices through an equation to get a sphere.

3. We apply the noise to get the altitude.

While I wrote that I just realized that may not work if we don't want to re-render the entire cube/sphere at once..
In other words, if we only want to update the terrain we're near it would fail when subdividing.. I'm just worried it will flicker.

You cull the vertex output, not the not the original data.
Back to top Go down
roadkillguy
Experienced
roadkillguy


Posts : 528
Reputation : 17
Join date : 2010-08-25
Age : 31
Location : Rhode Island

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 10:50 pm

Well... Nevermind. I think I got it. I tend to go back and fourth a lot
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 10:52 pm

I need you to create a sourceforge account. Then i can give you a branch on svn, which we can merge to the trunk at regular intervals
Back to top Go down
roadkillguy
Experienced
roadkillguy


Posts : 528
Reputation : 17
Join date : 2010-08-25
Age : 31
Location : Rhode Island

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 10:57 pm

Allright, I'm pretty sure that worked. I have the same name as I do here.
Back to top Go down
Bashinerox
Programming Team lead
Bashinerox


Posts : 238
Reputation : 8
Join date : 2010-07-07
Age : 35
Location : Australia

Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 EmptyTue Sep 07, 2010 11:04 pm

Okay, ill work on giving each of us (currently papergrape, yourself, and I) a separate branch to work on, with trunk merges reserved for agreed apon states of the branches.
Back to top Go down
Sponsored content





Planetary coordinates - Page 2 Empty
PostSubject: Re: Planetary coordinates   Planetary coordinates - Page 2 Empty

Back to top Go down
 
Planetary coordinates
Back to top 
Page 2 of 2Go to page : Previous  1, 2
 Similar topics
-
» Planetary Scales
» Planetary Fertility
» Heightmaps and other planetary data
» Weather in the planetary editor
» Planetary Climate Maths

Permissions in this forum:You cannot reply to topics in this forum
Thrive Game Development :: Development :: Programming :: Technical Discussion-
Jump to: