Split Screen Co-op in 3D

Hi, I was wondering how I would go about creating a split screen view using 3D camera view following two different characters, like the game ‘It Takes Two’ (which is one of the best games of all time)! I know how to do split screen for 2D cameras but 3D cameras (third-person) don’t seem to work the same way. Thanks!

h…wh…how the heck do you do split screen in 2D in the first place?

You would use two 2D sprites and use the ‘render to sprite’ extension, render the camera view to one rectangle on the left, and another camera view to another rectangle on the right. It works for 2D cameras but not 3D.

Can you send me that extension please? I want to test something multiplayer related as well, but for first person shooter 3D instead.

That’s the point of this topic, @IsaiahDevv. It doesn’t work in 3D, as I explained above, only 2D multiplayer. Also the extension is built into gdevelop, just look up ‘render to sprite’ extension in gdevelop. That’s why I’m asking people if they now how to do this in 3D, split screen multiplayer.

I don’t have the solution, unfortunately!

i will think for an extended period of time.

i suggest looking at the three.js documentation, and cross referencing it with the render to sprite extension

actually if you manage to do that, something like portal might be possible in gdevelop i realized

there’s a guy that’s been working on a vr extension … …he’ll be doing this for that extension

VR Support For Games - GDevelop general / Feature requests - GDevelop Forum

Yeah that would be handy to make portals as well, I did try before haha!

What Avram is doing is different than simple split screen
I was expecting he will do jam with us but he did not (Avram i and few others formed a group) turned out his dad died recently and he is taking some time off

And actual split screen extension needs some adjusting and i don’t really care to do it
Try to spot any bugs gd.games game build

Oh, that must be tough on him. Hope Avram is doing well.

His project is amazing, I have no idea how he even is doing the VR extension.

@ZeroX4 your split screen is amazing!!! The 3D view split into a left and right screen is exactly what I need.

Could you please tell me how you coded it? The 3D camera split part (into left and right sections).

Or if you can tell me where to find the split screen extension I would be very grateful.

Where did you get the split screen extension from?

you may find interesting and experimental extensions for your purpose here:
Community Extensions List

I looked, no extension for split screen, thanks, though.

I saw a bit on discord where someone had posted a JS code block. I modulated it and I’ve actually done a lot of work behind the scenes than what has been shared fully yet. There’s a few issues with how it’s handled, and I’d like to try and figure out a decent way to try to handle the stretching, or make it not as ugly I guess? I dunno. There’s options.

As it stands now, layering matters. In the future you will be able to resize any layer, an entire scene, you name it, and place it right where you want in a specified layer, so that you can properly mask and not have a clustered nightmare.

Keep in mind if you aren’t using logic that takes into account the position of the cursor, it is not properly correlated with the resized layer, it’s dependent on where it actually is in the scene. Another thing on my list, but honestly I don’t think there would be a proper way to call it, unless I set up extension variables for each created image and have those be an expression you can call to.

My life is just way too chaotic lately, and besides the jam I haven’t been able to make any time for personal projects. This is something I need for a main project (even if it is just to mask my minimap layer better) so it’ll definitely be done. Eventually. No eta lol

Sorry for taking a bit to respond. I try to troll the forums when I can, it’s just sadly not too often

Also important to note this extension is strictly only for 3d assets. 2d assets will not appear properly. If you have any sprites, be sure to use the 3d sprite.

To further specify, it has not been fully publicly released yet. There too much polish to be left before that happens

Thanks a lot! Look forward to seeing an extension of this kind in the future.

It shouldn’t be too long. I have just a couple more weeks where I have to focus on work and life, and then I can get this extension shared. Given how 3d works with GD it creates a few problems that have to be worked around. Initially, instead of layers I was going to target a camera layer just to find out you can only use a single camera layer per layer with 3d. Hence why it’s focused at individual layers instead. All that is left is to figure out how to get the captured layer into another specific layer. I will post it here upon completion.

Also, thank Zero for sharing the initial code block with me. He found it, couldn’t get it to work right, shared it with me and I saw potential. Here is the discord link where the discussion started. If you want to try to beat me to the layering issue, be my guest. It’s a tool I intend on releasing for free regardless. Was not originally my idea, I just saw an opportunity to help with something many people will be needing. Original credit goes to the original poster in the discord link bellow.