Object files merge

Moderators: Uros, OXO

Post Reply
User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Object files merge

Post by Bre901 » Fri Dec 14, 2018 9:53 pm

To answer a request from Michel DGT, I have written a small application ("quick and dirty") that allows to merge two object files from two overlapping scenes.
It is also possible to view the contents of an object file.
The documentation is (and will remain) minimal.

It can be downloaded there: https://drive.google.com/open?id=1PBGzc ... Go-znDiEEr
CN: MPT — CondorUTill webpage: https://condorutill.fr/

User avatar
Andy1248
Posts: 1423
Joined: Wed Nov 29, 2006 3:06 pm
Location: Biggleswade, Bedfordshire

Re: Object files merge

Post by Andy1248 » Sat Sep 07, 2019 5:22 pm

I have tried using this CoMeOb.exe tool.

I understand that documentation is minimal but I have some questions:

I have created a folder which contains the CoMeOb.exe, the sceneA.obj and .trn files. It also contains the sceneB .obj and .trn files.

Working with Command line;

- Print : CoMeOb.exe -p file
copies object data to a text file (silently overwritten if it exists)


I enter CoMeOb.exe -P sceneA.obj

The response is - reading sceneA.obj but that is all, no text file is created.

For:

- Merge : CoMeOb.exe file_A file_B [file_merge]

All objects in file_A will be appended to file_B using file_B coordinates origin
Coordinates origin will be read in corresponding .trn files, if available
Otherwise, you will have to type them in.

If file_merge is not specified, it will be called : file_B_file_A
The resulting file will be silently overwritten if it exists


In Command Line I enter - CoMeOb.exe sceneA.obj sceneB.obj and get the response:

List of all objects c3d files and UTM coordinates. 19527 objects read in file A. 323 objects read in file B

So something is working as it should be, but I do not get a merge file. Readme says if a merge file is not specified it will be called file_B_file_A.

Can anybody enlighten me on how to get a successful merge or what I should be entering on the command line.

Thanks.
Condor CN = E20

User avatar
Andy1248
Posts: 1423
Joined: Wed Nov 29, 2006 3:06 pm
Location: Biggleswade, Bedfordshire

Re: Object files merge

Post by Andy1248 » Sun Sep 08, 2019 12:15 pm

Think I have got it.
Had to enter EOA,NOA,EOB and NOB manually.

But do have an output file, will check it to see if it has worked.

So far so good.
You do not have the required permissions to view the files attached to this post.
Condor CN = E20

User avatar
Andy1248
Posts: 1423
Joined: Wed Nov 29, 2006 3:06 pm
Location: Biggleswade, Bedfordshire

Re: Object files merge

Post by Andy1248 » Sun Sep 08, 2019 12:22 pm

Yes it has worked. I have added all the objects from WestUK2 scenery to my reworked South East UK2 scenery.

Brilliant, this has save me hours of work. :D

Many, many thanks Bre901.
Condor CN = E20

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: Object files merge

Post by Bre901 » Sun Sep 08, 2019 10:31 pm

Sorry for this late answer, I have been AFK for a few days, just booted the PC

Glad you managed to find out by yourself
CN: MPT — CondorUTill webpage: https://condorutill.fr/

User avatar
Andy1248
Posts: 1423
Joined: Wed Nov 29, 2006 3:06 pm
Location: Biggleswade, Bedfordshire

Re: Object files merge

Post by Andy1248 » Sun Sep 08, 2019 11:17 pm

:D
Condor CN = E20

vnks
Posts: 41
Joined: Wed Mar 27, 2019 5:12 pm

Re: Object files merge

Post by vnks » Fri Nov 29, 2019 1:19 am

Hey Bre901, would you mind sharing the source code? I'm mostly interested in the .obj file format, so even just the parts that deal with it would be very helpful. Thanks!

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: Object files merge

Post by Bre901 » Fri Nov 29, 2019 9:49 am

PM sent
CN: MPT — CondorUTill webpage: https://condorutill.fr/

drh
Posts: 13
Joined: Sun Oct 29, 2017 6:36 pm

Re: Object files merge

Post by drh » Mon Apr 13, 2020 4:08 pm

Thanks for the reverse engineering, Bre901!

I rewrote the code in Python for my own use and put it on Github:
https://github.com/flxhu/condor2
Image

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: Object files merge

Post by Bre901 » Wed Feb 10, 2021 3:29 pm

CoMeOb is now able to merge object files (.obj) and airport files (.apt) of landscapes that are located in different UTM zones : the object orientation and runway directions are adjusted before being written to the destination file (note that Condor landscapes shouldn't span more than 3 UTM zones)

The new executable is available there : https://drive.google.com/file/d/1Hfohu1 ... sp=sharing

As (lat,lon) <-> (X,Y) conversions are involved, both .trn files are required.

It has been tested by dgtfer, but the more, the merrier 8)

I'll update the documentation in the coming days
CN: MPT — CondorUTill webpage: https://condorutill.fr/

Post Reply