Important information: this site is currently scheduled to go offline indefinitely by end of the year.

[X360] Star Wars Battlefront III pre-alpha (*.x2t)

Get your graphics formats figures out here! Got details for others? Post here!
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

[X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Acewell »

This thread is about converting x2t texture files of various size from the cancelled Free Radical game where they have no header and only some have a footer with info about the texture.

Image

here is the Noesis python plugin for the x2t textures i originally released on page 3 of this thread
fmt_SWBF3_x2t.zip
Thanks to chrrox for the base code from fmt_star_wars_kinect_tga.py.
The script goes in the Noesis\plugins\python folder
it is titled for SWBF3 but is mostly universal for swizzled 360 textures.

edit
After a bit of testing i have determined there was no noticable consequence to
removing the byte read length setting from the script, at first i was concerned
the footer bytes would shift the image data but i don't see any ill effects.
Now you only have to open the script and set the format type, width and height. :D



........................................................................................
Wobble created a compiled dll for this format too here
viewtopic.php?f=18&t=13868&start=60#p166977

Read the thread from then forward for details on usage
You do not have the required permissions to view the files attached to this post.
Last edited by Acewell on Sat Sep 19, 2020 4:33 am, edited 8 times in total.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:52 am, edited 2 times in total.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Acewell »

The mysterious texture format here is the main thing holding us back and i'm curious what results could come from running these x2t samples through a couple of the unreleased tools in the thread here
viewtopic.php?f=18&t=12224

mainly EcheloCross's Game Format Scanner or michalss's Texture Convertor (PC,X360)
viewtopic.php?p=100537#p100537
viewtopic.php?p=103260#p103260

:scaredy:
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:52 am, edited 4 times in total.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:52 am, edited 1 time in total.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:52 am, edited 1 time in total.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:52 am, edited 1 time in total.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:52 am, edited 1 time in total.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Acewell »

I sent michalss a message to see if he could get any decent results from the x2t samples with his Texture Convertor (PC,X360) but Noesis looks like it should be capable of untiling these textures too according to some things in __NPReadMe.txt

{"imageUntile360Raw", Noesis_ImageUntile360Raw, METH_VARARGS, "returns untiled raw pixel data. (Oiii)"}, //args=source image array, width, height, bytes per pixel
{"imageUntile360DXT", Noesis_ImageUntile360DXT, METH_VARARGS, "returns untiled dxt pixel data. (Oiii)"}, //args=source image array, width, height, block size (e.g. 8 for dxt1, 16 for dxt5)

I have no clue how to set up a python script to read raw image data and have it displayed untiled in the program though. :(
i'll look for this unbundler and see if i can get anything out of it.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:53 am, edited 1 time in total.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:53 am, edited 1 time in total.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:53 am, edited 1 time in total.
JakeGreen
mega-veteran
mega-veteran
Posts: 164
Joined: Sun Aug 22, 2010 10:14 pm
Has thanked: 40 times
Been thanked: 11 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by JakeGreen »

Wobble wrote:I don't know Python well, but I know C. It looks like you can create C plugins too with Noesis.
So, I create a simple one from the PCX image source.

Functions:

Code: Select all

	//untiles raw pixel data
	void				(*Noesis_UntileImageRAW)(BYTE *dst, BYTE *src, int dstSize, int imgW, int imgH, int bytesPerPix);
	//untiles dxt-encoded pixel data
	void				(*Noesis_UntileImageDXT)(BYTE *dst, BYTE *src, int dstSize, int imgW, int imgH, int blockSize);
I think calling RAW on scroller_right.x2t actually works. That is a 32-bit uncompressed image, swizzled.
neosis.PNG
But, it fails for others. They might be DXT. I haven't had enough time to test more. Lots of files have zero headers.
Might have to guess width,height based on file size of other files with good headers.
Um i would most likely guess most if not all characters would be like 1024x1024,weapons around 512x512 (maybe some 1024x1024 for first person view models) and vehicles around those 2 some could be higher, but with it being a quick and dirty pc to xbox 360 port some of them could be higher just not scaled right for the xbox 360 yet.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:53 am, edited 2 times in total.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: [X360] Star Wars Battlefront III pre-alpha (*.x2t)

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 10:53 am, edited 3 times in total.
Post Reply