Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/16/23 in all areas

  1. You shouldn't be playing with opengl calls directly, you will likely just break things when you change things in ways minecraft doesn't understand. Use minecraft's RenderSystem. But in this case, directly modifying the opengl state using any of those calls is not going to work. You are using a buffer to do the rendering. That means it is not doing the rendering immediately. Instead once everybody has had a chance to fill the buffer (long after your code has run); * The rendering state is initialised from the RenderType of the buffer * The buffer is flushed to the graphics card * The relevant shader(s) are called to process the buffer. If you want to do something different you will likely have to make your own RenderType (if one does not already exist that does what you want) or draw directly so you have control of the rendering state. I am not an expert on rendering, so I can't really help you with how to do that.
    1 point
  2. You are trying to load client classes on the server.
    1 point
  3. You are not checking the stage, so you are rendering at every stage. https://github.com/MinecraftForge/MinecraftForge/blob/01846c729a21c13cb86447c4e233b83a314b6856/src/main/java/net/minecraftforge/client/event/RenderLevelStageEvent.java#L57 and That's not always true. e.g. when minecraft draws the normal block/entity hitboxes the matrix has been transformed to the camera or if you are using the normal renderers it will have already translated to the block/entity otherwise it will likely be at world 0,0,0 ?
    1 point
  4. 1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.