Object files merge
Object files merge
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
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/
Re: Object files merge
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.
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
Re: Object files merge
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.
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
Re: Object files merge
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.
Many, many thanks Bre901.
Brilliant, this has save me hours of work.
Many, many thanks Bre901.
Condor CN = E20
Re: Object files merge
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
Glad you managed to find out by yourself
CN: MPT — CondorUTill webpage: https://condorutill.fr/
Re: Object files merge
Condor CN = E20
Re: Object files merge
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!
Re: Object files merge
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
I rewrote the code in Python for my own use and put it on Github:
https://github.com/flxhu/condor2
Re: Object files merge
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
I'll update the documentation in the coming days
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
I'll update the documentation in the coming days
CN: MPT — CondorUTill webpage: https://condorutill.fr/