mojira.dev
MC-50665

Can't rotate by +/- 90/67.5 degrees in mesh files

When attempting to rotate boxes in mesh files by values that should be accepted (like 90 or 67.5), it will not work.

Rotating it on the y axis by 90 will result in switching to the default resource pack with this error:

com.google.gson.JsonParseException: Invalid y rotation angle, expected one of [0, 22.5, -22.5, 45, -45] and got 90.0

This happens with any axis, and also can result in crashing Minecraft. Having no rotation (0 degrees) for every axis can also cause a crash (when it should just ignore the rotation request).

EDIT: This happened to me while trying to rotate a box inside in the lever mesh file.
Rotation of 90 degrees does work when inheriting meshes.

Attachments

Comments 6

Intended. You can just change the axis if you want to rotate by 90 degrees.

Yes, but then you also have to change the UV coordinates. The system shouldn't have any problem rotating by 90 degrees if it can rotate by 45.

Just because there's a workaround, doesn't mean WAI. The workaround takes more time to do, it should be possible to quickly rotate something by acceptable degrees.

I don't get why you would close this as WAI. Not being part of the dev team, I can see any issue being marked as WAI by a moderator if it is an obvious feature or restriction or something already stated WAI by a developer.

However, this issue is neither. Had I said "can't rotate by 63 degrees" or something arbitrary like that (or something like "sheep change color when you name them jeb_!"), it would be WAI (because they limited rotation to multiples of 45). This issue deals with a specific technical problem that (to my knowledge) has not been talked about by the developers. If this is the case, how can you mark it as WAI? Do they INTEND to cause crashing?

If this problem didn't exist, making certain models will become much easier (any time you want 1 element to be the same but facing a different NESW direction). There is no valid reason this shouldn't work, and the fact that there is a work-around doesn't lessen that. If a box can be rotated by 45 degrees or 22.5 degrees, why couldn't it handle 90, 180, or 270? My guess is that it wasn't added as a value the parser will accept, so it just crashes.

If this was at all related to an obvious or explicitly stated decision by the developers, I would understand, however, it doesn't appear that it is. Could you at least give this a chance and see if a member of Mojang says this is a bug or WAI?

I'm sorry that you are unhappy with the current way to rotate by multiples of 90 degrees, but this tracker is for bugs, not feature requests. I agree that allowing such rotation could make it easier, but if there is currently a way to do it, it's not a bug.

Because there can't be more than 1 way to do something? If something should work, but doesn't, it's a bug, even if you can do it a different way. The "rotation" property exists, and it should be able to rotate by 90 degrees. It can even crash if you try. This isn't a feature request (I'm not asking for a new property, or arbitrary rotation), but reporting the crashing issue, which shouldn't even be happening. I highly doubt that one of the developers made it intentionally crash if you try to rotate by 90 degrees.

Saying that there's a current way to do something invalidates another way not working is like saying "you can do X, but if you do X like Y, it crashes" and then responding "so you can do X? Not a bug, just don't do it like Y".

I feel like this should be re-opened.

Not even for the 90 degrees part, but because 67.5 degrees isn't supported, either. Specifically you might be rotating something and decide you want to rotate it more, and now you've got to manually rotate the element 90 degrees to the origin you've already defined to the rotation, and then rotate it in the opposite direction (like if you rotated by 45 degrees, you'd have to flip the element and then rotate by -22.5 degrees) when you should be able to just change the rotation value a little more.

I know what the developers would say: "Just use a model editor".... and well that's great and all, but both Opl's model editor and Mr. Crayfish's model editor DON'T SUPPORT ROTATING ELEMENTS. And I'm certainly not going to buy Cubik.

Removing this unnecessary restriction would probably take 2 minutes. I see no reason why it was added in the first place.

insomniac_lemon

(Unassigned)

Unconfirmed

Minecraft 14w10c

Retrieved