XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Adjancency Data

Last post 08-28-2008 6:32 AM by John Rapp. 1 replies.
  • 08-28-2008 4:12 AM

    Adjancency Data

    I have seen the word "adjacency" appear both in ID3DX10MESH, and in the D3D10_PRIMITIVE_TOPOLOGY, however in both places it is simply described as "adjacency data". Well, gee that tells me alot. I know what the word adjacent means, but what does this data look like, how is it used?
  • 08-28-2008 6:32 AM In reply to

    Re: Adjancency Data

    It's data that's parallel to your index buffer. It's 3 DWORDs per triangle, specifying, for each triangle T in the mesh, the indices of the 3 triangles U, V, and W, that are adjacent to T across the its 3 edges, in the order specified in the index buffer.

    In D3D10, the adjacency data is in the index buffer as well, and since only vertices are in index buffers, instead of giving the triangle index, you give the opposite vertex of the triangle on the other side of the edge (as described here: http://msdn.microsoft.com/en-us/library/bb205124(VS.85).aspx).

Page 1 of 1 (2 items) Previous Next