c47edit icon indicating copy to clipboard operation
c47edit copied to clipboard

Model missing Alpha when importing or exporting

Open ArchDome opened this issue 1 year ago • 2 comments

I'm trying to modify a fence mesh from Say Hello to my Little Friend, but after exporting the mesh, the model is missing it's alpha when I open the file in blender.

The unedited mesh inside C47 edit: image

The mesh once it's pulled into blender: image

I took the texture file into photoshop and created my own alpha texture. And was able to apply this to the model within blender: image

However when I try to import this updated model from blender inside C47 edit the alpha is missing. (The jagged edges are from moving the vertices inside blender)

image

ArchDome avatar Mar 09 '24 21:03 ArchDome

Currently the editor doesn't check if the material has alpha clipping during import and export, but that's something that could be easily implemented in the future.

In the meantime, if you want to turn alpha clipping on the material after importing it to the editor, there is a "debug" feature that should let you do that: in the Object Information, after importing your model, expand the "FTXO" header, you will a list of hexadecimal numbers like "0020 0000 WXYZ 0000 0000 0000". Click the "Edit" button, then type in the same numbers, except in the first number make the second digit a 2, like this "0220 0000 WXYZ 0000 0000 0000" (replace WXYZ with original number). This will set the flag that enables alpha clipping on the material. image

AdrienTD avatar Mar 11 '24 13:03 AdrienTD

This is a very late reply, but thanks! That did the trick! And thanks to your tool I was able to make a simple little mod

ArchDome avatar Jul 03 '24 19:07 ArchDome