Jump to content

How do I prevent IVA overlay from showing on adjacent parts?


Recommended Posts

Hi all,

I've run into an interesting problem with IVA overlay: adjacent parts are affected by the overlay, making them look like the IVA was drawn on top of the part that doesn't have an IVA. I notice that many stock parts don't have that problem, and I can't figure out why. Here is a picture of what I mean:

gWnKKr8.png

Is there some trick to designing IVAs so that when overlay mode is on, and you have a part right next to the part with IVA, the other part doesn't get drawn over? Clearly it's possible because as you can see, the stock IVA doesn't have that issue, but how is it done?

Here's more info on the part's IVA setup:

Hnqxtpl.png

Here, the aft bulkhead is set to Internal Space, and as you can see, it shows through during IVA overlay. The gray area is the DepthMask. I've tried setting the aft bulkhead to the DepthMask layer with the same result: the IVA bleeds through.

I also did a DebugStuff dump of the mk2Cockpit, and don't see any special layers. Any ideas about why the mk2Cockpit works but mine doesn't?

[DebugStuff] +mk2Cockpit.Inline T:Untagged L:0 (Default)
|   Transform - mk2Cockpit.Inline
|   Part - mk2Cockpit.Inline
|   Highlighter - mk2Cockpit.Inline
|   ModuleCommand - mk2Cockpit.Inline
|   ModuleReactionWheel - mk2Cockpit.Inline
|   ModuleScienceExperiment - mk2Cockpit.Inline
|   ModuleScienceContainer - mk2Cockpit.Inline
|   FlagDecal - mk2Cockpit.Inline
|   ModuleAnimateGeneric - mk2Cockpit.Inline
|   ModuleLiftingSurface - mk2Cockpit.Inline
|   ModuleDataTransmitter - mk2Cockpit.Inline
|   ModuleLogisticsConsumer - mk2Cockpit.Inline
|   ModuleTripLogger - mk2Cockpit.Inline
|   ModuleKISInventory - mk2Cockpit.Inline
|   ModuleKISInventory - mk2Cockpit.Inline
|   Vessel - mk2Cockpit.Inline
|   VesselPrecalculate - mk2Cockpit.Inline
|   FlightIntegrator - mk2Cockpit.Inline
|   SnacksVesselModule - mk2Cockpit.Inline
|   CommNetVessel - mk2Cockpit.Inline
|   OrbitDriver - mk2Cockpit.Inline
|   OrbitRenderer - mk2Cockpit.Inline
|   PatchedConicSolver - mk2Cockpit.Inline
|   PatchedConicRenderer - mk2Cockpit.Inline
|   OrbitTargeter - mk2Cockpit.Inline
|   AudioSource - mk2Cockpit.Inline
|   AudioSource - mk2Cockpit.Inline
|   AudioSource - mk2Cockpit.Inline
|   Rigidbody - mk2Cockpit.Inline
|   CollisionEnhancer - mk2Cockpit.Inline
|   PartBuoyancy - mk2Cockpit.Inline
| 
 --+model T:Untagged L:0 (Default)
   |   Transform - model
   | 
   |--+Cockpit_inline T:Untagged L:0 (Default)
   |  |   Transform - Cockpit_inline
   |  |   MeshFilter - Cockpit_inline
   |  |   MeshRenderer - Cockpit_inline
   |  |   Animation - Cockpit_inline
   |  | 
   |  |---COL2 T:Untagged L:0 (Default)
   |  |      Transform - COL2
   |  |      MeshCollider - COL2
   |  |      MeshFilter - COL2
   |  |    
   |  |---COL T:Untagged L:0 (Default)
   |  |      Transform - COL
   |  |      MeshCollider - COL
   |  |      MeshFilter - COL
   |  |    
   |  |---Airlock2 T:Airlock L:21 (Part Triggers)
   |  |      Transform - Airlock2
   |  |      SphereCollider - Airlock2
   |  |    
   |  |---Airlock T:Airlock L:21 (Part Triggers)
   |  |      Transform - Airlock
   |  |      SphereCollider - Airlock
   |  |    
   |  |---Ladder T:Ladder L:21 (Part Triggers)
   |  |      Transform - Ladder
   |  |      CapsuleCollider - Ladder
   |  |    
   |   ---Ladder2 T:Ladder L:21 (Part Triggers)
   |         Transform - Ladder2
   |         CapsuleCollider - Ladder2
   |       
    ---FLAG T:Icon_Hidden L:0 (Default)
          Transform - FLAG
          MeshFilter - FLAG
          MeshRenderer - FLAG

 

Edited by Angel-125
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...