Jump to content

[Solved] Setting up IVA portrait camera (black background problem)


Recommended Posts

I set up a Portrait Camera transform in Unity and assigned a unity camera parameter to it. But in game I have an issue where only my Kerbal is shown in the portrait, the camera angle I set is right but the background is black, no internals show up. I put all the objects onto the "Kerbals" layer but that didn't help.

e15bMuG.jpg

Edited by Enceos
Link to comment
Share on other sites

added Camera Component in Unity before export? don't add camera component in Unity, just place a transform with orientation you want. in the INTERNAL config 
    MODULE
    {
        name = InternalSeat
        seatTransformName = Seat2
        portraitCameraName = [your transform name]
        allowCrewHelmet = false
        kerbalEyeOffset = 0, 0.05, 0
    }

Other things to check, you probably already did, Kerbals layer is #16. maybe try lower case as per wiki. Can't remember my setup at home at the moment. unlikely but flipped normals?

Link to comment
Share on other sites

28 minutes ago, nli2work said:

added Camera Component in Unity before export? don't add camera component in Unity, just place a transform with orientation you want. in the INTERNAL config 
    MODULE
    {
        name = InternalSeat
        seatTransformName = Seat2
        portraitCameraName = [your transform name]
        allowCrewHelmet = false
        kerbalEyeOffset = 0, 0.05, 0
    }

Other things to check, you probably already did, Kerbals layer is #16. maybe try lower case as per wiki. Can't remember my setup at home at the moment. unlikely but flipped normals?

@nli2work Thank you so much, moving "Kerbals" to layer 16 did the trick, cool! These are little things very few people know. I tried to search forums for "Unity layers" but this request crashes the search engine of this site, haha

By the way, if I don't add camera attribute to the transform the game can't find it and sets camera to default generic position in front of Kerbal's upper body. The log says "can't find pilot_camera ..."

What other layer numbers are used in the game? I know Part Triggers should be layer 21. What about Internal Space layer?

Meanwhile, I was making this quick and dirty IVA for your Orbital Tug pod. Ported it from cupola, textures are referenced to squad spaces folder. May I post it as a temporary IVA patch in your tug mod thread until your cool IVA comes online? :3

 

y0tCjzo.png

20EF96B.png

 

Edited by Enceos
Link to comment
Share on other sites

  • 2 weeks later...
On 3/9/2016 at 9:21 AM, nli2work said:

added Camera Component in Unity before export? don't add camera component in Unity, just place a transform with orientation you want. in the INTERNAL config 
    MODULE
    {
        name = InternalSeat
        seatTransformName = Seat2
        portraitCameraName = [your transform name]
        allowCrewHelmet = false
        kerbalEyeOffset = 0, 0.05, 0
    }

Other things to check, you probably already did, Kerbals layer is #16. maybe try lower case as per wiki. Can't remember my setup at home at the moment. unlikely but flipped normals?

I had no idea you could tweak the eye offset or change where the camera goes! Great info, thanks! :)

Link to comment
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...