READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

3D Model Researcher - Help with faces

Post questions about game models here, or help out others!
Post Reply
EDXZ23
n00b
Posts: 19
Joined: Tue May 07, 2019 7:49 pm
Has thanked: 11 times

3D Model Researcher - Help with faces

Post by EDXZ23 » Mon Aug 05, 2019 11:59 pm

Hi guys, i'm having an issue extracting the faces of a model.

I've found the vertices but the faces will not extract properly, can anyone tell me what I'm doing wrong?

I'm sure I have the starting address for the vertices and faces right, but I'm really new to this so I could be wrong

i will attach the file as a reply so feel free to examine it.

Any help is greatly appreciated!! Thank you in advance!!!!
-EDXZ
help.png
You do not have the required permissions to view the files attached to this post.
Last edited by EDXZ23 on Tue Aug 06, 2019 12:46 am, edited 1 time in total.

EDXZ23
n00b
Posts: 19
Joined: Tue May 07, 2019 7:49 pm
Has thanked: 11 times

Re: 3D Model Researcher - Help with faces

Post by EDXZ23 » Tue Aug 06, 2019 12:08 am

6118.zip
the file was originally .dat extension. Don't forget to change the file extension back to .dat when downloaded

Creator of 3D model researcher said i need to somehow convert the data but i'm not sure what that means, how to do it or what to convert it to
You do not have the required permissions to view the files attached to this post.

User avatar
Acewell
VIP member
VIP member
Posts: 1261
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2382 times
Been thanked: 729 times

Re: 3D Model Researcher - Help with faces

Post by Acewell » Tue Aug 06, 2019 1:40 am

the starting offset for vertices looks like it should be 0x3c70
and the starting offset for face indices should be 0x26460
but i don't think you can read them in a single array.
the file structure looks a lot like the rax files from SWBF3. :D

EDXZ23
n00b
Posts: 19
Joined: Tue May 07, 2019 7:49 pm
Has thanked: 11 times

Re: 3D Model Researcher - Help with faces

Post by EDXZ23 » Tue Aug 06, 2019 1:51 am

Acewell wrote:
Tue Aug 06, 2019 1:40 am
the starting offset for vertices looks like it should be 0x3c70
and the starting offset for face indices should be 0x26460
but i don't think you can read them in a single array.
the file structure looks a lot like the rax files from SWBF3. :D
The file is from Haze! It was made by the same developers. Both games were in production around the same time! :)

But dude you're amazing! The offsets you gave me worked! :D
progress.png
When you say they cant be read in a single array, what does that mean? 3D MR has a Padding\Pad inter function, could it be related to that?
You do not have the required permissions to view the files attached to this post.

User avatar
Acewell
VIP member
VIP member
Posts: 1261
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2382 times
Been thanked: 729 times

Re: 3D Model Researcher - Help with faces

Post by Acewell » Tue Aug 06, 2019 6:22 am

EDXZ23 wrote:
Tue Aug 06, 2019 1:51 am
When you say they cant be read in a single array, what does that mean?
i mean the indices are stored together but i think they are split into material groups,
because when you try to render the whole array they look mangled.
there might be start and stop offsets stored in the file.

EDXZ23
n00b
Posts: 19
Joined: Tue May 07, 2019 7:49 pm
Has thanked: 11 times

Re: 3D Model Researcher - Help with faces

Post by EDXZ23 » Tue Aug 06, 2019 11:38 am

Acewell wrote:
Tue Aug 06, 2019 6:22 am
EDXZ23 wrote:
Tue Aug 06, 2019 1:51 am
When you say they cant be read in a single array, what does that mean?
i mean the indices are stored together but i think they are split into material groups,
because when you try to render the whole array they look mangled.
there might be start and stop offsets stored in the file.

Ohhhh right I understand you. How would I go bout finding them?

Is there a pattern for the face indices I need to look out for? Or if you have the time could you help me find them?

I really wanna learn all this so I could do this for myself and contribute to threads and help people like how you've helped me,
but there's still so much I need to learn.


PS. I genuinely appreciate how much you've helped me already, you have no idea how much it means. I've been working on this project for months

User avatar
Acewell
VIP member
VIP member
Posts: 1261
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2382 times
Been thanked: 729 times

Re: 3D Model Researcher - Help with faces

Post by Acewell » Sat Aug 10, 2019 9:40 am

eh i don't really look into model formats much anymore, no time, too busy with texture formats.
all of my current research on the rax format is here though if you care to have a read through:
viewtopic.php?f=16&t=13867&hilit=rax&start=60#p126467

EDXZ23
n00b
Posts: 19
Joined: Tue May 07, 2019 7:49 pm
Has thanked: 11 times

Re: 3D Model Researcher - Help with faces

Post by EDXZ23 » Sat Aug 10, 2019 10:47 pm

Acewell wrote:
Sat Aug 10, 2019 9:40 am
eh i don't really look into model formats much anymore, no time, too busy with texture formats.
all of my current research on the rax format is here though if you care to have a read through:
viewtopic.php?f=16&t=13867&hilit=rax&start=60#p126467
thanks man, you've been great with the help i really appreciate it. it seems these rax files are a lot more trouble than they are worth. I'll continue to research them and if i come up with anything new I'll be sure to let you know :D

Post Reply