guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.73k stars 219 forks source link

Vertex colors don't work properly on UnrealEngine 5 #314

Closed jerobarraco closed 6 months ago

jerobarraco commented 11 months ago

Hello, nice software. I have an issue where the vertex colors on unreal engine 5 are not directly usable. i have to modify them like color -.5 / .5 to get something that resembles the original color but yet it looks very bad. i tried tonemapping hdr, srgb and linear and nothing. it has a very weird scale.

pd: i know i can use the texture method, but i want to use vertex colors.

guillaumechereau commented 11 months ago

Does it work with the texture method? To me it seems that the issue is of linear/sRGB. Goxel exports the vertex color in sRGB but maybe it should be in linear indeed. [EDIT]: it should be in linear RGB now actually.

guillaumechereau commented 11 months ago

Could you send me a screenshot of the same exported mesh with texture and vertex color in Unreal Engine?

jerobarraco commented 11 months ago

like i said, textures works but is not useful to me. screens

this is how it looks at the moment, but i had to do a special material to do it and the colors look just bad. notice is unlit. also sorry is hard to position correctly image

this is the transformation i need to apply image

this is in goxel image

this is the palette im using https://lospec.com/palette-list/atari-8-bit-family-gtia

this are the gox and gltf files Palette.zip

guillaumechereau commented 11 months ago

Are you using the last release? Maybe you can try with the current nightly build version available here:

https://github.com/guillaumechereau/goxel/actions/runs/5609710977

jerobarraco commented 11 months ago

tried that one, crashes unreal.

guillaumechereau commented 6 months ago

I think one of the issue is that currently the texture generated by goxel uses a single pixel per voxel color, and it does not work well with unreal engine. I think I will try to use a larger area by pixel, see if it improves the situation.

guillaumechereau commented 6 months ago

OK I think that fixed it, at least with a little test model I used:

image

jerobarraco commented 6 months ago

hey sorry i forgot to update this. im using ue 5.3 now, i think there were some issues with 5.2 the new builds but on 5.3 works well. and the colors are exported correctly. ive been using buid #72 and today i used #88 and they seem to be working fine. https://youtube.com/live/Z7WWzGsPobU