E
E
egorggegor2019-11-21 17:06:30
C++ / C#
egorggegor, 2019-11-21 17:06:30

What about the .obj file?

I wrote my own 3d model parser, but did not take into account one thing, that all models are set differently, and the model that I tested was displayed normally, while those downloaded from the Internet were not displayed at all.
The question is, how can you set the connection between the vertices in a different way, if it reads only 3 connections
. For me, it reads only like this: f 338 339 340
In the file like this: f 343 342 344 337

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2019-11-22
@egorggegor

f defines not a triangle, but a surface in triangle strip
mode f v1 v2 v3 v4 ... defines a surface of triangles v1 v2 v3, v2 v3
v4 ... ObjViewer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question