Join also our Discord channel! Click here.

Blur .texture

Get your graphics formats figures out here! Got details for others? Post here!
User avatar
Tosyk
double-veteran
double-veteran
Posts: 949
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 225 times
Been thanked: 120 times
Contact:

Re: Blur .texture

Post by Tosyk » Wed Sep 15, 2010 2:38 pm

evin wrote:There is you file, f01c.texture. If you open it to read in hex view (or with hex editor), left side you can see a counter. These are the offset values. At the offset 38(hex) begin the width and the height data.
Ok, thanks to you i found this part, finaly :mrgreen: How i can use this info to get right colors?
You do not have the required permissions to view the files attached to this post.
Thank you for all you do here
my blog | my forum

User avatar
evin
ultra-veteran
ultra-veteran
Posts: 336
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 1 time
Been thanked: 145 times
Contact:

Re: Blur .texture

Post by evin » Wed Sep 15, 2010 2:43 pm

The .texture header is 84 byte big (54h). If you delete exactly this part, no more or less, the color will be ok.

User avatar
Tosyk
double-veteran
double-veteran
Posts: 949
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 225 times
Been thanked: 120 times
Contact:

Re: Blur .texture

Post by Tosyk » Wed Sep 15, 2010 3:18 pm

evin wrote:The .texture header is 84 byte big (54h). If you delete exactly this part, no more or less, the color will be ok.
sorry :( but i'm not understand which part i must delete and which part i must replace with dds-header.
Thank you for all you do here
my blog | my forum

User avatar
evin
ultra-veteran
ultra-veteran
Posts: 336
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 1 time
Been thanked: 145 times
Contact:

Re: Blur .texture

Post by evin » Wed Sep 15, 2010 6:14 pm

If you deleted the first 84 byte from the beginning of the .texture, just paste the first 128 byte from the dds to the beginning of the .texture.

RoadTrain
advanced
Posts: 54
Joined: Wed Dec 12, 2007 5:57 pm
Location: Pskov, Russia
Has thanked: 29 times
Been thanked: 4 times

Re: Blur .texture

Post by RoadTrain » Sat Sep 18, 2010 2:30 am

I've got the same problems with colors.
I created a new DXT5 DDS using Photoshop DDS plugin and moved its header to the .texture file.
But I hadn't gotten the right colors.
Could anyone give me the right header and explain which bytes are responsible for colors?
I've almost done the converter and it's the only problem I haven't solved.

RoadTrain
advanced
Posts: 54
Joined: Wed Dec 12, 2007 5:57 pm
Location: Pskov, Russia
Has thanked: 29 times
Been thanked: 4 times

Re: Blur .texture

Post by RoadTrain » Sat Sep 18, 2010 7:51 pm

Here is my test batch converter.
It'll be in test status until I solve color problems with DXT5.
DXT1 converting is fine (I think so :keke: )
Blur_Texture_Converter_v1.0.zip (with sources in Delphi)

User avatar
Tosyk
double-veteran
double-veteran
Posts: 949
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 225 times
Been thanked: 120 times
Contact:

Re: Blur .texture

Post by Tosyk » Sat Sep 18, 2010 8:28 pm

RoadTrain wrote:Here is my test batch converter.
It'll be in test status until I solve color problems with DXT5.
DXT1 converting is fine (I think so :keke: )
Blur_Texture_Converter_v1.0.zip (with sources in Delphi)
Thanks :mrgreen: I try your program on several files, works great.
Thank you for all you do here
my blog | my forum

RoadTrain
advanced
Posts: 54
Joined: Wed Dec 12, 2007 5:57 pm
Location: Pskov, Russia
Has thanked: 29 times
Been thanked: 4 times

Re: Blur .texture

Post by RoadTrain » Sun Sep 19, 2010 3:53 am

Tosyk wrote:
RoadTrain wrote:Here is my test batch converter.
It'll be in test status until I solve color problems with DXT5.
DXT1 converting is fine (I think so :keke: )
Blur_Texture_Converter_v1.0.zip (with sources in Delphi)
Thanks :mrgreen: I try your program on several files, works great.
Ok. But the color problem with sky textures (DXT5) remained. I hope anyone will help me with it and I'll update this tool.

User avatar
evin
ultra-veteran
ultra-veteran
Posts: 336
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 1 time
Been thanked: 145 times
Contact:

Re: Blur .texture

Post by evin » Mon Sep 20, 2010 9:29 am

Upload an unhandled dxt5 file, because your program works fine with Tosyk's f01c.texture file, which is a dxt5 file.

RoadTrain
advanced
Posts: 54
Joined: Wed Dec 12, 2007 5:57 pm
Location: Pskov, Russia
Has thanked: 29 times
Been thanked: 4 times

Re: Blur .texture

Post by RoadTrain » Mon Sep 20, 2010 4:21 pm

The contents of this post was deleted because of possible forum rules violation.

User avatar
evin
ultra-veteran
ultra-veteran
Posts: 336
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 1 time
Been thanked: 145 times
Contact:

Re: Blur .texture

Post by evin » Mon Sep 20, 2010 7:35 pm

Don't as what I did. :) I just pasted one of my dds header sample, and it's worked.
You do not have the required permissions to view the files attached to this post.

RoadTrain
advanced
Posts: 54
Joined: Wed Dec 12, 2007 5:57 pm
Location: Pskov, Russia
Has thanked: 29 times
Been thanked: 4 times

Re: Blur .texture

Post by RoadTrain » Mon Sep 20, 2010 9:20 pm

evin wrote:Don't as what I did. :) I just pasted one of my dds header sample, and it's worked.
When using this header I get the same colors as in the second post.
But I need to get colors as in the fourth post.

User avatar
chrrox
Moderator
Posts: 2565
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1311 times

Re: Blur .texture

Post by chrrox » Mon Sep 20, 2010 11:31 pm

use a different program to view the dds files i looked at the texture you posted and it looks fine.

User avatar
evin
ultra-veteran
ultra-veteran
Posts: 336
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 1 time
Been thanked: 145 times
Contact:

Re: Blur .texture

Post by evin » Tue Sep 21, 2010 7:53 am

RoadTrain wrote:When using this header I get the same colors as in the second post.
But I need to get colors as in the fourth post.
Your dds file is wrong. But with my header the new dds is fine in Photoshop and Xnview.
Try to generate a new header with these data: DXT5, Mipmap 1

RoadTrain
advanced
Posts: 54
Joined: Wed Dec 12, 2007 5:57 pm
Location: Pskov, Russia
Has thanked: 29 times
Been thanked: 4 times

Re: Blur .texture

Post by RoadTrain » Tue Sep 21, 2010 7:59 pm

I'm confused.
Here is what I get with dds header provided by evin.
Image

I doubt that it's what it should look like.

Post Reply