Posted October 5, 201410 yr I am working on my gun still and the bullet, which moves REALLY slow for exploration purposes, is having dead angles where it is not being rendered, if I move about or change my looking angle ever so slightly it will reappear where it would be after having moved and all, what could cause this? package aerosteam.renderer.mob; import org.lwjgl.opengl.GL11; import aerosteam.AeroSteam; import aerosteam.mobs.MobThief; import aerosteam.model.mobs.ModelBullet; import aerosteam.model.mobs.ModelThief; import aerosteam.projectiles.ProjectileBullet; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.util.ResourceLocation; public class RenderBullet extends Render { private static final ResourceLocation texture = new ResourceLocation(AeroSteam.MODID + ":" + "textures/model/Bullet.png"); protected ModelBullet modelEntity; public RenderBullet(ModelBase model, float f) { modelEntity=((ModelBullet) model); } public void doRender(Entity entity, double x, double y, double z, float u, float v){ GL11.glPushMatrix(); GL11.glTranslatef((float)x,(float)y,(float)z); GL11.glRotatef(180, 0F, 0F, 1F); this.bindTexture(texture); GL11.glPushMatrix(); this.modelEntity.renderModel(0.0625F); GL11.glPopMatrix(); GL11.glPopMatrix(); } @Override protected ResourceLocation getEntityTexture(Entity p_110775_1_) { return texture; } } this is the code I have PS: I am noticing that the server position of the object and client positoin differ by the eyeheight of the player, could that affect it?
October 5, 201410 yr Author To show pictures of what happens, mere movement of my view causes this http://i1310.photobucket.com/albums/s644/EmperorZelos/2014-10-05_142738_zpsb5dcb888.png http://i1310.photobucket.com/albums/s644/EmperorZelos/2014-10-05_142718_zps7101804c.png http://i1310.photobucket.com/albums/s644/EmperorZelos/2014-10-05_142725_zps9ab3185d.png http://i1310.photobucket.com/albums/s644/EmperorZelos/2014-10-05_142722_zps14a56f61.png http://i1310.photobucket.com/albums/s644/EmperorZelos/2014-10-05_142721_zps2ba6f3a2.png http://i1310.photobucket.com/albums/s644/EmperorZelos/2014-10-05_142719_zps18913f25.png
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.