Jump to content

  • Log In with Google      Sign In   
  • Create Account

Drayan's TechBlog

It's good to be a god

Posted by , in Codename:Space 22 November 2012 - - - - - - · 1,133 views

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.
Posted Image

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.).

Posted Image

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

Posted Image

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.

Posted Image

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 !

Codename : Space

Posted by , in Codename:Space 22 November 2012 - - - - - - · 574 views

For a while, (or "A long time ago, in a gala... Hmm, I digress.) I am interested in space and doing a game in this environment.
Fed by a plethora or Star trek and Stargate episodes, I wanted to give to this project the same kind of atmosphere.

Okay, now that you told your life, you explained to us what it is ?

Space (it's a codename), is a game that I imagined, it's more like a giant concept program that I dev on my free time.
Basicaly, it started from two "simple" wishes :
  • I want to be able to fly my own starship, and visit it's interior integrally. From the bridge, to the rear dock.
  • I want to have a procedural universe with planets, asteroids, etc, etc, all visitable, like in "Infinity".
That's how I started doing this little game.

In this blog, I'll write some articles on the advancement of this program, and methods used to achieve my goals.
I hope this could help someone else. Who knows ? Posted Image

Aw, a last thing, I'm not a English speaker, so, if you see any fault (my bet there's are many of them).
Thanks !

January 2017 »

151617181920 21

Recent Entries

Recent Comments