D3D Drawing / Strange result
http://home.no.net/gmg/result.jpg
Is there anything in the drawing commands that could cause such a result, anything besides an error in the vertex/index buffer?
Basicly have two projects (sample+own), both have identical vertex and index buffers, one works, the other doesnt.
(everything is connected to the start, and it stops rendering the 'terrain' all of the sudden, supposedly 64x64)
-- Also what is the recommended/absolute maximum vertices in a vertex buffer?
Note: also posted in beginners, but figure it may be easier to get a reply here.
Are you using 32bit indexbuffers? Then you should check whether your video-hardware supports them... i had weird problems with that too.
Infact, it's good practice to check for all capabilities used in your code, @ initialization.
Do you have installed the DX Debug runtimes? They might give you some info about things that go wrong.
good luck.. hope you can kill the bug ;)
Infact, it's good practice to check for all capabilities used in your code, @ initialization.
Do you have installed the DX Debug runtimes? They might give you some info about things that go wrong.
good luck.. hope you can kill the bug ;)
Debug info was actually turned off by a mistake, on now but no errors are detected.
The index buffers are 16 bits
Thing is in the sample code(from a book), it displays fine.
I've dumped the index and vertex buffers from both my code and the sample code, the data is identical.
The index buffers are 16 bits
Thing is in the sample code(from a book), it displays fine.
I've dumped the index and vertex buffers from both my code and the sample code, the data is identical.
Sob... i change to 32bit index buffers and it works just fine..
(sample code is still running fine at 16bit)
What could cause this?
With two equal index buffers even..
(sample code is still running fine at 16bit)
What could cause this?
With two equal index buffers even..
Supposed to be a 64 x 64 grid, instead it stops halfway and links everything to the beginning.
It does however work fine under 32 bit, just gave up on googling the differences between a 16 and 32 bit index buffer, too many random results.
Looking into it at some later date, sample code still runs fine on 16bit :/
It does however work fine under 32 bit, just gave up on googling the differences between a 16 and 32 bit index buffer, too many random results.
Looking into it at some later date, sample code still runs fine on 16bit :/
You're writing an array of 32-bit integers as a 16-bit index buffer. Use 16-bit integers when setting up your index buffer.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement