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

Export submeshes as separate entities (COLLADA) #108

Open lonelyhawk opened 2 years ago

lonelyhawk commented 2 years ago

Is your feature request related to a problem? Please describe. Looking at the Star Citizen ANVL Carrack. The submesh assigned to the "proxy" material covers the entire mesh thus requiring very careful cleanup afterwards

Describe the solution you'd like I suggest to export all submeshes as, well... Meshes. So the clean up could be as simple as deleting the whole subhierarchy.

Additional context With the "proxy" mesh: image Without the proxy mesh: image

vmxeo commented 2 years ago

Not entirely convinced this is entirely necessary as it's 1) Star Citizen specific 2) can be done in Blender pretty easily

I have python code for removing the proxy meshes if you're interested, but you might also find this project very useful: https://gitlab.com/scmodding/tools/scdv

Markemp commented 2 years ago

The Exclude Material Name argument can do this for you automatically. When doing the conversion, add -em "proxy" to the command and it won't import any submeshes with the proxy material.

The proxy material may be useful for applying effects to the model, but I'm not really sure how it is supposed to be used by SC. I always just made it a transparent material so it wouldn't render, but it does get in the way of looking at the geometry.

lonelyhawk commented 2 years ago

Thanks for that hint. But I'm actually pulling the models to 3d print them later in Tamiya sort of way, so having a multitude of smaller pieces really helps... Btw I did it for .obj file. Can revert it if needed.

On Sun, 26 Sep 2021, 11:51 Heffay, @.***> wrote:

The Exclude Material Name argument can do this for you automatically. When doing the conversion, add -em "proxy" to the command and it won't import any submeshes with the proxy material.

The proxy material may be useful for applying effects to the model, but I'm not really sure how it is supposed to be used by SC. I always just made it a transparent material so it wouldn't render, but it does get in the way of looking at the geometry.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Markemp/Cryengine-Converter/issues/108#issuecomment-927194506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2IFLGV6XNELYIU6TLG42TUDZG5RANCNFSM5EVLOVEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Markemp commented 2 years ago

Actually, having the Waveform exports be for printing and the Collada exports for 3D modelling seems like a decent compromise to this. If I made the submeshes full meshes, I'm not really sure what that would do for pairing the armature to the geometry.

Does the pull request you submitted include the Waveform changes you need? That combined with the -em flag may give you the exact geometry you need.

lonelyhawk commented 2 years ago

it does have the necessary changes for Waveform. I'm happy to discuss it either way.