Jump to content

Image of the Day

#QuestOfDungeons is an old-fashioned dungeon crawler. #ScreenshotSaturday  #PS4share

https://t.co/1mztLegxeN https://t.co/DpYimg3MZb
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Number of vertices and number of triangles in modern game

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
5 replies to this topic

#1 313230   Members   

120
Like
0Likes
Like

Posted 02 January 2013 - 10:15 PM

Which is more?

 

Is that number of vertices always triples the number of triangles?


Thanks



#2 rdragon1   Members   

1205
Like
2Likes
Like

Posted 02 January 2013 - 10:23 PM

No, vertices can be shared between adjacent triangles, as long as all attributes match (position, normal, uv, whatever). For example, vertices along a 'hard edge' (not shared normals) are not shared between adjacent triangles. At maximum, numVertices = numTriangles*3, but there is as much sharing as possible.



#3 RulerOfNothing   Members   

1398
Like
0Likes
Like

Posted 02 January 2013 - 10:23 PM

You always have more vertices than triangles (assuming all your geometry is made up of triangles), but it is possible to reuse vertices between triangles (by having all triangles with a common vertex or by having consecutive triangles share 2 of their vertices) so there can be less than three vertices per triangle.

#4 Álvaro   Members   

20681
Like
1Likes
Like

Posted 03 January 2013 - 02:03 AM

You always have more vertices than triangles (assuming all your geometry is made up of triangles)

Even that's not true. An icosahedron has 12 vertices but 20 triangles.

#5 MJP   Moderators   

19027
Like
1Likes
Like

Posted 03 January 2013 - 02:27 AM

You always have more vertices than triangles (assuming all your geometry is made up of triangles)

 

Not only is that false, but it's actually opposite of the common case. Typically you have more triangles than vertices.



#6 313230   Members   

120
Like
0Likes
Like

Posted 03 January 2013 - 03:26 AM

Many thanks






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.