• Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

It's good to be a god

Sign in to follow this  


After some months of work, and a lot research on the web, I finally got a result (at last !). The first screenshot of the concept "planetary engine".

It's not very advanced, there is a lot to do. But I'm impatient, I can't wait to show them. So, let's go !

The first screen, in wireframe so you can see the structure of the procedural mesh.


Like in other implementation, the details of the terrain show themselves when the camera get closer to the ground.

I use a classical "Chuked lod" algorithm. It's just modified a little bit to handle a spherical terrain. Each chunks are computed separately in one of the four consumer threads. This allow the player to approach the planet smoothly, independently of the computational power of the computer (to a certain extent.).


Now, the player will not see it in wireframe, so here a screenshot of the planet :


You probably noticed some glitches in this image. This come from the method used to implement the normals computation.

To have a result faster, I just compute the normal of the current chunk, without taking in count the neighbors chunks. That's why you can see the "boundaries" of the chunk. This will be easy to fix.

But actually, I wonder if it would be better to use a normal map ?

The answer is probably yes. But I've never done that.


This is a closer look of the ground, you can see even better the glitches. There's also another bug, some "black pixels", some holes. Because between two different level of details, half of the vertices on the edges of the chunk of level n+1 aren't in the edge of the chunk of level n.

But this will be easily fixed with the "skirts" methods as explained in the chunked lod articles. Actually, there are already in the program, but I disabled them because of a little bug ;). Ah, the dev life.

If someone is interested of this project, I will probably write an article more detailed and more technical of this topic.

Thanks !

Sign in to follow this  


Recommended Comments

Congrats on the results so far! Reminds me of very early versions of [url="http://www.infinity-universe.com/Infinity/index.php?option=com_content&task=blogcategory&id=0&Itemid=47"]Infinity[/url] -- perhaps some of Flavien's posts will be of interest to you.

I'm sure plenty of people would be interested in some more technical details from your project!

Share this comment

Link to comment
Thanks, it's actually inspired from Infinity. I planned to make a little space game, and I saw infinity... I was like "Wow... I NEED THAT !". By the way, I don't want to copy Infinity. But what Flavien do with his engine is really amazing.

Anyway, thanks for feedback ! I plan to write a post of the technique behind the scene. But before present my CPU implementation, I try to optimize it a little.

Share this comment

Link to comment

awesome, we need more of this!

how hard would it be to add terraforming to that terrain like in wurm?

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement