So I´m having a problem I couldnt figure out so far. I´m doing a split screen, with two cameras viewports.
Almost everything works ok, except for the skyboxes. I´ve created them using something like this:
Then, when rendering, I do this:
Problem is, only the first skybox shows, on both viewports.SkyBox2 never shows up, and on the second viewport I see SkyBox1 "near" where the camera1 should be.
How can I make so the skybox shows up correctly on both viewports? And I do need a flip for every viewport? (Even without the "flip" everything - except for the skyboxes - works correctly!)
Almost everything works ok, except for the skyboxes. I´ve created them using something like this:
Skybox1=CreateCube(camera1) FlipMesh SkyBox1 EntityOrder SkyBox1, 999 SkyBox2=CreateCube(camera2) FlipMesh SkyBox2 EntityOrder SkyBox2, 999
Then, when rendering, I do this:
HideEntity SkyBox1 ShowEntity SkyBox2 CameraViewport camera2, 0,GraphicsHeight()/2,GraphicsWidth(),GraphicsHeight()/2 flip HideEntity SkyBox2 ShowEntity SkyBox1 CameraViewport camera1, 0,0,GraphicsWidth(),GraphicsHeight()/2 flip
Problem is, only the first skybox shows, on both viewports.SkyBox2 never shows up, and on the second viewport I see SkyBox1 "near" where the camera1 should be.
How can I make so the skybox shows up correctly on both viewports? And I do need a flip for every viewport? (Even without the "flip" everything - except for the skyboxes - works correctly!)