Maybe it's something to do with the header, or the format. VTFedit says that it's DXT1 One Bit Alpha, but there is no alpha. I don't know if that's anything to do with it. Guess can only find out by trying.
Perhaps I should set up a test environment on the server where new decals can be generated at will and linked into HH3?
First the format: You are right, it's not plain DXT1. I've checked and DevIL only uses DXT1_ONEBITALPHA for VTFs, it's hardwired in the code. Can you swith it to DXT3? Let's see if the problem remains then.
Second come the flags: VTF supports various image flags, none of which can be set through DevIL. I've checked and the old VTFs had three flags set: "Anisotropic", "No Mipmap" and "No Level of Detail". May be that there's a problem here.
Third the VTF version used: DevIL writes headers for version 7.2. The current version is 7.5, the old VTFs had 7.4.
Could you try switching to DXT3? With that we may rule out DXT1_ONEBITALPHA being the problem. If this doesn't help I'll have to look into writing the header myself.
I'm cautiously optimistic about giving this another try.
I wrote the header information myself this time; boy was that a pain to figure out. But the header now matches with that of a VTF created with VTFEdit almost exactly. Four bytes (in the header padding of all places) differ in value.
Anyways the results open fine in every VTF-enabled application I could get my hands on; that's as was. For additional testing I imported one converted VTF in TF2 and used it as spray. It showed fine when used on the server. If that doesn't show they are valid I don't bloody know what will.
Program usage and setup remains the same as before. I'll attach one zip file containing the source and a precompiled binary (vtfcreate.zip). Additionaly I'll upload another zip with the example image that I tested as a spray (example.zip).
Hope it works this time. I'm starting to run out of ideas
Attachments:
File comment: example converted image (+ original image) examples.zip [33.04 KiB]
Downloaded 66 times
File comment: source and binary vtfcreate.zip [6.75 KiB]
Downloaded 65 times
A Llamas Hat, you are star for keeping on with this. I've updated to the latest version that you have provided. I'm not able check that it's working as yet, but many many thanks anyway
I just checked on HH2 as well as HH3 aaaand <imagine a drumroll here please> ... it works
Seeing this work as intended provides a certain gratification
Rendering was pretty much as I remember it from the old boards. Maybe I'll do some tweaking over the weekend. But overall it's displaying nicely already. The rest is just fine tuning of reflectivity values and the like.
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum