Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Playing with CRT Shader

    Blogs
    4
    10
    1098
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dave
      Dave Fuze Team last edited by

      Using the CRT Shader on some Rose Patterns - looks pretty cool!

      1 Reply Last reply Reply Quote 7
      • Jonboy
        Jonboy Fuze Team last edited by

        Look at that disco-ball-loveliness!

        1 Reply Last reply Reply Quote 1
        • Tratax
          Tratax F last edited by

          @Dave Cool stuff mate, trying this myself and am getting mixed results, mostly a blank screen haha
          Any guidelines on the parameter ranges for the crt filter?

          1 Reply Last reply Reply Quote 0
          • Tratax
            Tratax F last edited by

            @Dave Interesting results, with this code nothing shows when docked.. however in handheld mode:

            1 Reply Last reply Reply Quote 0
            • Tratax
              Tratax F last edited by

              Worked it out!

              1 Reply Last reply Reply Quote 3
              • Dave
                Dave Fuze Team last edited by

                @Tratax Awesome! Apologies for the delay, but nice one for sorting it out yourself! The effect is so instantly cool :)

                1 Reply Last reply Reply Quote 1
                • sys64738
                  sys64738 F last edited by

                  I just played with it 20 mins ago. Showed the keyboard when sourcing from framebuffer. What was the fix

                  1 Reply Last reply Reply Quote 0
                  • Dave
                    Dave Fuze Team last edited by

                    You have to do the following:

                    screen = createImage( gwidth(), gheight(), false, image_rgba )
                    setDrawTarget( screen )
                    // Do all of your drawing here
                    renderEffect( screen, frameBuffer, fxcrt, [ scanLines (numer of scanlines), strength (multiplier - thickness of the scanlines), focus (beam de-focusing effect between colour channels) ] )
                    update()
                    
                    1 Reply Last reply Reply Quote 3
                    • Tratax
                      Tratax F last edited by

                      Nice, great code share @Dave. Two questions, is there a difference between
                      renderEffect( Screen, framebuffer..
                      vs
                      renderEffect ( framebuffer, framebuffer... ?

                      and, how do you do the code share in your post?

                      Thanks mate!

                      Dave 1 Reply Last reply Reply Quote 0
                      • Dave
                        Dave Fuze Team @Tratax last edited by Dave

                        @Tratax No problem!

                        If you do

                        renderEffect( frameBuffer, frameBuffer, ... )
                        

                        Then you are trying to both read from and write to the same texture. Hence, problems! Actually, I'm really glad you asked because this should give you an error, rather than giving the super weird effects that it does.

                        We'll fix this in a patch of course.

                        To apply the code highlighting to text, put 3 back ticks above and below the chunk of text you want to make into code. So,

                        threebackticks ( ` )
                        loop
                        repeat
                        threebackticks

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post