[SOLVED]Problems with Vertex- and Indexbuffer

Started by
0 comments, last by Wartime 11 years, 8 months ago
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.

[attachment=8694:Kubos.rar]

[color=#ff0000]--------------------------------------------------------------------------------------------

[color=#ff0000]Problem solved.
[color=#ff0000]In Class "Chunks"->prepare we forgot to reset the variable "index" to "0";
Advertisement
I've forgot to upload the final source-code.
We have got an 1.0 (excellent) for our Project.

Thanks to all who helped us.

Here is the final sourcecode.
Feel free to use it for your own projects.

This topic is closed to new replies.

Advertisement