CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Rise background

    Kotlin/Java
    9
    19
    977
    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.
    • qwq Liulihaocai
      qwq Liulihaocai last edited by qwq Liulihaocai

      THIS IS NOT A BACKGROUND SHADER
      code

      /**
       * @author liulihaocai
       */
      class GuiRiseBackground : GuiScreen() {
          override fun initGui() {
              val bufferedImage = ImageIO.read(GuiRiseBackground::class.java.classLoader.getResourceAsStream("assets/minecraft/fdpclient/misc/bg.png"))
              mc.textureManager.loadTexture(ResourceLocation("NMSL"), DynamicTexture(bufferedImage))
          }
      
          override fun drawBackground(tint: Int) {
              GL11.glDisable(GL11.GL_DEPTH_TEST)
              GL11.glEnable(GL11.GL_BLEND)
              GL11.glDepthMask(false)
              OpenGlHelper.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO)
              RenderUtils.glColor(hslRainbow(1))
              mc.textureManager.bindTexture(ResourceLocation("NMSL"))
              drawModalRectWithCustomSizedTexture(0, 0, 0f, 0f, width, height, width.toFloat(), height.toFloat())
              GL11.glDepthMask(true)
              GL11.glDisable(GL11.GL_BLEND)
              GL11.glEnable(GL11.GL_DEPTH_TEST)
          }
      
          override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) {
              drawBackground(-1)
          }
      
          private val startTime=System.currentTimeMillis()
      
          fun hslRainbow(index: Int,lowest: Float=0.41f,bigest: Float=0.58f,indexOffset: Int=300,timeSplit: Int=5000): Color {
              return Color.getHSBColor((abs(((((System.currentTimeMillis()-startTime).toInt()+index*indexOffset)/timeSplit.toFloat())%2)-1) *(bigest-lowest))+lowest,0.7f,1f)
          }
      }
      

      and dont forgot to put the image
      1.png
      idk how 2 add a blur effect, plz add blur if u can :3

      BobikHatar Sigmeme 2 Replies Last reply Reply Quote 2
      • BobikHatar
        BobikHatar @qwq Liulihaocai last edited by

        @qwq-liulihaocai oMG OMGGG

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User last edited by

          ew i prefer shader

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @Guest last edited by

            @britishbiscuit said in Rise background:

            ew i prefer shader

            blue zenith owner
            option invalid

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @Guest last edited by

              @poop-dealer what?

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User last edited by

                @ender1337
                retarded
                option invalid

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User last edited by

                    @ender1337 said in Rise background:

                    @poop-dealer

                    wasn't @poop-dealer the dumbass who pretended to be dort and tried to be funny but failed?
                    option invalid

                    no it wasnt me
                    option valid

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User last edited by

                      @ender1337 said in Rise background:

                      wasn't poop dealer dort's redesky name and u copied it literally

                      no? are you ok bro

                      1 Reply Last reply Reply Quote 0
                      • A
                        Aftery last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User last edited by

                          @ender1337 said in Rise background:

                          @poop-dealer https://forums.ccbluex.net/user/poop_dealer

                          when you cant explain this

                          qsjLy4l3Tr.png

                          definitely not your alt

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User last edited by

                            reddit trolls are better than you @ENDER1337

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User last edited by

                              @________ randomwords[Random.nextInt(0 ,randomwords.length)]

                              1 Reply Last reply Reply Quote 0
                              • Sigmeme
                                Sigmeme @qwq Liulihaocai last edited by

                                @qwq-liulihaocai can u give for java not kotlin

                                Plumer Man 1 Reply Last reply Reply Quote 0
                                • Plumer Man
                                  Plumer Man @Sigmeme last edited by

                                  @sigmeme Skidder.....

                                  Sigmeme 1 Reply Last reply Reply Quote 0
                                  • Sigmeme
                                    Sigmeme @Plumer Man last edited by Sigmeme

                                    @Plumer-Man The source was posted for a reason and that reason is for others to use sherlock

                                    Plumer Man 1 Reply Last reply Reply Quote 0
                                    • Plumer Man
                                      Plumer Man @Sigmeme last edited by

                                      @sigmeme Why are you asking for java, not hard to just port it over from kotlin 😐

                                      Sigmeme 1 Reply Last reply Reply Quote 0
                                      • Sigmeme
                                        Sigmeme @Plumer Man last edited by Sigmeme

                                        @plumer-man ok I will try then,
                                        but I'm not so good with Kotlin and I also ask for where should the block of code go exactly??

                                        E 1 Reply Last reply Reply Quote 0
                                        • E
                                          Ender__Flash @Sigmeme last edited by

                                          @sigmeme bro just use shader. Its looks better than this.2021-11-11_21.24.18.png
                                          i did it myself and its shader

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          About
                                          • Terms of Service
                                          • Privacy Policy
                                          • Status
                                          • Contact Us
                                          Downloads
                                          • Releases
                                          • Source code
                                          • License
                                          Docs
                                          • Tutorials
                                          • CustomHUD
                                          • AutoSettings
                                          • ScriptAPI
                                          Community
                                          • Forum
                                          • Guilded
                                          • YouTube
                                          • Twitter
                                          • D.Tube