Rendering an outline box for specific blocks #2722
Replies: 3 comments 6 replies
|
I'm pretty sure you shouldn't be using the OpenGl library directly. This is not something I know a lot about, but maybe look at IIRC the co-ordinate system is at the camera when drawing block outlines so you need to translate by |
Beyond that, it's pretty much impossible to help you debug code if you only snippets out of context. |
|
The think the problem is that you are not translating your box correctly. To fix this you could add a new function to your RenderUtils class. ` To run you this code you could do something like this. |


Uh oh!
There was an error while loading. Please reload this page.
Error
Context
I'm trying to render outlines of specific blocks that are visible through walls, i've tried multiple times to use the raw opengl libraries, but i get the same issue everytime, no context specified. I've tried looking through the documentation, and various forge-alternatives. I've attempted to use pre-made libraries to render the boxes, it does it successfully but the offset is not at the block, and doesn't change no matter where i move.
I've been researching and apparently i need to use the tesselator and the built-in bufferbuilder, i'd love some guidance (and|or) clarification on what i should use.
Thanks!
drawOutlinedBox
All reactions