• Advertisement

Drayan

Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

124 Neutral

About Drayan

  • Rank
    Newbie
  1. It's good to be a god

    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.
  2. Hi Lipsryme, You want to limit your fps to 60. What I don't understand is why you divide your "timeDifference" by the ticks of the CPU. Maybe should you try to assign "frameTime" to "timeDifference". I think that what you're doing by dividing by cpu's tick limit the "frameTime" and so don't trigger the "if" condition. [source lang="cpp"] if(frameTime >= (1000 / 60)) [/source] So let's try with : [source lang="cpp"] void Timer::Frame() { INT64 currentTime; double timeDifference; QueryPerformanceCounter((LARGE_INTEGER*)&currentTime); timeDifference = (double)(currentTime - this->startTime); this->frameTime = timeDifference /* this->ticksPerMs*/; this->startTime = currentTime; } [/source] Tell me if it work, or not [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]. Regards, Drayan
  3. It's good to be a god

    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 !
  4. Codename : Space

    [font=verdana, geneva, sans-serif]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.[/font] [font=verdana,geneva,sans-serif]Fed by a plethora or Star trek and Stargate episodes, I wanted to give to this project the same kind of atmosphere.[/font] [font=verdana, geneva, sans-serif]Okay, now that you told your life, you explained to us what it is ?[/font] [font=verdana,geneva,sans-serif]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.[/font] [font=verdana,geneva,sans-serif]Basicaly, it started from two "simple" wishes :[/font] [font=verdana,geneva,sans-serif]I want to be able to fly my own starship, and visit it's interior integrally. From the bridge, to the rear dock.[/font] [font=verdana,geneva,sans-serif]I want to have a procedural universe with planets, asteroids, etc, etc, all visitable, like in "Infinity".[/font] [font=verdana,geneva,sans-serif]That's how I started doing this little game.[/font] [font=verdana,geneva,sans-serif]In this blog, I'll write some articles on the advancement of this program, and methods used to achieve my goals.[/font] [font=verdana,geneva,sans-serif]I hope this could help someone else. Who knows ? [/font] [font=verdana,geneva,sans-serif]Aw, a last thing, I'm not a English speaker, so, if you see any fault (my bet there's are many of them).[/font] [font=verdana,geneva,sans-serif]Thanks ![/font]
  • Advertisement