Jump to content

bfravel

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by bfravel

  1. Thanks for the suggestion, I'll try it tonight once I get off work
  2. But I can't move the transforms directly because the game is pulling it back to it's original place. Sure, I can reference PlanetariumCamera to move it around whichever MapObject it is focused on, but I want to be able to move it in any direction and rotation I please. I'm able to do this to the camera I've created, I just can't figure out how to get the Flare to show up.
  3. So I've been messing around with writing a kerbcam-like plugin that works in the mapview. Since the PlanetariumCamera seems to be locked in place, I haven't had any luck manually moving it. I've been able to add a camera and set it's parent to be the planetarium camera and move that around successfully, however, the SunFlare doesn't show up. Here is the code I'm using for creating the camera: GameObject go = new GameObject(); newCam = go.AddComponent<Camera>(); newCam.CopyFrom(ScaledCamera.Instance.camera); newCam.transform.parent = ScaledCamera.Instance.camera.transform; newCam.depth = ScaledCamera.Instance.camera.depth+1; newCam.clearFlags = CameraClearFlags.Depth; Here is what I mean by the flare not showing up: I've tried modifying the culling mask, but haven't had any luck. Everything else works great; the planets, skybox, ect all show up. I just can't figure out how to get the SunFlare to show up. Does anyone have any suggestions?
  4. Thanks for watching! Feel free to give me any feedback.
×
×
  • Create New...