I have read item.Vsauce…:2dstare:
Random triangles flying everywhere ?
Yup that looks like every programmer’s first experience with OpenGL
i’ve probably mixined somewhere wrong because i don’t understand what the origin is
💀
Space eye can you actually add options for raycaster to detect fluids and ignore entities it would be really helpful
Iirc there is like an event or something (on forge) where you can register code that can be called at specific point of the world rendering process, like before/after transparency etc…
You might want to look more into that rather than mixin into some functions
Idk then, but I doubt the recommended way is to mixin some function
Minecraft use a “matrix stack” to perform transformations, where you will push and pop transformations to the stack, and here you might be rendering your stuff at a point where the game is trying to render something like the UI, and so the matrix stack is in a state where you don’t really want to draw stuff in the world
Also you probably want to enable depth testing, so that stuff behind blocks don’t appear in front of them
I found the “enable depth test” function :
RenderSystem.enableDepthTest();
And for the triangles, are you supposed to draw one quad or two triangles ?
currently i’m just doing random stuff and see what is happening
For UVs, the “texture” page of learnOpenGL will get you most of the way there
This conversation is on Discord · Reply there
:3dsmile: