Sunday, August 7, 2011

r977 - Animated Textures

  • Adds the ability for animated textures.
    • Either via animations.txt in the map's directory
      • animName, textureToUpdate, animationTexture, x, y, width, height
      • Example: sword, /gui/items.png, /swordanim.png, 32, 64, 16, 16
    • effect functions
      • registerTextureAnimation(String animName, String texName, String animatedTex, int x, int y, int width, int height)
        • Example: effect.registerTextureAnimation("sword", "/gui/items.png", "/swordanim.png", 32, 64, 16, 16)
      • unregisterTextureAnimation(String animName)
        • Example: effect.unregisterTextureAnimation("sword")
  • Items can be store and saved with more than 127 items (up to 2^31-1).

4 comments:

  1. WOW Its AMAZING!! Thanks for this!!

    ReplyDelete
  2. With all this new texture stuff, I have to say that I now feel sorry for people with lower-end computers.

    However, Cryect, I have to say: AWESOME!

    ReplyDelete
  3. How exactly would we go about adding/using HD textures?
    Do animations work with all textures (like mobs, and animated models)
    and would you mind explaining how the wrapping works on models which aren't perfect cubes? i cant figure that out, it was being strange.

    ReplyDelete
  4. Generated 21/08/11 15:11

    AdventureCraft r993 - Minecraft Beta 1.7.3OS: Windows Vista (x86) version 6.0
    Java: 1.6.0-oem, Sun Microsystems Inc.
    VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
    LWJGL: 2.4.2
    OpenGL: Intel 945GM version 1.4.0 - Build 7.14.10.1114, Intel

    java.lang.NullPointerException
    at TextureAnimated.onTick(TextureAnimated.java:64)
    at ji.updateTextureAnimations(RenderEngine.java:734)
    at ji.a(RenderEngine.java:593)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1176)
    at net.minecraft.client.Minecraft.run(Minecraft.java:512)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT 66e43566 ----------

    ReplyDelete