Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. refined the 3d cursor a bit.

refined the 3d cursor a bit.

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
eniblockgamegamedevindiedevprocgen
21 Indlæg 1 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

    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?

    #EniBlockGame #GameDev #IndieDev #ProcGen

    eniko@mastodon.gamedev.placeE This user is from outside of this forum
    eniko@mastodon.gamedev.placeE This user is from outside of this forum
    eniko@mastodon.gamedev.place
    wrote sidst redigeret af
    #2

    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

    #EniBlockGame #GameDev #IndieDev

    eniko@mastodon.gamedev.placeE 1 Reply Last reply
    0
    • jwcph@helvede.netJ jwcph@helvede.net shared this topic
    • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

      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

      #EniBlockGame #GameDev #IndieDev

      eniko@mastodon.gamedev.placeE This user is from outside of this forum
      eniko@mastodon.gamedev.placeE This user is from outside of this forum
      eniko@mastodon.gamedev.place
      wrote sidst redigeret af
      #3

      testing customizable thickness/opacity for the 3d cursor. think being able to set this to whatever you want will be nice for accessibility

      #EniBlockGame #GameDev #IndieDev

      eniko@mastodon.gamedev.placeE 1 Reply Last reply
      0
      • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

        testing customizable thickness/opacity for the 3d cursor. think being able to set this to whatever you want will be nice for accessibility

        #EniBlockGame #GameDev #IndieDev

        eniko@mastodon.gamedev.placeE This user is from outside of this forum
        eniko@mastodon.gamedev.placeE This user is from outside of this forum
        eniko@mastodon.gamedev.place
        wrote sidst redigeret af
        #4

        oooohhhh what if i made it jiggly??

        #EniBlockGame #GameDev #IndieDev

        eniko@mastodon.gamedev.placeE 1 Reply Last reply
        0
        • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

          oooohhhh what if i made it jiggly??

          #EniBlockGame #GameDev #IndieDev

          eniko@mastodon.gamedev.placeE This user is from outside of this forum
          eniko@mastodon.gamedev.placeE This user is from outside of this forum
          eniko@mastodon.gamedev.place
          wrote sidst redigeret af
          #5

          added an outline to the 3d cursor so it's always visible

          #EniBlockGame #GameDev #IndieDev

          eniko@mastodon.gamedev.placeE 1 Reply Last reply
          0
          • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

            added an outline to the 3d cursor so it's always visible

            #EniBlockGame #GameDev #IndieDev

            eniko@mastodon.gamedev.placeE This user is from outside of this forum
            eniko@mastodon.gamedev.placeE This user is from outside of this forum
            eniko@mastodon.gamedev.place
            wrote sidst redigeret af
            #6

            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

            #EniBlockGame #GameDev #IndieDev #ProcGen #PixelArt

            eniko@mastodon.gamedev.placeE 1 Reply Last reply
            0
            • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

              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

              #EniBlockGame #GameDev #IndieDev #ProcGen #PixelArt

              eniko@mastodon.gamedev.placeE This user is from outside of this forum
              eniko@mastodon.gamedev.placeE This user is from outside of this forum
              eniko@mastodon.gamedev.place
              wrote sidst redigeret af
              #7

              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 😄

              #EniBlockGame #GameDev #IndieDev #ProcGen #PixelArt

              eniko@mastodon.gamedev.placeE 1 Reply Last reply
              1
              0
              • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                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 😄

                #EniBlockGame #GameDev #IndieDev #ProcGen #PixelArt

                eniko@mastodon.gamedev.placeE This user is from outside of this forum
                eniko@mastodon.gamedev.placeE This user is from outside of this forum
                eniko@mastodon.gamedev.place
                wrote sidst redigeret af
                #8

                just discovered that the shell textures on leaf blocks do a really cute thing when they surround another block :3

                #EniBlockGame #GameDev #IndieDev

                eniko@mastodon.gamedev.placeE 1 Reply Last reply
                0
                • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                  just discovered that the shell textures on leaf blocks do a really cute thing when they surround another block :3

                  #EniBlockGame #GameDev #IndieDev

                  eniko@mastodon.gamedev.placeE This user is from outside of this forum
                  eniko@mastodon.gamedev.placeE This user is from outside of this forum
                  eniko@mastodon.gamedev.place
                  wrote sidst redigeret af
                  #9

                  changed the way block breaking work. 3d cursor now changes to encompass the whole block and the breaking decal is shown on all faces

                  i'll probably change the cursor to full block vs face (or no cursor at all) depending on what your currently held item is later but for now this works

                  #EniBlockGame #GameDev #IndieDev

                  eniko@mastodon.gamedev.placeE 1 Reply Last reply
                  0
                  • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                    changed the way block breaking work. 3d cursor now changes to encompass the whole block and the breaking decal is shown on all faces

                    i'll probably change the cursor to full block vs face (or no cursor at all) depending on what your currently held item is later but for now this works

                    #EniBlockGame #GameDev #IndieDev

                    eniko@mastodon.gamedev.placeE This user is from outside of this forum
                    eniko@mastodon.gamedev.placeE This user is from outside of this forum
                    eniko@mastodon.gamedev.place
                    wrote sidst redigeret af
                    #10

                    not 100% sure what to do about hidden corners. should they show through other geometry with xray vision or just not be drawn?

                    #EniBlockGame

                    eniko@mastodon.gamedev.placeE 1 Reply Last reply
                    0
                    • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                      not 100% sure what to do about hidden corners. should they show through other geometry with xray vision or just not be drawn?

                      #EniBlockGame

                      eniko@mastodon.gamedev.placeE This user is from outside of this forum
                      eniko@mastodon.gamedev.placeE This user is from outside of this forum
                      eniko@mastodon.gamedev.place
                      wrote sidst redigeret af
                      #11

                      time to turn in for the night but i managed to get some item icon rendering going

                      #EniBlockGame #GameDev #IndieDev

                      eniko@mastodon.gamedev.placeE 1 Reply Last reply
                      0
                      • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                        time to turn in for the night but i managed to get some item icon rendering going

                        #EniBlockGame #GameDev #IndieDev

                        eniko@mastodon.gamedev.placeE This user is from outside of this forum
                        eniko@mastodon.gamedev.placeE This user is from outside of this forum
                        eniko@mastodon.gamedev.place
                        wrote sidst redigeret af
                        #12

                        current status: agonizing about what to do for font rendering. do i wanna do truetype fonts, or use pixel art fonts

                        does my old truetype font implementation even still work at all?

                        edit: nope my truetype implementation is gone so if i wanna go with something i already have i guess it's pixel fonts

                        edit2: ok i can feel the life draining out of me just researching font systems so for now i'll just go with what i have and works: pixel fonts

                        #EniBlockGame

                        eniko@mastodon.gamedev.placeE 1 Reply Last reply
                        0
                        • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                          current status: agonizing about what to do for font rendering. do i wanna do truetype fonts, or use pixel art fonts

                          does my old truetype font implementation even still work at all?

                          edit: nope my truetype implementation is gone so if i wanna go with something i already have i guess it's pixel fonts

                          edit2: ok i can feel the life draining out of me just researching font systems so for now i'll just go with what i have and works: pixel fonts

                          #EniBlockGame

                          eniko@mastodon.gamedev.placeE This user is from outside of this forum
                          eniko@mastodon.gamedev.placeE This user is from outside of this forum
                          eniko@mastodon.gamedev.place
                          wrote sidst redigeret af
                          #13

                          decided to go with a very 16-bit feeling aesthetic for block game's GUI. took a while to set up the shader for the background color gradient but it's totally worth it with the dither and crunchy pixels. and it can go diagonal, horizontal, or vertical!

                          oh and yes, you can customize the gradient colors :3

                          #EniBlockGame #GameDev #IndieDev #PixelArt

                          eniko@mastodon.gamedev.placeE 1 Reply Last reply
                          0
                          • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                            decided to go with a very 16-bit feeling aesthetic for block game's GUI. took a while to set up the shader for the background color gradient but it's totally worth it with the dither and crunchy pixels. and it can go diagonal, horizontal, or vertical!

                            oh and yes, you can customize the gradient colors :3

                            #EniBlockGame #GameDev #IndieDev #PixelArt

                            eniko@mastodon.gamedev.placeE This user is from outside of this forum
                            eniko@mastodon.gamedev.placeE This user is from outside of this forum
                            eniko@mastodon.gamedev.place
                            wrote sidst redigeret af
                            #14

                            Oh did I mention the GUI image atlas is loaded via json so, aside from the background gradient which is a shader, I guess that means the GUI is skinnable?

                            eniko@mastodon.gamedev.placeE 1 Reply Last reply
                            0
                            • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                              Oh did I mention the GUI image atlas is loaded via json so, aside from the background gradient which is a shader, I guess that means the GUI is skinnable?

                              eniko@mastodon.gamedev.placeE This user is from outside of this forum
                              eniko@mastodon.gamedev.placeE This user is from outside of this forum
                              eniko@mastodon.gamedev.place
                              wrote sidst redigeret af
                              #15

                              took all dang day but i have my custom font ready now. it's a tweak of the font i made for MidBoss to make it look a bit more like a system font, so i'm calling it sysboss

                              comes in regular and bold

                              #EniBlockGame #GameDev #IndieDev #PixelArt

                              eniko@mastodon.gamedev.placeE 1 Reply Last reply
                              0
                              • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                                took all dang day but i have my custom font ready now. it's a tweak of the font i made for MidBoss to make it look a bit more like a system font, so i'm calling it sysboss

                                comes in regular and bold

                                #EniBlockGame #GameDev #IndieDev #PixelArt

                                eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                eniko@mastodon.gamedev.place
                                wrote sidst redigeret af
                                #16

                                Reminder: if you have questions about block game you may want to check the site at https://enikofox.com/blockgame because I probably answered your question in the FAQ on there

                                eniko@mastodon.gamedev.placeE 1 Reply Last reply
                                0
                                • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                                  Reminder: if you have questions about block game you may want to check the site at https://enikofox.com/blockgame because I probably answered your question in the FAQ on there

                                  eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                  eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                  eniko@mastodon.gamedev.place
                                  wrote sidst redigeret af
                                  #17

                                  implemented auto GUI scaling, in a way where i can easily mix low res pixel and high resolution image elements

                                  pictured are 640x360 and 960x540 (resized with nearest neighbor to 1080p in post) as well as 1080p

                                  the GUI will be designed to scale cleanly with crisp pixels into 720/1080p and beyond (4k/8k)

                                  #EniBlockGame #GameDev #IndieDev

                                  eniko@mastodon.gamedev.placeE 1 Reply Last reply
                                  0
                                  • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                                    implemented auto GUI scaling, in a way where i can easily mix low res pixel and high resolution image elements

                                    pictured are 640x360 and 960x540 (resized with nearest neighbor to 1080p in post) as well as 1080p

                                    the GUI will be designed to scale cleanly with crisp pixels into 720/1080p and beyond (4k/8k)

                                    #EniBlockGame #GameDev #IndieDev

                                    eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                    eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                    eniko@mastodon.gamedev.place
                                    wrote sidst redigeret af
                                    #18

                                    note that the magnification and low resolution makes the linear scaling on the 540 pixel resolution look much worse than it is. for example, here is 1600x900, unscaled, which has linear filtering on the GUI pixels

                                    #EniBlockGame #GameDev #IndieDev

                                    eniko@mastodon.gamedev.placeE 1 Reply Last reply
                                    0
                                    • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                                      note that the magnification and low resolution makes the linear scaling on the 540 pixel resolution look much worse than it is. for example, here is 1600x900, unscaled, which has linear filtering on the GUI pixels

                                      #EniBlockGame #GameDev #IndieDev

                                      eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                      eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                      eniko@mastodon.gamedev.place
                                      wrote sidst redigeret af
                                      #19

                                      this GUI scaling is why making the background gradient shader was kinda tricky. the way i render pixel perfect stuff at high scales is to just scale via nearest neighbor

                                      but the gradient is just two colored triangles on the GPU, so there's no texture to scale. instead i had to do the pixelated effect in the fragment shader so i can set a scale and render the menu background at high res but with the expected chunky pixels

                                      eniko@mastodon.gamedev.placeE 1 Reply Last reply
                                      0
                                      • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                                        this GUI scaling is why making the background gradient shader was kinda tricky. the way i render pixel perfect stuff at high scales is to just scale via nearest neighbor

                                        but the gradient is just two colored triangles on the GPU, so there's no texture to scale. instead i had to do the pixelated effect in the fragment shader so i can set a scale and render the menu background at high res but with the expected chunky pixels

                                        eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                        eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                        eniko@mastodon.gamedev.place
                                        wrote sidst redigeret af
                                        #20

                                        created the hotbar today, and block game is really starting to look like a game now!

                                        and best of all, the entire bar is reskinnable by changing the gui.png and gui.json files :3

                                        #EniBlockGame #GameDev #IndieDev #PixelArt 🎮

                                        eniko@mastodon.gamedev.placeE 1 Reply Last reply
                                        1
                                        0
                                        • eniko@mastodon.gamedev.placeE eniko@mastodon.gamedev.place

                                          created the hotbar today, and block game is really starting to look like a game now!

                                          and best of all, the entire bar is reskinnable by changing the gui.png and gui.json files :3

                                          #EniBlockGame #GameDev #IndieDev #PixelArt 🎮

                                          eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                          eniko@mastodon.gamedev.placeE This user is from outside of this forum
                                          eniko@mastodon.gamedev.place
                                          wrote sidst redigeret af
                                          #21

                                          just gotta put blocks in the hotbar when you break em, and then place them in the world from the hotbar, and add torches somehow and we'll have ourselves a playable prototype

                                          if i can pull that off in the next 10 days i'll have taken block game from nothing to playable in just 2 months. that'd be a nice feather in my cap

                                          #EniBlockGame

                                          1 Reply Last reply
                                          1
                                          0
                                          Svar
                                          • Svar som emne
                                          Login for at svare
                                          • Ældste til nyeste
                                          • Nyeste til ældste
                                          • Most Votes


                                          • Log ind

                                          • Har du ikke en konto? Tilmeld

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          Graciously hosted by data.coop
                                          • First post
                                            Last post
                                          0
                                          • Hjem
                                          • Seneste
                                          • Etiketter
                                          • Populære
                                          • Verden
                                          • Bruger
                                          • Grupper