/conver

Convert .obj files to vertices.

Primary LanguageCMIT LicenseMIT

conver

Convert .obj files to vertices.

Intro

Originally part of the custom-built game engine Onag Engine (not yet public), Conver allows you to convert .obj files to vertices.

To use it:

  1. Download the file. It's a binary, and is confirmed to work on Debian-based systems. It should work on Windows.
  2. Place the program and your obj file in the same folder.
  3. Open the terminal and do ./ConverMain filename.obj
  4. You will get a result like this:

Vertex: (0.437500, 0.164063, 0.765625)

Vertex: (-0.812500, -0.015625, -0.273438)

Vertex: (0.726563, 0.000000, -0.070313)

Vertex: (-0.726563, 0.000000, -0.070313)

Vertex: (0.718750, -0.023438, -0.171875)

Vertex: (-0.718750, -0.023438, -0.171875)

Vertex: (0.718750, 0.039063, -0.187500)

Vertex: (-0.718750, 0.039063, -0.187500)

Vertex: (0.796875, 0.203125, -0.210938)

Vertex: (-0.796875, 0.203125, -0.210938)

Vertex: (0.890625, 0.242188, -0.265625)

Vertex: (-0.890625, 0.242188, -0.265625)

Vertex: (0.890625, 0.234375, -0.320313)

Vertex: (-0.890625, 0.234375, -0.320313)

Vertex: (0.812500, -0.015625, -0.320313)

Vertex: (-0.812500, -0.015625, -0.320313)

Vertex: (0.851563, 0.015625, -0.320313)

Vertex: (-0.851563, 0.015625, -0.320313)

Vertex: (0.828125, 0.078125, -0.320313)

Vertex: (-0.828125, 0.078125, -0.320313)

Vertex: (0.765625, 0.093750, -0.320313)

Vertex: (-0.765625, 0.093750, -0.320313)

Vertex: (0.843750, 0.171875, -0.320313)

Vertex: (-0.843750, 0.171875, -0.320313)

Vertex: (1.039063, 0.328125, -0.414063)

Vertex: (-1.039063, 0.328125, -0.414063)

Vertex: (1.187500, 0.343750, -0.484375)

Vertex: (-1.187500, 0.343750, -0.484375)

Vertex: (1.257813, 0.242188, -0.492188)

Vertex: (-1.257813, 0.242188, -0.492188)

Vertex: (1.210938, 0.085938, -0.484375)

Vertex: (-1.210938, 0.085938, -0.484375)

Vertex: (1.046875, 0.000000, -0.421875)

Vertex: (-1.046875, 0.000000, -0.421875)

Vertex: (0.882813, -0.015625, -0.265625)

Vertex: (-0.882813, -0.015625, -0.265625)

Vertex: (0.953125, 0.289063, -0.343750)

Vertex: (-0.953125, 0.289063, -0.343750)

Vertex: (0.890625, 0.109375, -0.328125)

Vertex: (-0.890625, 0.109375, -0.328125)

Vertex: (0.937500, 0.062500, -0.335938)

Vertex: (-0.937500, 0.062500, -0.335938)

Vertex: (1.000000, 0.125000, -0.367188)

Vertex: (-1.000000, 0.125000, -0.367188)

Vertex: (0.960938, 0.171875, -0.351563)

Vertex: (-0.960938, 0.171875, -0.351563)

Vertex: (1.015625, 0.234375, -0.375000)

Vertex: (-1.015625, 0.234375, -0.375000)

Vertex: (1.054688, 0.187500, -0.382813)

Vertex: (-1.054688, 0.187500, -0.382813)

Vertex: (1.109375, 0.210938, -0.390625)

Vertex: (-1.109375, 0.210938, -0.390625)

Vertex: (1.085938, 0.273438, -0.390625)

Vertex: (-1.085938, 0.273438, -0.390625)

Vertex: (1.023438, 0.437500, -0.484375)

Vertex: (-1.023438, 0.437500, -0.484375)

Vertex: (1.250000, 0.468750, -0.546875)

Vertex: (-1.250000, 0.468750, -0.546875)

Vertex: (1.367188, 0.296875, -0.500000)

Vertex: (-1.367188, 0.296875, -0.500000)

Vertex: (1.312500, 0.054688, -0.531250)

Vertex: (-1.312500, 0.054688, -0.531250)

Vertex: (1.039063, -0.085938, -0.492188)

Vertex: (-1.039063, -0.085938, -0.492188)

Vertex: (0.789063, -0.125000, -0.328125)

Vertex: (-0.789063, -0.125000, -0.328125)

Vertex: (0.859375, 0.382813, -0.382813)

Vertex: (-0.859375, 0.382813, -0.382813)

Vertex: (-1.023438, 0.476563, -0.312500)

Vertex: (-1.234375, 0.507813, -0.421875)

Vertex: (-0.890625, 0.406250, -0.234375)

Vertex: (-0.820313, 0.328125, -0.203125)

Congrats! You can now use those vertices for something. Beware that using it for large obj files will cause it to slow down, obviously.

Contribution

I'm not sure why you would want to, but you can view the source code and the Code::Blocks IDE project files.

Have fun finding those vertices!