READ THE RULES: Click here

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

DFF textures/images

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Sorans
n00b
Posts: 15
Joined: Thu Mar 25, 2010 8:53 pm
Has thanked: 11 times
Been thanked: 3 times

DFF textures/images

Post by Sorans » Sun Jan 14, 2018 11:09 pm

Hello o/

I've come to request some help in converting textures and images to a usable format (PNG for example).

Any help in figuring out how to properly read such files is appreciated.

Thanks in advance!
Last edited by Sorans on Sun Nov 04, 2018 7:34 pm, edited 10 times in total.

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

Re: Dissidia Opera Omnia G1T textures/images

Post by Acewell » Mon Jan 15, 2018 3:54 am

Sorans wrote:.... I've tried using AceWell's Texture Finder v2.1 ....
i wish, but no it was made by Iceberg, though i probably use it more than he does. :D
stl_chara_0069.g1t is 512x512 ABGR4444,
not sure of WorldMap.g1t format, the header says it it is 2048x2048 though. :]
i guess being from a mobile game it could be a mobile compressed format,
you could run it through PVRTexTool to check.
stl_chara_0069.zip
You do not have the required permissions to view the files attached to this post.

Sorans
n00b
Posts: 15
Joined: Thu Mar 25, 2010 8:53 pm
Has thanked: 11 times
Been thanked: 3 times

Re: Dissidia Opera Omnia G1T textures/images

Post by Sorans » Mon Jan 15, 2018 2:46 pm

Thanks for the swift answer! Corrected the slight mistake.

The tool you mentioned has been getting me good results. Thanks :)
Would you care to teach me how to figure out the size of the images from the header? I've been doing nothing but trial and error to find it, but I'm now wondering how it can be figured out from the header directly?

Thanks to your suggestion and after reading about Android supported format, I found out that the World Map uses ETC1 compression.

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

Re: Dissidia Opera Omnia G1T textures/images

Post by Acewell » Mon Jan 15, 2018 8:43 pm

Sorans wrote:Would you care to teach me how to figure out the size of the images from the header? I've been doing nothing but trial and error to find it, but I'm now wondering how it can be figured out from the header directly?
the byte at 0x26 stores the width and height in the high and low bit, each of these are multiplied by power of 2 by that many.
for example if the byte is 0x99
the width = power of 2 multiplied 9 times
2x2x2x2x2x2x2x2x2 = 512
the height = power of 2 multiplied 9 times
2x2x2x2x2x2x2x2x2 = 512

the width and height is 512x512 :D

Sorans
n00b
Posts: 15
Joined: Thu Mar 25, 2010 8:53 pm
Has thanked: 11 times
Been thanked: 3 times

Re: Dissidia Opera Omnia G1T textures/images

Post by Sorans » Tue Jan 16, 2018 1:13 pm

That has been very useful, thanks :D

Could I bother you with another question? How would you go about splitting a G1T file that contains multiple assets? It's not compressed and uses RGBA 4444.
I've looked at the raw data and it clearly has many different textures inside. Opening the whole file in PVRTexTool have been kinda okay but the limitations of its raw data wrapping are obvious when I open big files.

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

Re: Dissidia Opera Omnia G1T textures/images

Post by Acewell » Wed Jan 17, 2018 12:54 am

you have to post some samples but you could handle it a couple of ways,
split to individual files and read them or read them from the container in sequence.

Sorans
n00b
Posts: 15
Joined: Thu Mar 25, 2010 8:53 pm
Has thanked: 11 times
Been thanked: 3 times

Re: Dissidia Opera Omnia G1T textures/images

Post by Sorans » Wed Jan 17, 2018 3:26 pm

Hello AceWell,

Would it be simple enough to split them by looking at headers and figuring out their size?
Last edited by Sorans on Thu Jan 18, 2018 5:57 pm, edited 1 time in total.

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

Re: Dissidia Opera Omnia G1T textures/images

Post by Acewell » Thu Jan 18, 2018 3:23 am

okay since your sample only contained 2 easy formats i just made a Noesis python script :D
*script updated Jan 17, 2019*
tex_DissidiaFinalFantasyOperaOmnia_g1t.zip
supports rgba4444, rgba8888, rgb565, a8 and etc1
and because i added ETC support you will also need these files:

Code: Select all

https://www.mediafire.com/file/p2c8d3fmjnb6kvs/PVRTEXTool4Noesis.zip/file
extract them and place the bat and exe file in your Noesis\scenes folder.


and here is bms script to just split the files if you encounter a container with unsupported format :D

Code: Select all

# script for QuickBMS http://quickbms.aluigi.org

idstring "GT1G0600"
get TOTAL_SZ long
get TABLE_OFFSET long
get FILES long
goto TABLE_OFFSET
savepos BASE_OFFSET
get NAME basename
for i = 1 to FILES
	string NAME p "%s\%d.g1t" NAME i
	get OFFSET long
	savepos TMP
	math OFFSET + BASE_OFFSET
	if i == FILES
		xmath SIZE "TOTAL_SZ - OFFSET"
	else
		get NEXT_OFFSET long
		math NEXT_OFFSET + BASE_OFFSET
		xmath SIZE "NEXT_OFFSET - OFFSET"
	endif
	log NAME OFFSET SIZE
	goto TMP
next i
this script will leave the original 8 byte header in each extracted file.
the format is the byte at 0x1
the width and height are stored in the high/low bits of the next byte at 0x2
then skip 5 bytes to go to start of image data :)
You do not have the required permissions to view the files attached to this post.
Last edited by Acewell on Thu Jan 17, 2019 6:57 am, edited 6 times in total.

Sorans
n00b
Posts: 15
Joined: Thu Mar 25, 2010 8:53 pm
Has thanked: 11 times
Been thanked: 3 times

Re: Dissidia Opera Omnia G1T textures/images

Post by Sorans » Thu Jan 18, 2018 12:04 pm

You've been extremely helpful, thank you AceWell :)

riccochet
beginner
Posts: 34
Joined: Mon Aug 11, 2014 2:55 pm
Has thanked: 11 times
Been thanked: 4 times

Re: DFF textures/images

Post by riccochet » Mon Feb 18, 2019 1:27 pm

Any chance for an update to support the alpha masks?

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

Re: DFF textures/images

Post by Acewell » Mon Feb 18, 2019 11:39 pm

alpha masks for what? upload some samples please. :]

riccochet
beginner
Posts: 34
Joined: Mon Aug 11, 2014 2:55 pm
Has thanked: 11 times
Been thanked: 4 times

Re: DFF textures/images

Post by riccochet » Mon Feb 18, 2019 11:43 pm

Ill upload some later. But basically when you export the textures the diffuse comes out fine, but has no alpha channel, which i assume is the extra texture that gets exported with the diffuse. Like when you open the g1t in noesis, it scrolls through textures that then get exported separately.
There has to be some alpha map somewhere since in the game you can see some characters have the alpha maps applied for hair, fur and some accessories

Samples of g1t files https://mega.nz/#!YaYBCarA!u9EdT3Rf6LlN ... tOB3QKSeM0

Darkhowlings
advanced
Posts: 52
Joined: Mon Sep 01, 2014 8:33 am
Has thanked: 12 times
Been thanked: 2 times

Re: DFF textures/images

Post by Darkhowlings » Fri Jul 26, 2019 6:19 pm

I know this falls on Necro-Post, but, its the right post to ask about:

Have any figure out the Alpha of the textures so far? Because, actually many have it (specially .dz ones)

Post Reply