Sector's Edge Devlog - Magnified Zoom using a Single Framebuffer

Ойындар

#gamedev #opengl #3dgraphics
Hey all, here are some clips I took while building a new rendering pipeline for the 2X- and 4X-zoom weapon scopes.
This pipeline involves:
- rendering the gun and scope
- rendering the non-zoomed scene behind the gun
- rendering the zoomed scene within the scope
I use a stencil buffer to restrict the zoomed scene to the scope area.
Each scene stores a unique bit in an extra R8 framebuffer texture, which is used to differentiate between the different scenes in postprocessing shaders.
I apply postprocessing over the entire scene in one pass, using a different inverse view projection for each of the three regions (background, gun and scope) to reconstruct each pixel's world-space position from a single depth buffer. This world-space position is then used in lighting, shadows and SSAO shaders.
This seems to be rendering a lot faster than the old blurred-background method, and the code is a lot simpler too! It feels great to be able to see around me while also aiming at a target through a 2X scope.
Music is by Punch Deck: / punchdeck
Join the Sector's Edge beta here: sectorsedge.com/d/zehh

Пікірлер: 7

  • @dinodubin9241
    @dinodubin92412 жыл бұрын

    1st half be like POV: drinking night

  • @STARasGAMES
    @STARasGAMES8 ай бұрын

    Oh, okay, now I know I don't want to implement this feature 😅

  • @Vercidium

    @Vercidium

    8 ай бұрын

    Haha it’s crazy how psychedelic rendering glitches can be

  • @Z_Z.t
    @Z_Z.t3 ай бұрын

    Looks like instead of FBO you used some discarding and second draw call

  • @Vercidium

    @Vercidium

    3 ай бұрын

    Yeah these were all caused by strange FBO and stencil issues

  • @Hinge45
    @Hinge452 жыл бұрын

    also bots kinda nuts they can see you from 2000 miles away even when you hide behind a wall with 1 block hole

  • @Hinge45
    @Hinge452 жыл бұрын

    try adding cosmetics and some ads on youtube. this is a great game, it just needs some advertising and cosmetics/skins that means more money for developer

Келесі