Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

HD Cape Resolution #31

Open
NomNuggetNom opened this issue Oct 15, 2014 · 8 comments
Open

HD Cape Resolution #31

NomNuggetNom opened this issue Oct 15, 2014 · 8 comments

Comments

@NomNuggetNom
Copy link

Currently, HD capes are supported as long as the resolution is 64x32 or some greater multiple of that. Why is this? It seems to me it would be more logical for the image to be a resolution of 22x17, e.g. 44x34, 88x51, etc. I tried fiddling with the code but couldn't get it to work.

@jadar
Copy link
Owner

jadar commented Oct 15, 2014

That's because of how OpenGL wants textures, I think. What happens when Minecraft gets a texture is it fills in the pixels to be 64x32. Mine is appearantly not doing this. It's not a huge issue, but if you want to try it should be in something like HDImageBuffer or something like that.

On Oct 15, 2014, at 12:12 PM, NomNuggetNom [email protected] wrote:

Currently, HD capes are supported as long as the resolution is 64x32 or some greater multiple of that. Why is this? It seems to me it would be more logical for the image to be a resolution of 22x17, e.g. 44x34, 88x51, etc. I tried fiddling with the code but couldn't get it to work.


Reply to this email directly or view it on GitHub.

@NomNuggetNom
Copy link
Author

Ah, that's true. Minecraft only renders dimensions with multiples of 4, right? I tried fooling around with it to no avail.

@jadar
Copy link
Owner

jadar commented Oct 16, 2014

No, GL just wants textures with a resolution divisible by 8 or something..

@jadar
Copy link
Owner

jadar commented Oct 16, 2014

Oh, I just realized what you were trying to do... 22x17 works for you, right? I agree it doesn't make a ton of sense, but it's hard to find the resolution of a cape when it can be anything instead of locked to 64x32. So we stick with letting the user make sure he has the correct resolution.

@NomNuggetNom
Copy link
Author

It seems odd to require a resolution that is not divisible by the regular
cape resolution. What would a 64x32 cape look like (not in game, but in
Photoshop or something).
On Oct 16, 2014 10:28 AM, "jadar" [email protected] wrote:

Oh, I just realized what you were trying to do... 22x17 works for you,
right? I agree it doesn't make a ton of sense, but it's hard to find the
resolution of a cape when it can be anything instead of locked to 64x32. So
we stick with letting the user make sure he has the correct resolution.


Reply to this email directly or view it on GitHub
#31 (comment).

@jadar
Copy link
Owner

jadar commented Oct 16, 2014

it would be 64x32 and have a 22x17 texture in top left. Then just scale it up for different resolutions..

I suppose I could think up some algorithm. But it might be more work than it's worth.. I don't have a ton of time these days.

@NomNuggetNom
Copy link
Author

Hmm, that's odd, sounds pointless to me. If you're scaling up the image,
it's still just 22x17 and has no more detail. And I understand. I'll try
and work something out too.
On Oct 16, 2014 11:42 AM, "jadar" [email protected] wrote:

it would be 64x32 and have a 22x17 texture in top left. Then just scale it
up for different resolutions..

I suppose I could think up some algorithm. But it might be more work than
it's worth.. I don't have a ton of time these days.


Reply to this email directly or view it on GitHub
#31 (comment).

@jadar
Copy link
Owner

jadar commented Oct 16, 2014

I meant just scale it up to get the template of where to put the texture..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants