Jump to content
  • Advertisement
Sign in to follow this  
i24021

Solving t-junctions in geomipmapping

This topic is 4859 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 implemented the geomipmapping algorithm in managed directx but now i need to handle the cracks resulting from adjacent sections with diferent levels of detail. My current implementation relies on a vertex buffer per section and a global array of index buffers representing the different levels of detail. There is 4 possible situations that i need to cope to solve the cracks: - Blend Left - Blend Right - Blend Up - Blend Down * - And some mixed situations beetwen two cases, like for example Up and Left
0--1--2
| /| /|
|/ |/ |
3--4--5
| /| /|
|/ |/ |
6--7--8
IB = 0, 3, 1, 4, 2, 5, |5|, |3|, 3, 6, 4, 7, 5, 8 I'm using one single triangle strip to draw the sections as illustrated... The index buffer connects the two strips in the figure above using degenerate triangles, created by the addition of |5| and |3|. My problem is how do i build my index buffer for all the blending situations mencioned. I don't even know if this is possible since there is some strange cases like blending down and right that i'm not totally sure... =========LEFT=========
0-----2       0--1--2   0-----2 0-----1--2
|    /|       | /| /|   |    /| |    /| /|
|   / |       |/ |/ |   |   / | |   / |/ | 
|  /  | blend 3--4--5 = |  /  | |  /  4--5  
| /   | left  | /| /|   | /   | | / / | /|
|/    |       |/ |/ |   |/    | |//   |/ | 
6-----8       6--7--8   6-----8 6-----7--8
IB = 0, 6, 1, 4, 2, 5, |5|, |4|, 4, 7, 5, 8 Is this right ? ======================= =========RIGHT=========
0--1--2       0-----2    0--1-----2 0-----2
| /| /|       |    /|    | /|    /| |    /|
|/ |/ |       |   / |    |/ |  // | |   / |
3--4--5 blend |  /  | =  3--4/ /  | |  /  |
| /| /| right | /   |    | /| /   | | /   |
|/ |/ |       |/    |    |/ |/    | |/    |
6--7--8       6-----8    6--7-----8 6-----8
IB = ? ====================== =========TOP==========
0-----2   
|    /|   0-----2
|   / |   |    /|
|  /  |   |   / |
| /   |   |  /  |
|/    |   | /   |          
6-----8   |/    |     
          6-----8
 blend  =      
 top      0-----2
          |   / |
0--1--2   |  // |
| /| /|   | / / |
|/ |/ |   |/ /  |
3--4--5   3--4--5
| /| /|   | /| /|
|/ |/ |   |/ |/ |
6--7--8   6--7--8
IB = ? ====================== =========DOWN=========
          0--1--2 
0--1--2   | /| /|
| /| /|   |/ |/ |
|/ |/ |   3--4--5
3--4--5   |  / /|
| /| /|   | / / |
|/ |/ |   |/ /  |         
6--7--8   |/    |    
          6-----8
 blend  =  
 down     0-----2
          |    /|
0-----2   |   / |
|    /|   |  /  |
|   / |   | /   |
|  /  |   |/    |
| /   |   6-----8
|/    |   
6-----8   
IB = ? ====================== Tnks for any help [Edited by - i24021 on July 26, 2005 4:18:56 AM]

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!