Navigation

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

    Split Screen? (3D)

    Coding
    3
    12
    605
    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.
    • S
      starmario last edited by

      Is it possible to make two separate cameras? or is there any method that would allow me to make the screen split and have two different camera displays (one on left and one on right). This would be great for a 3D multiplayer game

      1 Reply Last reply Reply Quote 3
      • PickleCatStars
        PickleCatStars F last edited by

        You can do it with setdrawtarget and stuff like that. I haven’t done it myself, but yes, it can be done :)

        1 Reply Last reply Reply Quote 2
        • PickleCatStars
          PickleCatStars F last edited by

          It’d be like
          Make a couple of images
          Draw stuff to one
          Draw other stuff to other
          Draw them both to framebuffer, side by side.
          Update()

          Something like that anyway :)

          1 Reply Last reply Reply Quote 4
          • LinkCraft
            LinkCraft F last edited by LinkCraft

            I have a 3d split screen pong game if you want to look at the code

            WH173MNDDC

            1 Reply Last reply Reply Quote 5
            • S
              starmario last edited by

              Thanks a bunch for the help. I’m new to this coding so the help is really appreciated :)

              1 Reply Last reply Reply Quote 0
              • S
                starmario last edited by

                ^Apologies for responding so late. Was a bit busy over the holidays. Thanks again

                1 Reply Last reply Reply Quote 0
                • S
                  starmario last edited by

                  Sorry. Complete noob here. Was wondering if there’s a way to set camPos so I can control the camera and look around each screen on the split screen independently. When I try to the screen turns black

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

                    There’s nothing special about split screen that would make it that the screen would turn black.

                    SetCamera() needs location and target. Accidentally setting those both the same would turn the screen black, I think..

                    1 Reply Last reply Reply Quote 0
                    • S
                      starmario last edited by

                      Thanks for all of your advice. It’s appreciated :)

                      1 Reply Last reply Reply Quote 0
                      • S
                        starmario last edited by

                        Sadly I’m still having trouble :(. Here’s a video link to what my code looks like https://u.pcloud.link/publink/show?code=XZG4iQXZJeTvYyT77v5GJ5h3RugDzuPICKLk
                        im probably doing something very wrong in this code. if I am I would much appreciate it if someone would help me out. This program is supposed to display two separate screens and I should be able to control both of them with the joysticks but there’s an error

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

                          I think you’ve got more ’loop’s than ’repeat’s

                          You’ve probably also got more clear()s than you need, and you read the same controls for player 1 and player 2.

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

                            Also you have your ’left’ image half the screen width, but the right one the full screen width.

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