Simple wireframe format?

I am looking for a simple file format for use in wireframe models. I know VRML, u3D, etc., but they seem heavy for my needs. My criteria:

  • Must have a clear specification. Either open, or well-established / documented.
  • I need (only) simple models - vertices and edges. I do not want to handle persons or objects. If the format supports more, it's fine if I can ignore them.
  • End-user tools are optional, but that would be great. If not, it should be human readable (and editable for simple models).
  • It would be nice (but not necessary) to be able to comment, or at least node labels.
  • It doesn't matter which language I use, but the likely parameters are Java / C ++ and OpenGL

Or am I just better writing vertex / edge lists to a text file and doing with it?

+5
source share
5 answers

I do not know of any formats that are actively focused on the appearance of the frame. (Edge / vertex only) You almost always have to deal with faces at least. The good part is that if you have no particular need for anything other than rendering a wireframe edge, you can do it with almost any API from the list of faces.

, OBJ , . , , . Microsoft X , Quake. , , , , , , , , .

, , COLLADA. , , , /, :)

+3

Wavefront OBJ - 3D-, 3D- (, , 3dsmax, lightwave), .

:

http://www.fileformat.info/format/wavefrontobj/

. Wavefront OBJ , .

2x2. v , f ( ):

v -0.500000 -0.000000 0.500000
v 0.000000 -0.000000 0.500000
v 0.500000 -0.000000 0.500000
v -0.500000 0.000000 0.000000
v 0.000000 0.000000 0.000000
v 0.500000 0.000000 0.000000
v -0.500000 0.000000 -0.500000
v 0.000000 0.000000 -0.500000
v 0.500000 0.000000 -0.500000
v -0.500000 -0.000000 0.500000
v 0.000000 -0.000000 0.500000
v 0.500000 -0.000000 0.500000
v -0.500000 0.000000 0.000000
v 0.000000 0.000000 0.000000
v 0.500000 0.000000 0.000000
v -0.500000 0.000000 -0.500000
v 0.000000 0.000000 -0.500000
v 0.500000 0.000000 -0.500000
f 1/1 2/2 5/5 4/4
f 2/2 3/3 6/6 5/5
f 4/4 5/5 8/8 7/7
f 5/5 6/6 9/9 8/8
f 10/10 11/11 14/14 13/13
f 11/11 12/12 15/15 14/14
f 13/13 14/14 17/17 16/16
f 14/14 15/15 18/18 17/17
+7

. , !

+1

POV-Ray RAW - , . -, . - .

+1

OBJ , , , , . . , .

GTO . , , :

Gto

VFX , , OBJ ( OBJ- GTO).

Collada Bloat.

0

All Articles