Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

Just Cause 3 .rbm models

Post questions about game models here, or help out others!
Post Reply
User avatar
dropoff
veteran
Posts: 137
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 34 times
Been thanked: 23 times

Just Cause 3 .rbm models

Post by dropoff » Tue Aug 08, 2017 12:20 am

Hi,i want to extract models from Just Cause 3. I hope someone can help.

Here is documentation about this format:
http://justcause.wikia.com/wiki/Render_Block_Model

Here is models samples:
https://mega.nz/#!Igc21Cia!kdWzWoJ0k0Ei ... NmBeqtxP2I

I only found tools for Just Cause 2 but not for JC3.

Models in archive is a car with parts from screenshot below:
Image

User avatar
Acewell
VIP member
VIP member
Posts: 1274
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2415 times
Been thanked: 744 times

Re: Just Cause 3 .rbm models

Post by Acewell » Tue Aug 08, 2017 4:01 am

ladbil_body_lod1.rbm :D
ladbil_body_lod1_rbm.png
You do not have the required permissions to view the files attached to this post.

User avatar
dropoff
veteran
Posts: 137
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 34 times
Been thanked: 23 times

Re: Just Cause 3 .rbm models

Post by dropoff » Tue Aug 08, 2017 5:40 pm

AceWell wrote:ladbil_body_lod1.rbm :D
ladbil_body_lod1_rbm.png
Thank you,but how to find uv maps? Im extract wheel model,but uvs broken.

User avatar
Acewell
VIP member
VIP member
Posts: 1274
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2415 times
Been thanked: 744 times

Re: Just Cause 3 .rbm models

Post by Acewell » Wed Aug 09, 2017 12:18 am

ladbil_wheel_f_l_lod1.rbm :D
ladbil_wheel_f_l_lod1_rbm.png
You do not have the required permissions to view the files attached to this post.

User avatar
Acewell
VIP member
VIP member
Posts: 1274
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2415 times
Been thanked: 744 times

Re: Just Cause 3 .rbm models

Post by Acewell » Sat Aug 12, 2017 2:29 pm

here is a Noesis python script to open your *.rbm model samples :D
fmt_JustCause3_rbm.zip
supports mesh and UVs
You do not have the required permissions to view the files attached to this post.

User avatar
dropoff
veteran
Posts: 137
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 34 times
Been thanked: 23 times

Re: Just Cause 3 .rbm models

Post by dropoff » Wed Aug 16, 2017 8:50 am

AceWell wrote:here is a Noesis python script to open your *.rbm model samples :D
fmt_JustCause3_rbm.zip
supports mesh and UVs
Thank you very much! But here is a problem with other vehicle models,seems like they have more than 1 mesh in single file so script doesnt work with them all.

There is more samples. Script doesnt work with that:

https://mega.nz/#!w1VkjThY!JCc69z-WctxI ... 1tVV1k3Xts

User avatar
dropoff
veteran
Posts: 137
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 34 times
Been thanked: 23 times

Re: Just Cause 3 .rbm models

Post by dropoff » Fri Sep 22, 2017 9:01 pm

Can anyone help me please?

I cant open model in hex2obj what am i doing wrong?


That one for file "propaganda_smallvan_body_lod1.rbm"
Image

Here is examples of models and errors from AceWell script.

https://mega.nz/#!w1VkjThY!JCc69z-WctxI ... 1tVV1k3Xts

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2819
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 702 times
Been thanked: 1452 times

Re: Just Cause 3 .rbm models

Post by shakotay2 » Fri Sep 22, 2017 10:17 pm

dropoff wrote:I cant open model in hex2obj what am i doing wrong?
there's a different FVFsize and you're lost? :o

Plus you need vertex block mode (VB) here, not seq(uential).

Have a look at the obj file:
# 0x991: verts= 2585
v -0.870186 1.970598 0.784575
v 32639.496094 893225992192.000000 3065015957662111300000000000.000000
v -0.873055 1.955190 0.784573
v 32639.496094 897520959488.000000 3065015662514206200000000000.000000
v -0.880382 1.970598 0.784575

Plain to see that an FVFsize of 12 bytes is wrong here, as simple as that. 24 obviously seems to fit better
(where the UVB size is 32 bytes, you'll need some experience to see that, or use trial 'n error):
propaganda_smallvan_body_lod1-rbm.jpg
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
dropoff
veteran
Posts: 137
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 34 times
Been thanked: 23 times

Re: Just Cause 3 .rbm models

Post by dropoff » Sat Sep 23, 2017 10:45 am

Thanks a lot.
I need more experience in that :D
And last question,how to find that FBED value in FVF size graph?

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2819
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 702 times
Been thanked: 1452 times

Re: Just Cause 3 .rbm models

Post by shakotay2 » Sat Sep 23, 2017 11:33 am

dropoff wrote:And last question,how to find that FBED value in FVF size graph?
0xFBED is the start of the uv blocks.

calculating end of vertex data block:
0x991 + 2585x24 (dec.) = 0xFBE9
skipping 4 bytes
0xFBE9 + 4 = 0xFBED

4 bytes (little endian) at 0xFBE9 are DWORD uvs_count
19 0A 00 00 -> 0x00000A19 = 2585 (dec.), uvs count (=vertex count)
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
dropoff
veteran
Posts: 137
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 34 times
Been thanked: 23 times

Re: Just Cause 3 .rbm models

Post by dropoff » Tue Oct 24, 2017 6:53 pm

Hello again,sorry for maybe too many questions but i dont understand how to find start address of uv when model is sequential.
Model is ok but uv's not:
Image

Here is file: https://mega.nz/#!8gVnzKQD!nDrd_8vrtRQc ... 6YUqueaqi4

Same problem with 2 other meshes from that file.

User avatar
Acewell
VIP member
VIP member
Posts: 1274
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2415 times
Been thanked: 744 times

Re: Just Cause 3 .rbm models

Post by Acewell » Thu Oct 26, 2017 9:26 am

dropoff wrote:i dont understand how to find start address of uv when model is sequential.
start by searching for an 8 byte pattern, i just use "VB" mode for everything now, i wish it was default :D
cargotransport_body_lod1_rbm.png
You do not have the required permissions to view the files attached to this post.

Post Reply