Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • GiantNuker

GiantNuker

Members
 View Profile  See their activity
  • Content Count

    139
  • Joined

    May 3, 2016
  • Last visited

    January 9, 2019

Community Reputation

2 Neutral

About GiantNuker

  • Rank
    Creeper Killer

Converted

  • Gender
    Undisclosed

Recent Profile Visitors

4504 profile views
  • Protnore

    Protnore

    November 11, 2020

  • DavidM

    DavidM

    January 28, 2019

  • SubDivide

    SubDivide

    January 27, 2018

  • JavaMan7

    JavaMan7

    September 25, 2017

  1. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker replied to GiantNuker's topic in Modder Support

    Thanks @Cadiboo
    • August 27, 2018
    • 15 replies
  2. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker replied to GiantNuker's topic in Modder Support

    GlStateManager.enableColorMaterial(); GlStateManager.pushMatrix(); GlStateManager.translate(glX, glY, 50.0F); GlStateManager.scale((float) (-scale * scaleM), (float) scale * scaleM, (float) scale * scaleM); GlStateManager.rotate(180.0F, 0.0F, 0.0F, 1.0F); GlStateManager.rotate(135.0F, 0.0F, 1.0F, 0.0F); GlStateManager.rotate(-100.0F, 0.0F, 1.0F, 0.0F); GlStateManager.rotate(0.0f, 1.0F, 0.0F, 0.0F); RenderHelper.enableStandardItemLighting(); GlStateManager.translate(0.0F, 0.0F, 0.0F); RenderManager rendermanager = Minecraft.getMinecraft().getRenderManager(); rendermanager.setPlayerViewY(180.0F); rendermanager.setRenderShadow(false); GlStateManager.pushMatrix(); GlStateManager.disableLighting(); OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240f, 240f); GlStateManager.popMatrix(); rendermanager.renderEntity(entity, 0.0D, 0.0D, 0.0D, 0.0F, 1.0F, false); GlStateManager.pushMatrix(); GlStateManager.enableLighting(); OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240f, 240f); GlStateManager.popMatrix(); rendermanager.setRenderShadow(true); GlStateManager.popMatrix(); RenderHelper.disableStandardItemLighting(); GlStateManager.disableRescaleNormal(); GlStateManager.setActiveTexture(OpenGlHelper.lightmapTexUnit); //GlStateManager.disableTexture2D(); GlStateManager.setActiveTexture(OpenGlHelper.defaultTexUnit); Do i still need the calls to OpenGlHelper?
    • August 27, 2018
    • 15 replies
  3. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker replied to GiantNuker's topic in Modder Support

    I am sorry, but I just found out the root cause of my problem. I used RenderGameOverlay.Pre instead of Post. With a little bit of tweaking, now it works If you would like to use it: Highlighter[1.0-1.12.2].jar - Download Highlighter[1.0-1.12.2]-source.jar - Sources Thank you @Draco18s @Cadiboo
    • August 27, 2018
    • 15 replies
  4. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker replied to GiantNuker's topic in Modder Support

    And how would i do that in this situation?
    • August 27, 2018
    • 15 replies
  5. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker replied to GiantNuker's topic in Modder Support

    Thank you. How do I rebind the previous texture though? Edit: this stops screen blacking, but still dosent render the transparency: GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS); rendermanager.renderEntity(entity, 0.0D, 0.0D, 0.0D, 0.0F, 1.0F, false); GL11.glPopAttrib(); Source: http://www.minecraftforge.net/forum/topic/32488-1710-rendering-semi-transparent-mobs/?do=findComment&comment=171749 Rendering issues with this method:
    • August 26, 2018
    • 15 replies
  6. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker replied to GiantNuker's topic in Modder Support

    Oh no! Check this out...It happens with any entity.
    • August 26, 2018
    • 15 replies
  7. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker replied to GiantNuker's topic in Modder Support

    How would i turn transparency on and off? Also, i think there might be a difference between whatever version had "doRenderEntity" and 1.12.2 "renderEntity" I'm retty sure ToroCraft just hasnt updated the github repositiory. That is the only difference I can see codewise so far.
    • August 26, 2018
    • 15 replies
  8. GiantNuker

    How to retrieve the size of a model part

    GiantNuker replied to GiantNuker's topic in Modder Support

    This seems like the best solution
    • August 26, 2018
    • 7 replies
  9. GiantNuker

    [Solved]How do I properly use the Frustum class?

    GiantNuker replied to GiantNuker's topic in Modder Support

    I was using the frustum so it takes your FOV into account. Anyway it seems to be working now, not sure what i tweaked
    • August 26, 2018
    • 2 replies
  10. GiantNuker started following [Solved] Screen blacking when rendering transparent entity as overlay, [Solved]How do I properly use the Frustum class? and How to render an additional perspective on your ingame screen August 25, 2018
  11. GiantNuker

    [Solved]How do I properly use the Frustum class?

    GiantNuker posted a topic in Modder Support

    I am making a mod that warns you if mobs are coming up behind you, and to do that properly, I need to know how to correctly use the view Frustum. The code I currently have is extremely unhelpful in that it does absolutely nothing when you face away from the entity and intermittently turns on. There is a creeper direcly behind me in both screenshots: My Frustum checking code: The entire point of this mod was to stop creepers from sneaking up behind me when I'm battleing lots of mobs If you can help, Thanks!
    • August 25, 2018
    • 2 replies
  12. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker replied to GiantNuker's topic in Modder Support

    I checked ToroHealth and Can't seem to find anything. The mod does render a skin into the background though. It uses: private void drawSkin() { if (ConfigurationHandler.skin.equals("NONE")) { return; } if (ConfigurationHandler.skin.equals("HEAVY")) { mc.getTextureManager().bindTexture(SKIN_HEAVY); }else{ mc.getTextureManager().bindTexture(SKIN_BASIC); } GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); Gui.drawModalRectWithCustomSizedTexture(screenX - 10, screenY - 10, 0.0f, 0.0f, 160, 60, 160, 60); } I am not very good with OpenGL, but I don't think this has anything. The render entity code is exactly the same, I had something else, but now I'm using the same renderer to try to get rid of this. Entity render code:
    • August 25, 2018
    • 15 replies
  13. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker replied to GiantNuker's topic in Modder Support

    Thank you, I will look into this.
    • August 25, 2018
    • 15 replies
  14. GiantNuker

    How to render an additional perspective on your ingame screen

    GiantNuker posted a topic in Modder Support

    I would like to render a rear view perspective in the corner of the screen when a mob is stalking you, so you can see it. Does anyone know how to duplicate the renderer?
    • August 25, 2018
    • 1 reply
  15. GiantNuker

    [Solved] Screen blacking when rendering transparent entity as overlay

    GiantNuker posted a topic in Modder Support

    A mod I am working on tries to display mobs that are sneaking up behind you, by showing little versions on the sides of your screen. Here is how it's supposed to work: The display code shown was copied from ToroCraft's ToroHealth (Source On GitHub) ToroHealth seems to have no problem with this, but whenever the display shows a slime(Or any other partially transparent entity i'm guessing) this happens: Any idea why or how to fix it? Thanks. Render Code: Edit: Happens with wither skeletons too
    • August 25, 2018
    • 15 replies
  16. GiantNuker

    How to retrieve the size of a model part

    GiantNuker replied to GiantNuker's topic in Modder Support

    I would, but the point is for it to work with other mods.
    • August 24, 2018
    • 7 replies
  • All Activity
  • Home
  • GiantNuker
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community