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

Enable Converter to write existing Vertex Color data + include Physics Proxy mesh #31

Closed WoodyChuckHub closed 3 months ago

WoodyChuckHub commented 4 years ago

Some Cryengine assets depend heavily on painted Vertex Color data. e.g. vegetation assets that use detail bending based on RGB painted vertex color. Atm exported meshes do not contain any vertex color set in them and it would be very helpful if they would. https://docs.cryengine.com/download/attachments/24285894/final_blend.jpg?version=2&modificationDate=1473087581000&api=v2 Assets in question e.g. would be the GameSDK samples that come with Lumberyard. e.g. trees, palm trees coming from the old GameSDK, the original assets dating back to Crysis times even but then were converted for CE3.

Another addition that would be super helpful would be to include the physics proxy mesh. Atm programs like NinjaRipper can include the physics proxy if a Cryengine user has switched to "show Proxies" before ripping, but getting those proxies found and sorted in the mess that is NinjaRipper .rip files is more than cumbersome!

These 2 additions would make Converter a complete tool to use! Thank you so much for working on this tool in the first place! Cheers!

Markemp commented 4 years ago

I've seen vertex color data in the Cryengine files. I'll have to check to see if Collada supports vertex color. I'm pretty certain it does and should be able to get it added.

Markemp commented 4 years ago

Do you have an example file I can look at? That plant model you posted on Xentax would be perfect.

WoodyChuckHub commented 4 years ago

some examples, these are from Lumberyard Woodland asset pack and GameSDK palmtree.zip bushes.zip

Markemp commented 4 years ago

Can you test out the color data using this build? Blender doesn't seem to handle importing vertex colors in Collada very well, so I'm not sure if it's working properly or not.

https://github.com/Markemp/Cryengine-Converter/releases/tag/v1.0.6

WoodyChuckHub commented 4 years ago

Hey markemp

It seems that pre-release converter.exe is doing something with vertex color. some assets now have a vertex color set listed after import (others are not though), but that color is looking wrong/faulty and a lot of meshes are often exploded with some warning messages now, which they did not do before. Some meshes like the twisted tree still looked "correct" but a lot of others I tested with did not.

dae_vertexcolor_twistedtree

dae_vertexcolor_ground_cover_fern_a dae_vertexcolor_palmtree dae_vertexcolor_palmtree_c you can see how the palmtree trunk exploded and leaves look wrong as well. also no Vertex Color set in this one either as seen on the right here in Maya.

Markemp commented 4 years ago

image

Hmm... I think I got it.

Markemp commented 4 years ago

v1.0.6 release (latest official) now has vertex colors working. Will start on the Physics Proxy Mesh now.

Markemp commented 4 years ago

Also, do you have a mesh with the physics proxy data? Or is it also in the bush model?

WoodyChuckHub commented 4 years ago

Awesome will try this out soon. So Physics proxy data is normally inside of the .cgf itself. sometimes there are seperate LOD1,LOD2 render and proxy meshes for streaming reasons but proxy itself is always with the render mesh inside of the same .cgf

Markemp commented 3 months ago

This should be fixed. Checked it with the v1.6 release and it's good to go.