Vertices Count == Indices Count ??

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
gastar
Posts: 9
Joined: Wed Sep 24, 2003 7:52 am

Vertices Count == Indices Count ??

Post by gastar »

Hi,

while i was writing a function that would compute the right Normals for a 3DS file i stumbled into something weird.

To compute the Normals i need to check every Vertex and than check the Indices how often it is used. But the Indices count is equal to the Vertices count and every Vertex was only used one time.

If i have something like this:

Code: Select all

V---V
|  /|
| / |
|/  |
V---V
I would expect 4 Vertices and 6 Indices for the two triangles, while two Vertices are used twice.

Do i expect something wrong ?

Gastar
Post Reply