• Advertisement
Sign in to follow this  

Beginner QuadTree & Index/Vertex Buffer question

This topic is 4050 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've been playing around with Geomipmap and Quadtree(for LOD). And I've noticed that Geomipmap only works if the heightfield size is 2^n + 1. So my 1st question is: -Does Quadtree has this same limitation? My 2nd question: -When does Vertex/Index Buffer is placed in the memory? After the CreateIndex/VertexBuffer() call or after the first Lock()&Unlock() calls? If it's the first case(after the CreateIndex/VertexBuffer() call) then: - How does the system insert data into buffers if they were created with the Read-only flag?. Thanks for looking :) Cheers :D

Share this post


Link to post
Share on other sites
Advertisement
You fill the vertex buffer with a call to Lock(), it's the same... the READONLY flag promises the driver that your application will not attempt to add data to it. It's mainly used for performance issues.

Share this post


Link to post
Share on other sites
Quote:
Original post by Tutukun
Hi,
I've been playing around with Geomipmap and Quadtree(for LOD). And I've noticed that Geomipmap only works if the heightfield size is 2^n + 1. So my 1st question is:

-Does Quadtree has this same limitation?


It is not required to have this limitation. In fact, the meshes don't even have to be grids. On the other hand, making the size 2n+1 helps when it comes to issues such as joining adjacent patches and LOD transitions (geomorphing, for example.)

Share this post


Link to post
Share on other sites
Quote:
Original post by VerMan
You fill the vertex buffer with a call to Lock(), it's the same... the READONLY flag promises the driver that your application will not attempt to add data to it. It's mainly used for performance issues.


what about index buffer? is it the same as vertex buffer?

Cheers


Quote:
It is not required to have this limitation. In fact, the meshes don't even have to be grids. On the other hand, making the size 2n+1 helps when it comes to issues such as joining adjacent patches and LOD transitions (geomorphing, for example.)

So you mean for size that is not 2^n+1 Quadtree is harder to do than the one for 2^n+1 size?

Thanks :)

[Edited by - Tutukun on March 23, 2007 7:03:50 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement