Page 1 of 2

Life After mesh model file

Posted: Wed Nov 30, 2022 2:43 am
by Xr79
Hello forum, I have a model file from a mobile game called life after that uses the NeoX engine, I have managed to extract the NPK files into their Mesh and other files.
I know that they are un encrypted and working model files, but all the tools to open said mesh are out of date and produce corrupted or bad faces.
thanks to vlad_256 (to give credit where it is due) on the discord and their help I now know the mesh is intact and works.

I was wondering if someone could make a Noesis or Blender script that could import this file into it. I know from testing the skeleton and weights are also included in this file.
b_f_3025.mesh_Tue_Nov_29_15-19-26_2022.png
Just to show his work and that it is possible.
here is a link to the model, I wasn't able to attach it cause its over 1 mb.
https://drive.google.com/drive/folders/ ... share_link

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 3:09 am
by Xr79
Small update. looking in with model researcher, the skeleton is at the beginning of the file very clearly

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 4:52 am
by Xr79

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 8:40 am
by shakotay2
Hello, I found some inconsistency for the addresses of face index block and the uv block. They don't fit the displayed model.
(Probably belong to another sub mesh.)

For me it's
address of face indices: 131366 (0x20126)
and
uv address 171086 (0x29c4e)
.
model_b_f_3025-mesh.jpg
(Sorry for using a different app.)
btw, the 19860= 6620*3 result from hex2obj using face indices count

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 8:46 am
by Xr79
Hey Shakotay thank you for taking the time to reply., you are right I think, you can see the large UV map overlapping the other, i don't think its a submesh but another material face for the model.
I am noticing inconsistencies in the Face and UV data location as well.

the vertices are easy to find but I have really struggled to locate UV data, I can find face data easy now.
I can load them pretty reliably. but i have 135 models, I would really like to be able to import them directly to blender or even noesis.

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 8:57 am
by shakotay2
If the models have one sub mesh only you could write a Noesis script for yourself, I guess. (Check for a template in one of my previous posts.
Here for example, click up arrow:)
shakotay2 wrote: Thu Jul 01, 2021 9:34 pm
You simply need to search for 000001000100 in a .mesh, and 6 bytes after a fitting offset you'll find the vertex count and the face count as DWords (4 bytes each).

btw, for one mesh you don't need a "while loop" as in said example
Getting uv data needs some more lines, because it's separate (not in an FVF block together with vertex data).

well, and it's not big endian...
Maybe use another "template" as a base, from Tuliopilloto:
shakotay2 wrote: Wed Nov 23, 2022 1:10 pm

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 9:19 am
by Xr79
That is pretty awesome, I would like to be able to load its skeleton and weight paint as well, it's at the top of the mesh file, you can see the bone names. but i think the base script will only turn it to an OBJ ?

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 9:21 am
by shakotay2
Noesis can export to different formats. But said script doesn't care for bones and weights. That requires additional script lines.

(I'd suggest to solve it one step after the other... :D )

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 9:26 am
by Xr79
thank you, you said search for 000001000100 in the mesh file, is that binary? I'm alittle confused what that is looking for.

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 9:29 am
by shakotay2
yep, binary (or hexadecimal, as you wish), counts rectangled, sig 000001000100 preceeding:
.
LifeAfter_counts.png

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 3:51 pm
by Durik256
shakotay2 wrote: Wed Nov 30, 2022 9:29 am counts rectangled
the number of vertices 4518 is also indicated there :)
Xr79 wrote: Wed Nov 30, 2022 2:43 am thanks to vlad_256
:wink:

Image
Image
also skeleton using skelFinder
b_f_3025.mesh.png
*(Thanks to this model, I noticed that I published "skelFinder" with an error, when reading the parent due to checking for EOF, it always returned 0, fixed))

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 7:10 pm
by shakotay2
Durik256 wrote: Wed Nov 30, 2022 3:51 pm the number of vertices 4518 is also indicated there :)
Xr79 wrote: Wed Nov 30, 2022 2:43 am thanks to vlad_256
:wink:
Dunno, what he did there. Seems he confuses things or models.
There's model_b_f_3025.mesh that I cared for, "model_" being part of the name.
Vertex block is here: 2C24 to F524, that is 4288x12 (decimal).

And there's another model sample, b_f_3025.mesh, of bigger size which might be the cause for the confusion. :eek:

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 7:51 pm
by Durik256
shakotay2 wrote: Wed Nov 30, 2022 7:10 pm And there's another model sample, b_f_3025.mesh, of bigger size which might be the cause for the confusion. :eek:
Yes, that is right. I downloaded models from Discord, And you used the file from the this topic (with 'model_')

Re: Life After mesh model file

Posted: Wed Nov 30, 2022 11:48 pm
by Xr79
Oh dang it looks like you were able to get more than I did. I can upload more samples if they are needed, but I think all the models follow the same structure.
I uploaded more sample models if they can help.
I'm not sure what the submesh is about either, because no model i have loaded using hex2obj actually used that sub mesh. and it looked fine without it. it was usualy the neck seal area. but the rest of it was always one UV map.

Re: Life After mesh model file

Posted: Fri Dec 02, 2022 3:05 am
by Xr79
So Vlad did an awesome job on the script to import them to noesis
I have run into a new problem.
the NPK extractor i used is out of data and spits out 17 thousand un named files. I have a modified script i used from ages ago to rename HASH files
my question is

I know that they are .mesh files and I know they should have a name. but when extracted they are just HASHes.
is the name of this file stored somewhere in this Hex file?
an example of the mesh name would be
b_f_3165.mesh
but the extractor spits them out as various forms of
"F8CB5A495EFE23AE" <- file name

here is the script i modified to rename them
mesh_RENAMER.rar