Tekken Posted November 25, 2020 Share Posted November 25, 2020 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. Link to comment
Administrators Tut Posted November 25, 2020 Administrators Share Posted November 25, 2020 Are you able to show an example? Link to comment
Tekken Posted November 26, 2020 Author Share Posted November 26, 2020 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. Link to comment
Administrators Tut Posted November 26, 2020 Administrators Share Posted November 26, 2020 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. Link to comment
Tekken Posted November 26, 2020 Author Share Posted November 26, 2020 There they are: https://mega.nz/file/0w432IYT#FrZQH-H8IKsQ-Uhm2udmjZEs39n70Si91IrgTxXP-ho Those are Helmets models so I need to be able to change alpha client side when aiming sniper alse we see the models. Thank you. Link to comment
Administrators Tut Posted November 26, 2020 Administrators Share Posted November 26, 2020 There are no clues in either models that would explain your issue. Please try this test sample: I've expired the link Link to comment
Tekken Posted November 26, 2020 Author Share Posted November 26, 2020 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. Link to comment
Administrators Tut Posted November 26, 2020 Administrators Share Posted November 26, 2020 (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 November 26, 2020 by Tut Link to comment
Tekken Posted November 26, 2020 Author Share Posted November 26, 2020 hmm tested them but I cant see the texture only white. Link to comment
Administrators Tut Posted November 26, 2020 Administrators Share Posted November 26, 2020 Yes, revert back to the old version of notworking. The 2 TXD's are for the DFF notworking. Link to comment
Tekken Posted November 26, 2020 Author Share Posted November 26, 2020 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? Link to comment
Administrators Tut Posted November 26, 2020 Administrators Share Posted November 26, 2020 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. 1 Link to comment
Moderators IIYAMA Posted November 26, 2020 Moderators Share Posted November 26, 2020 @Tekken Not sure if you already have discovered it, but there is the DxTex tool that can be used to build texture files and compress them with the format you need. https://wiki.multitheftauto.com/wiki/DxCreateTexture Download link Link to comment
Tekken Posted November 26, 2020 Author Share Posted November 26, 2020 Magic TXD work great, but i will give a try 1 Link to comment
Tekken Posted November 26, 2020 Author Share Posted November 26, 2020 @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? Link to comment
Administrators Tut Posted November 27, 2020 Administrators Share Posted November 27, 2020 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%. Link to comment
Tekken Posted November 27, 2020 Author Share Posted November 27, 2020 May this explain why after it worked ? Also how can I do it ? Link to comment
Administrators Tut Posted November 27, 2020 Administrators Share Posted November 27, 2020 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! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now