refined the 3d cursor a bit.
-
refined the 3d cursor a bit. pretty happy with it. the thickness will be user adjustable. it also shows through terrain, but slightly dimmer where it's obscured by the terrain
also showing "mouse pointer mode" where you can mouse over anywhere on screen to interact with blocks, and you mouselook with the right mouse button
thinking of keeping this as a toggleable mouse mode. thoughts?
-
refined the 3d cursor a bit. pretty happy with it. the thickness will be user adjustable. it also shows through terrain, but slightly dimmer where it's obscured by the terrain
also showing "mouse pointer mode" where you can mouse over anywhere on screen to interact with blocks, and you mouselook with the right mouse button
thinking of keeping this as a toggleable mouse mode. thoughts?
fun fact: in order to draw the cursor as translucent i had to use the stencil buffer, because the boxes that make up the "lines" overlap at the corners, so without the stencil buffer it'd be more opaque at the corners
-
J jwcph@helvede.net shared this topic
-
fun fact: in order to draw the cursor as translucent i had to use the stencil buffer, because the boxes that make up the "lines" overlap at the corners, so without the stencil buffer it'd be more opaque at the corners
testing customizable thickness/opacity for the 3d cursor. think being able to set this to whatever you want will be nice for accessibility
-
testing customizable thickness/opacity for the 3d cursor. think being able to set this to whatever you want will be nice for accessibility
oooohhhh what if i made it jiggly??
-
oooohhhh what if i made it jiggly??
added an outline to the 3d cursor so it's always visible
-
added an outline to the 3d cursor so it's always visible
i can now overlay a block breaking decal on blocks, and it works on blocks with shell texturing and even nominally on objects like ferns and flowers
i draw the block's faces again using the stencil buffer, then draw the breaking decal with depth read/write off, masking using the stencil buffer
the way it works for ferns/flowers is i just draw all faces of the breaking pattern block, and any pixels outside the object model are masked
-
i can now overlay a block breaking decal on blocks, and it works on blocks with shell texturing and even nominally on objects like ferns and flowers
i draw the block's faces again using the stencil buffer, then draw the breaking decal with depth read/write off, masking using the stencil buffer
the way it works for ferns/flowers is i just draw all faces of the breaking pattern block, and any pixels outside the object model are masked
major milestone in block game development: the first actual gameplay! you can go around and hold the left mouse button on blocks in order to break em