Merge Wavefront files

Started by
7 comments, last by Krohm 10 years, 8 months ago

Hey! I got another question. Does anybody know a function / sourcode to merge X Wavefront (.obj) files into 1 file?

If anyboddy is willing to write me such an function i'am willing to pay ( but we have to talk about the price before)

Advertisement
It could be as simple as opening both files in a text editor and copying one into the other. But that doesn't sound like what you want.

The OBJ format does allow for multiple meshes within one file, but that is rarely used in most importers. How is your importer written and what features can it support?

What exactly are you trying to do? If you are trying for a custom file format, I'd personally recommend that you skip OBJ and go another route.

Do you want to merge the meshes into a single mesh, or produce an output file with multiple meshes?

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Hey thanks for your replay! Currently i'am using Recast and detour. I got overleping geometry files, that i want to merg into one big file...14214710520bdebe94909.png


I got overleping geometry files, that i want to merg into one big file...

it's still not clear whether your requirement is for a single mesh, or if a single file containing multiple meshes is sufficient?

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

The file itself don't contain any mesh. Its just got the row geometry from the world / zone. You load the Geometry witch is stored in wavefront formate into Recast and then you generate out of the geometry the mesh.

The words geometry and mesh are interchangeable in this case.

So you are basically loading "triangle soup" out of the wavefront file, and using recast to generate a nav mesh from it?

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

I suggest to just load them in Blender / other DCC tool and resolve overlappings manually.

Given criticality of data involved, I would never ever trust an automated method - blender can solve the intersections for you anyway.

Previously "Krohm"

This topic is closed to new replies.

Advertisement