XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Wed Oct 18, 2017 1:38 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: (Xbox) Crimson Skies High Road to Revenge plane models (.x)
PostPosted: Tue Oct 10, 2017 3:22 pm 
Offline
ultra-n00b

Joined: Wed Aug 05, 2015 2:25 pm
Posts: 4
Has thanked: 0 time
Have thanks: 0 time

I´m extracting Crimson skies plane models to unity (right now).
The models are in the game iso in an airplanes.zip file with each plane in a bin packaged file.
It can be extracted (textures & model files) with this quickbms script http://aluigi.org/bms/crimson_skies.bms

Textures are DXT5/DXT1 with some xbox swizzled images and some *~a.tga file that i don´t know the format.

I imported all the plane models with texture into Unity, they are .x files but they aren´t DIRECTX binary files:
Image


Geometry of the planes are in Vertexblocks of 32 bytes:
12 bytesfor vertex
4 bytes for packed normals
4* 4 bytes of UV (each mesh can have up to 4 textures so they have up to 4 uv definitions)

My problem is that i really don´t know how to unpack the uv values.
U: 2 bytes from 0 to 65536
V: 2 bytes from 0 to 65536

The usual way should be value/65536, but i get correct UV shapes with wrong dimensions (~1/4 size)
Image

Then i divided the value by 16384, and i get mostly correct uvs but in some cases they are not (0,16384,46152...):
Image
Image

i´ve even tried to mask the value: (u & 16383) / 16384f
Image

These are the Vertex Blocks of one of the propellers (the black squares with a red circle)
Code:
A4 2F 1B BF 54 4E 1B 3F 0C E3 85 BF 00 00 40 80 CF 3F DB FF 00 00 00 00 00 00 00 00 00 00 00 00
C8 7A 1A 3F 91 02 1C 3F 14 E3 85 BF 00 00 40 80 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
64 7A 1A BF 1B 39 1C BF 3A D9 85 BF 00 00 40 80 AA 3F 00 C0 00 00 00 00 00 00 00 00 00 00 00 00
9C 2F 1B 3F 91 85 1B BF 40 D9 85 BF 00 00 40 80 31 00 25 C0 00 00 00 00 00 00 00 00 00 00 00 00
64 7A 1A BF 1B 39 1C BF 3A D9 85 BF 00 00 C0 7F AA 3F 00 C0 00 00 00 00 00 00 00 00 00 00 00 00
9C 2F 1B 3F 91 85 1B BF 40 D9 85 BF 00 00 C0 7F 31 00 25 C0 00 00 00 00 00 00 00 00 00 00 00 00
A4 2F 1B BF 54 4E 1B 3F 0C E3 85 BF 00 00 C0 7F CF 3F DB FF 00 00 00 00 00 00 00 00 00 00 00 00
C8 7A 1A 3F 91 02 1C 3F 14 E3 85 BF 00 00 C0 7F 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


Position 1AFB7 of this file
https://www.dropbox.com/s/edsugfb9b7wak ... yro.x?dl=0

Image


Any help??? I'm really desperate about this, i don´t how many hours i´ve worked in this problem :(

Thanks

You can make the ads go away by registering





Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: soulbrother73 and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group