M
M
MicroSDA2016-03-08 12:36:02
C++ / C#
MicroSDA, 2016-03-08 12:36:02

What and how to quickly parse .obj in c++ (libraries, methods)?

What and how to quickly parse .obj in c++? I saw a lot of examples, but everything depends on speed, for example, my parser loads a model of 24,000 polygons in about 3 minutes (0_0). I use regular expressions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2016-03-08
@MicroSDA

Don't use regular expressions.
Parse not from a file, but by loading the entire file into memory.
obj has a linear, deterministic format, you can even write a switch (large, long, ugly, but fast).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question