Navigation

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

    Spit screen 3D Output?

    Advanced
    3
    4
    378
    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.
    • Tratax
      Tratax F last edited by Tratax

      Anyone have ideas on how this could be done? Im guessing setCamera would need the ability to draw to two different viewports?
      Anything fancy that could be done with setDrawTarget?

      Thinking about games like Goldeneye / Mario Kart 64/ etc

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

        https://fuzearena.com/forum/topic/657/split-screen
        This works for 2D and 3D

        1 Reply Last reply Reply Quote 0
        • PB____
          PB____ last edited by

          Implementation would be different depending on what you're drawing though.

          In 2D you can specifically draw individual things (for example by using drawSprite(sprite) in stead of drawSprites())

          In 3D you have a one 3D world that is drawn by calling drawObjects(). This makes sence, because how objects are drawn, is depending on light, camera position, and other objects. So you'd have to build a mechanism with placeObject and removeObject between the different draw targets.

          So in short: The idea of a draw target per screen section should work, but what you need to do between drawing to those targets, is different from 2D.

          1 Reply Last reply Reply Quote 0
          • PB____
            PB____ last edited by

            In case both players are in the same environment (like Mario Kart) then of course it may be enough to just change the camera between drawing to the draw target :)

            I didn't yet create a 3D game, so I was a bit slow with that, sorry :)

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