Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 18 Apr 2012
Offline Last Active Sep 16 2012 12:53 AM

Topics I've Started

[SOLVED]Problems with Vertex- and Indexbuffer

05 May 2012 - 07:30 AM

Hi there,

As some of you know, we are programming an MineCraft-like game.
This works very well.

We are allowed to flyring around, selecting blocks, etc....

Now we have a real problem. We want to add a block if somebody clicks the left mousebutton.
But if we add a block we have a graphic problem.

The world is divided in chunks (16*16*16 blocks).
If we add a block or sometimes if we are flying around some chunks are going to dissapear.
We don't know why and so we want to ask you if you can help us.

I've added the complete sourcecode.

Feel free to use it for your own projects if you want.

Attached File  Kubos.rar   840.92KB   40 downloads


Problem solved.
In Class "Chunks"->prepare we forgot to reset the variable "index" to "0";

[Solved]Need help for collision detection in cubic world

26 April 2012 - 01:40 PM

Hi there,

As you can see here http://www.gamedev.n...for-a-strategy/
I'm programming a minecraft-like game.

A lot of things are done. The only thing I need help with is to make a collision detection.

At the moment the game allows flying around with a first person camera and i want to detect which block and which side of a block a user is facing.

Have you got any ideas to realizing this?

If you need some code of our game please ask.
You can get the whole if you want.

Attached File  Kubos.rar   688.41KB   41 downloads

Thanks for help

VertexBuffer performance issue. Idea for a strategy?

18 April 2012 - 09:39 AM

Hi there,

I'm new in this forum.
At our university we have to program a game with DirectX9.

Me and some other students wanted to program a Minecraft-like game, but without unlimited terrain (don't worry Posted Image )
Now we have a problem with our performance.

Our strategy is, that we have a chunk with 16^3 blocks. We are going through all blocks and look if there is a neighbour above, in front, .....
If there is one we dont put the vertices and indices of this side of the cube into the buffer. This works really quick.

Now we made a class for a chunk. In this class we create the buffers and put in the vertices and indices and save them in a std::vector.

On rendering we fill the buffers with memcpy and draw the primitives.

If i try to draw 4 chunks, everything works fine with 60 fps. But if I try to draw more chunks (e.g. 64) the performance goes down to 8 fps.

I've added my source-code and wanted to ask for a strategy to improve the performance.

Source: Attached File  Kubos.zip   916.98KB   48 downloads

I hope you understand me (I'm german and my english isn't very well Posted Image )