Markemp / Cryengine-Converter

A c# program to convert Crytek files to Collada (XML) format
https://www.heffaypresents.com/GitHub/
GNU General Public License v2.0
209 stars 53 forks source link

"Merged" Object and no Hierarchy #61

Open Baconator650 opened 2 years ago

Baconator650 commented 2 years ago

image

Common error with some Star Citizen files. An objected "merged" is imported that contains the geometry, but has no parent.

Loading objects individual in Max is easily fixed, but using the Blender Importer Prefab function may cause missing objects.

vmxeo commented 2 years ago

I want to say when I dug into this it's that way in the source cgf file. For my needs I have a script that cleans this up, renames and re-parents it for my own importer.

Markemp commented 2 years ago

Is this another #ivo thing? I'm creating dummy Node Chunks for these now, so that they get instantiated in the Collada file.

I think a .skin file (#ivo) only has a single node, so if you find any that have multiple MeshChunks (and associated geometry datastream chunks), please let me know.

Baconator650 commented 2 years ago

It is an issue with .cgf files. I believe "\Objects\Spaceships\Ships\AEGS\Vanguard\Interior\modular_room\mod_room_beds_geometry.cgf" is an example.

There is also a .cga file that is in the same folder as well, may be also adding a no_conflict for the dae would help.

Did a little more testing, it appears that these weird merged files occur when there is cga cgf file with the name. The .cgf file is the one that is labelled "merged". The .cga turns out normal. Going to do some more testing in the buildingset where I see this more.

Markemp commented 2 years ago

I couldn't find a mod_room_beds_geometry.cgf in the 3.12 files. Is that from a newer build?

There are conflicts when there is both a .cga and .cgf file with the same base name. :( Usually what happens is the last .cga or .cgf file that is run is the one that gets the dae file. I'm not sure what the merged objects are though. I'm going to leave this issue open until I can figure out a good solution.

Baconator650 commented 2 years ago

It may be an older file. Turns out that particular file isn't used in the actual build.

Workaround so far is in the power shell command is to order ".cgf .cga" so that the .cga files are converted last and override the .cgf file variant.