Posted January 23, 20178 yr I'm trying to figue out how to use the fasttesr but can't find any tutorials, examples ect. Here is the code i have so far: vertexBuffer.setTranslation(x, y, z); vertexBuffer.addVertexData(new int[] { 0, 0, 0, 1, 1, 1 }); this.bindTexture(resourceLocation); vertexBuffer.finishDrawing(); http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
January 23, 20178 yr Author ok removed finishDrawing. How do I bind/use the main texture sheet? How do I vertex data from a cube? http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
January 23, 20178 yr Author Ok but how do I use the main texture sheet? I want my model to have a specific texture. How do I do that? http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
January 24, 20178 yr Author Where should I put the TextureStichEvent? and how do I register a texture. registerSprite doesn't excist in the event or in the class. http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
February 3, 20178 yr Author How do I: Get the U and V coordinates for the stitched texture from the TextureAtlasSprite http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
February 4, 20178 yr Author Ok but how should I implement that? vertexBuffer.tex(u, v) What should I replace u and v with? Where should I get the TextureAtlasSprite from? http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
February 4, 20178 yr Author Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(iconName).getMinU() Works but what should iconName be? http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
February 4, 20178 yr Author Well this is how I register: public void stichTextures(TextureStitchEvent event) { for (int i = 0; i < Misc.textureLocations.size(); i++) { event.getMap().registerSprite(Misc.textureLocations.get(i)); } } textureLocations is a arraylist of resourcelocations This is where I add to list: Misc.textureLocations.add(new ResourceLocation(Minecraft.getMinecraft().getBlockRendererDispatcher() .getModelForState(block.getDefaultState()).getParticleTexture().toString())); in my tileentity class http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
February 4, 20178 yr If the texture is already being used in a model, you don't need to add it to the texture map yourself, it's already been added by Minecraft. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
February 4, 20178 yr Author Ok no longer readding the texture but how should I find the iconName of a block? http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
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.