Triangle strip and degenerate triangles

LongDuZboub

My question could be stupid but I didn't find good example of triangle strip utilization:

http://i.stack.imgur.com/KL8jk.png

With vertices like that:

A: -0.5f, -0.5f,  // Bottom left.
B: -0.5f,  0.5f,  // Top left.
C:  0.5f, -0.5f,  // Bottom Right.
D:  0.5f,  0.5f   // Top right.
----------------------------------
B--D
|\ |
| \|    
A--C    

Sometimes, in examples, we can find this configuration:

  • A, B, C, C, B, D

or this:

  • A, B, C, D

What is right? I've tried both and both works.

Now I would like to use degenerate triangle to merge two square.

B--D    F--H    
|\ |    |\ |    
| \|    | \|    
A--C    E--G    

Here is what I've got:

ABCD + DEEF + EFGH

But here again, I've got some artifacts sometimes.

JWWalker

If you use backface culling, the two configurations would not produce the same result. In the ABCD case, BCD is counterclockwise, whereas in the ABCCBD case, CBD is counterclockwise. The right way to draw two quads would depend on whether you care about orientation. I would suggest ABCDDEEFGH.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

GL_TRIANGLE_STRIPとGL_TRIANGLE_FAN

分類Dev

Can I texture this cube that is rendered in GL_TRIANGLE_STRIP mode?

分類Dev

A Bowyer-Watson Delaunay Triangulation I implemented doesn't remove the triangles that contain points of the super-triangle

分類Dev

単一のGL_TRIANGLE_STRIPを使用するキューブ

分類Dev

単一のGL_TRIANGLE_STRIPを使用してAを描画する

分類Dev

Metal for iOSのGL_TRIANGLE_STRIPに相当するものは何ですか?

分類Dev

GL_TRIANGLE_STRIPを使用して各列を相互に接続する

分類Dev

OpenGL ES:TRIANGLE_STRIP配列にDrawElementsを使用する必要がありますか?

分類Dev

Checking if a triangle is a right triangle

分類Dev

GL_TRIANGLE_STRIPモードでレンダリングされるこの立方体にテクスチャを付けることはできますか?

分類Dev

Dependency triangle

分類Dev

Triangle in python

分類Dev

Strip microsecond from datetime

分類Dev

Unnecessary strip in xamarin forms

分類Dev

Strip all punctuation in variable

分類Dev

Strip Filenames and Rename

分類Dev

CSS triangle over and IMG

分類Dev

Create triangle with rounded corners

分類Dev

Draw a triangle with OpenGL

分類Dev

OpenGL triangle is always white

分類Dev

Trinomial triangle (Python)

分類Dev

OpenGL: Cannot not render a triangle

分類Dev

Outlined triangle svg animation

分類Dev

WebGL with CocoonJS - Duplicate triangle

分類Dev

Triangle Recursion Java

分類Dev

svg triangle with 100% width

分類Dev

How to extract surface triangles from a tetrahedral mesh?

分類Dev

JavaScriptの文字列strip()?

分類Dev

PythonのString.strip()

Related 関連記事

ホットタグ

アーカイブ