Jump to content

Recommended Posts

Hi everyone,

I try to understand the Camera System in KSP and hope I can get help here.

Is it possible to correctly Render everything (all the Layers with Objects that are Visible on screen except the UI) with a single Camera? And If not, how would I do it with multiple Cameras.

Currently when I create a Camera and set the render Layers like this:

camera.cullingMask = (1 << 0) | (1 << 4) | (1 << 9) | (1 << 10) | (1 << 15) | (1 << 16) | (1 << 18) | (1 << 20) | (1 << 23);

Then the Cockpit Interior is not correctly rotated and the sky is just a blue Square over the ship.

also, I have the problem that if I copy a camera other than the main Camera the game crashes after a view seconds.

Would be nice If someone could point me in the Right direction. 

 

Edit:

With two Cameras I can Render the sky correctly, but I can't rotate the sky camera without the sky turning into a small blue square.

I can rotate the sky itself by setting ScaledSpace.transform but it behaves really odd (the rotation speeds are faster than I would expect them to be and I don't know how to scale them correctly)

Edited by X52
Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...