Get your graphics formats figures out here! Got details for others? Post here!
-
Tosyk
- double-veteran

- Posts: 953
- Joined: Thu Oct 22, 2009 10:24 am
- Location: Russia, Siberia
- Has thanked: 227 times
- Been thanked: 120 times
-
Contact:
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

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.
-
evin
- ultra-veteran

- Posts: 336
- Joined: Sat Aug 05, 2006 2:04 pm
- Location: Hungary
- Has thanked: 1 time
- Been thanked: 146 times
-
Contact:
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.
-
Tosyk
- double-veteran

- Posts: 953
- Joined: Thu Oct 22, 2009 10:24 am
- Location: Russia, Siberia
- Has thanked: 227 times
- Been thanked: 120 times
-
Contact:
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.
-
evin
- ultra-veteran

- Posts: 336
- Joined: Sat Aug 05, 2006 2:04 pm
- Location: Hungary
- Has thanked: 1 time
- Been thanked: 146 times
-
Contact:
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
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.
-
Tosyk
- double-veteran

- Posts: 953
- Joined: Thu Oct 22, 2009 10:24 am
- Location: Russia, Siberia
- Has thanked: 227 times
- Been thanked: 120 times
-
Contact:
Post
by Tosyk » Sat Sep 18, 2010 8:28 pm
Thanks

I try your program on several files, works great.
-
RoadTrain
- advanced
- Posts: 54
- Joined: Wed Dec 12, 2007 5:57 pm
- Location: Pskov, Russia
- Has thanked: 29 times
- Been thanked: 4 times
Post
by RoadTrain » Sun Sep 19, 2010 3:53 am
Tosyk wrote:
Thanks

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.
-
evin
- ultra-veteran

- Posts: 336
- Joined: Sat Aug 05, 2006 2:04 pm
- Location: Hungary
- Has thanked: 1 time
- Been thanked: 146 times
-
Contact:
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
Post
by RoadTrain » Mon Sep 20, 2010 4:21 pm
The contents of this post was deleted because of possible forum rules violation.
-
evin
- ultra-veteran

- Posts: 336
- Joined: Sat Aug 05, 2006 2:04 pm
- Location: Hungary
- Has thanked: 1 time
- Been thanked: 146 times
-
Contact:
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
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.
-
chrrox
- Moderator
- Posts: 2569
- Joined: Sun May 18, 2008 3:01 pm
- Has thanked: 57 times
- Been thanked: 1323 times
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.
-
evin
- ultra-veteran

- Posts: 336
- Joined: Sat Aug 05, 2006 2:04 pm
- Location: Hungary
- Has thanked: 1 time
- Been thanked: 146 times
-
Contact:
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
Post
by RoadTrain » Tue Sep 21, 2010 7:59 pm
I'm confused.
Here is what I get with dds header provided by evin.
I doubt that it's what it should look like.