Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Repeated rendering

$
0
0

@torshid wrote:

Hi,
I updated my MG version from 3.6 to 3.7, and I encountered a weird behaviour.
As you can see below, I have a terrain made of chunks (each drawn separately), but all the chunks are just copies of one single chunk (which seem to be chosen depending on where the camera looks at...):

I did some search and found nothing regarding that, and I would like to precise that when I downgrade my MG, everything is back to normal.

The drawing of each chunk is done using vertex buffers and the DrawIndexedPrimitives method:

this.World.Device.SetVertexBuffer(this.VertexBuffer);
this.World.Device.Indices = this.IndexBuffer;

foreach (EffectPass Pass in Effect.CurrentTechnique.Passes)
{
    Pass.Apply();
    this.World.Device.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, this.IndexBuffer.IndexCount / 3);
}

I thank you in advance for any help.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles