Posted April 25, 20196 yr I've create animated textures for items and blocks with .mcmeta files. However, I would like to apply an animated texture to a sphere rendered with lwjgl. Is it possible to bind animated textures to GlStateManager? Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
April 25, 20196 yr mcmeta files are for defining animations within the texture atlas, it doesn't do anything for textures not belonging to a texture atlas, aka normal textures. So the short answer is no, it isn't possible. The long answer would be you can make the object appear to have animated textures by binding a different texture based on some kind of counter, like a current frame field. Depending on the way you render the sphere you could also change the UV values to shift to the next frame
April 25, 20196 yr Author Thanks. I am currently rendering my sphere with callList: https://github.com/DanielHeEGG/RapidOxidation/blob/507cb3bdb5e0fca20c3308ec6fa8a47b3a94de32/src/main/java/com/daniel_egg/rapidoxidation/util/RenderUtil.java#L20-L29 Is it possible to apply UV then? (AFAIK no?) Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
April 25, 20196 yr With the way you have it setup - no, it isn't possible to apply UV changes by editing vertex data. It is still possible with a custom shader if you are willing to go that way(although I wouldn't recommend that). The best way would be to bind different textures based on the frame.
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.