Jump to content

Some replaced models don't change alpha


Tekken

Recommended Posts

Posted

Hi I have some models found online that don't change alpha when setElementAlpha(element, 0 or whatever number you want)

Has anyone encountered this? if yes how can I fix this? (I have no experience in Blender nor 3DMax) :)

 

Thank you for your time.

Posted

Do you mean? You want the model? Or an example in game? Cause the scripting part works tried w/o the replacement and worked also tried another model and worked.

  • Moderators
Posted

Sure, I can have a look at the faulty model and compare it to the functioning model if you are able to send them. Please include .TXD.

  • Moderators
Posted

There are no clues in either models that would explain your issue. Please try this test sample:
I've expired the link

Posted

Works, also I kinda like the model you 'created' in mixing them :) May I know what you done? As I also have a Kevlar with the same issue. Thank you.

  • Moderators
Posted (edited)

I just gave it the same texture as the functioning model had. I suspect it's the texture compression type being DXT1 that was the culprit.

If that's the case, please try your old texture in 888 BGRA compression and DXT3 compression. You can change between these compressions yourself using Magic TXD.
https://cdn.discordapp.com/attachments/308955445568077824/781421292648923136/888bgra.txd
https://cdn.discordapp.com/attachments/308955445568077824/781421285674188840/dxt3.txd
https://www.gtagarage.com/mods/show.php?id=27862

Edited by Tut
  • Moderators
Posted

Yes, revert back to the old version of notworking. The 2 TXD's are for the DFF notworking.

Posted

Ok now it work, changed the texture name to 'bikerhelmet' and work good, thank you, so all you've done was changing the compression type?

  • Moderators
Posted

Yes - had to use DXT3/888BGRA instead of DXT1.

For the record DXT1 compression does not allow transcluency, only opaque and transparent pixels, whereas the 2 former compressions do allow transcluent pixels. Could be why, but I have zero coding knowledge.

  • Thanks 1
Posted

@Tut Hi I just rechecked and doesn't actually work when I try changing compressions type with other texture, but I have found the notworking.dff you gave me is slightly smaller than what I give you, may I know if you made any changes?

  • Moderators
Posted

I do not recall, it's possible I didn't export vertex normals, as world objects doesn't use those and they usually bump up the DFF size by 20-40%.

  • Moderators
Posted

I have no idea how the function works, so it's hard to tell.

If you check the guides in my signature, it should help get you started with modeling applications. For any questions on this topic I suggest you ask in the Modeling forum section!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...