Arth Posted August 16, 2017 Share Posted August 16, 2017 Hello! I've been recently making some final touches to my personal skin (which I'd gladly share here), and I noticed that some skins use animated/shader icons(portraits). It always seemed a little too gimmicky and flashy for my liking, but I decided to try and see how it turns out. I created an icon and saved it as .tga (which seems to be the only file type with alpha channel that JKA handles.) and wrote a little shader for it. After countless attempts at figuring out the right BlendFunc I went to game and noticed that the portrait looks like I want it, but is scaled down beyond recognition. I see that on base, where portraits are larger the scaling down is noticeable, but not terrible. On JA+ (actually JA++, since I use OpenJK) the portraits are much smaller and it looks... It looks s#!t. I know that the image HAS to be scaled down to fit the portrait "window" but the problem seems to be interpolation. My point is that .jpg of the same size looks MUCH better, but it doesn't have transparency channel. Is there a way to prevent the image from losing quality so badly? PS. GL_ONE GL_ONE_MINUS_SRC_ALPHA for anyone wanting to put a transparent image over something. PSS. Maybe I could somehow use .jpg for the image and make some kind of mask to erase it in areas that are supposed to be transparent, anyone? Edit: Tested with PNG, but same thing happens. Regards, Arth. ooeJack likes this Link to comment
ent Posted August 18, 2017 Share Posted August 18, 2017 Maybe it can help: https://jk2.info/viewtopic.php?t=581 Raz0r and Arth like this Link to comment
Jedi_Mediator Posted September 18, 2017 Share Posted September 18, 2017 Can you maybe post an image of the problem so we understand it better? Not sure what kind of quality loss you're talking about. Link to comment
Circa Posted September 18, 2017 Share Posted September 18, 2017 Why not just make it the proper size of 128x128 px? You are never going to see it larger than that, afaik 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