Posted February 15, 20178 yr Hi, I was wondering how I could take an IBakedModel (or IModel), and rotate that model (in code). Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
February 15, 20178 yr You mean animate? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 15, 20178 yr Author Nah, more like: "this block faces north, so we'll rotate it 90 degrees" (like as in the blockstates of furnaces etc... Where you say "y=90") Edited February 15, 20178 yr by Kander16 Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
February 15, 20178 yr Use GLStateManager.rotate(...) Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
February 15, 20178 yr Author 2 minutes ago, Kokkie said: Use GLStateManager.rotate(...) This works in a custom IBakedModel? Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
February 15, 20178 yr I think it does, but I've never used an IBakedModel... Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
February 15, 20178 yr No it doesn't. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 15, 20178 yr Oh ok Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
February 15, 20178 yr GL commands only work on the current draw frame. IBakedModels are not computed every frame. They're BAKED. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 15, 20178 yr 16 minutes ago, Draco18s said: They're BAKED. Spoiler (Sorry, couldn't resist ) Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
February 15, 20178 yr k K.mp3 Edited February 15, 20178 yr by Kokkie Classes: 94 Lines of code: 12173 Other files: 206 Github repo: https://github.com/KokkieBeer/DeGeweldigeMod
March 5, 20178 yr Author I still can't figure it out how I can do the rotation properly. I've tried to use ((TRSRTransformation) state).rotate(EnumFacing.NORTH) etc. But it doesn't seem to do anything. EDIT: Fixed it, used TRSRTransformation.getMatrix(EnumFacing facing) to get the matrix for a specific facing. Edited March 5, 20178 yr by Kander16 Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.