The Forum is up for sale: XeNTaX Forum looking for new owner
Help needed with Xbox 360 texture format.
-
GHFear
- advanced
- Posts: 50
- Joined: Tue Dec 04, 2018 9:29 am
- Has thanked: 7 times
- Been thanked: 9 times
Help needed with Xbox 360 texture format.
I would like to know how I would go about adding compatibility for a new and unknown "to me" texture format, to my Noesis script.
Attached is a sample of the format.
Edit: I think it's R5G6B5, but I am not 100%.
Thanks,
GHFear
Attached is a sample of the format.
Edit: I think it's R5G6B5, but I am not 100%.
Thanks,
GHFear
You do not have the required permissions to view the files attached to this post.
-
Beedy
- advanced
- Posts: 47
- Joined: Mon Dec 05, 2016 11:12 am
- Has thanked: 8 times
- Been thanked: 14 times
Re: Help needed with Xbox 360 texture format.
Yes, It's probably R5G6B5. I converted your file to xpr and make rdf file with unbundler and got the texture format. I think you did same
However I have no idea how to open it with noesis, but hopefully someone will help you.
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<RDF Version="XPR2">
<Texture
Name = "strName"
Source = "strName.tga"
Format = "D3DFMT_R5G6B5"
Width = "128"
Height = "128"
Levels = "8"
/>
</RDF>
You do not have the required permissions to view the files attached to this post.
-
Acewell
- VIP member

- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 883 times
Re: Help needed with Xbox 360 texture format.
this was the only way i could get a sensible image from the sample:
looks like asphalt pavement or something. 
Code: Select all
elif imgFmt == 0x44:
data = rapi.imageUntile360Raw(data, imgWidth, imgHeight, 2)
data = rapi.imageDecodeRaw(data, imgWidth, imgHeight, "a8p8")
texFmt = noesis.NOESISTEX_RGBA32-
GHFear
- advanced
- Posts: 50
- Joined: Tue Dec 04, 2018 9:29 am
- Has thanked: 7 times
- Been thanked: 9 times
Re: Help needed with Xbox 360 texture format.
Acewell wrote:this was the only way i could get a sensible image from the sample:looks like asphalt pavement or something.Code: Select all
elif imgFmt == 0x44: data = rapi.imageUntile360Raw(data, imgWidth, imgHeight, 2) data = rapi.imageDecodeRaw(data, imgWidth, imgHeight, "a8p8") texFmt = noesis.NOESISTEX_RGBA32
I love you dude. You are a true hero!
Worked perfectly!
-
Beedy
- advanced
- Posts: 47
- Joined: Mon Dec 05, 2016 11:12 am
- Has thanked: 8 times
- Been thanked: 14 times
Re: Help needed with Xbox 360 texture format.
It's a slightly difference between noesis and unbundler extracted images. Noesis extracted is grayscale and transparent instead of unbundler image is colored. I don't think how about other images but that is what I noticed.


-
Acewell
- VIP member

- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 883 times
Re: Help needed with Xbox 360 texture format.
okay i can get that same image as your unbundler with this:
not sure why i didn't try swapping endianness before 
Code: Select all
elif imgFmt == 0x44:
data = rapi.imageUntile360Raw(rapi.swapEndianArray(data, 2), imgWidth, imgHeight, 2)
data = rapi.imageDecodeRaw(data, imgWidth, imgHeight, "b5g6r5")
texFmt = noesis.NOESISTEX_RGBA32
-
GHFear
- advanced
- Posts: 50
- Joined: Tue Dec 04, 2018 9:29 am
- Has thanked: 7 times
- Been thanked: 9 times
Re: Help needed with Xbox 360 texture format.
Huh.. its funny. That texture and like 1 other were the only ones coming out grayscaled. Every other one game out right. But I Will update it.Acewell wrote:okay i can get that same image as your unbundler with this:
not sure why i didn't try swapping endianness beforeCode: Select all
elif imgFmt == 0x44: data = rapi.imageUntile360Raw(rapi.swapEndianArray(data, 2), imgWidth, imgHeight, 2) data = rapi.imageDecodeRaw(data, imgWidth, imgHeight, "b5g6r5") texFmt = noesis.NOESISTEX_RGBA32
Thanks so much.
-
GHFear
- advanced
- Posts: 50
- Joined: Tue Dec 04, 2018 9:29 am
- Has thanked: 7 times
- Been thanked: 9 times
Re: Help needed with Xbox 360 texture format.
Okay, so implementing that doesn't work for me. It gives me the error "An integer is required" when I try to use b5g6r5.Acewell wrote:okay i can get that same image as your unbundler with this:
not sure why i didn't try swapping endianness beforeCode: Select all
elif imgFmt == 0x44: data = rapi.imageUntile360Raw(rapi.swapEndianArray(data, 2), imgWidth, imgHeight, 2) data = rapi.imageDecodeRaw(data, imgWidth, imgHeight, "b5g6r5") texFmt = noesis.NOESISTEX_RGBA32
Any idea why that could be?
-
GHFear
- advanced
- Posts: 50
- Joined: Tue Dec 04, 2018 9:29 am
- Has thanked: 7 times
- Been thanked: 9 times
Re: Help needed with Xbox 360 texture format.
Oh wait... yeah it DOES work with that ONE texture and the other one that didn't work with the other a8p8 method...GHFear wrote:Okay, so implementing that doesn't work for me. It gives me the error "An integer is required" when I try to use b5g6r5.Acewell wrote:okay i can get that same image as your unbundler with this:
not sure why i didn't try swapping endianness beforeCode: Select all
elif imgFmt == 0x44: data = rapi.imageUntile360Raw(rapi.swapEndianArray(data, 2), imgWidth, imgHeight, 2) data = rapi.imageDecodeRaw(data, imgWidth, imgHeight, "b5g6r5") texFmt = noesis.NOESISTEX_RGBA32
Any idea why that could be?
So only those 2 seem to actually be b5g6r5, but both a8p8 and b5g6r5 seem to have the format ID 0x44... :/ So no idea how I would distinguish between the two.
Edit: So it seems I was a dumbass and forgot to remove an indentation.
It works perfectly fine now
