Viewport transparency and the "background" setting

TLDR for those looking for a solution: Uncheck ‘Background’ in LayOut’s style settings.


I finally figured out something that’s been troubling me for a long time, but I’m still wondering if I’m missing something, or whether a feature request is in order. When creating condocs, I frequently stack one viewport on top of another, so that I can show different layers of a building, or show some elements in a different weight/color, etc. But at some point (last year?) this stopped working for me – the top viewport would block the other one, even if it is set to ‘vector’ rendering. I checked all the SketchUp style settings, to no avail. Then I noticed in LayOut’s style settings, a little “Background” checkbox. That fixed my issue – now, the top viewport is transparent, as long as it’s rendered in Vector.

It seems like this should be a setting in SketchUp? But maybe not, since that setting wouldn’t affect working in SketchUp – only background color matters there. It was just weird for me to need to change it in LayOut, since I try to make all style settings in SU – set it and forget it.

LayOut’s settings for the SU model style:

SketchUp’s settings for a particular style (that’s not a checkbox, it’s a color selector):
image

example of stacked viewports.

  • Bottom viewport: hybrid, hidden line. shows walls and appliances, with gray lines, black section cuts, and gray section fill.
  • Top viewport: vector, shaded. shows electrical with black lines.

Also… shouldn’t the top viewport also be transparent if I render it in ‘hybrid’? Right now it’s only working in ‘vector’.

You need to have Sky turned off in the style in order to have the transparent background.

Hmm… I already had sky disabled. And enabling sky (in SU) for both viewports doesn’t cause an issue with viewport transparency. Just that ‘background’ checkbox in LayOut.

Do you have fog on by chance? Background won’t be transparent if you accidentally have fog on. I skimmed your post so apologies if that’s not helpful.

Fog isn’t on, in either viewport. And it’s disabled in SU.

Sky will prevent the background transparency from showing even if you untick the Background box.

The only difference between the two viewports is the scene for the top one has no sky enabled in the style. The bottom one does.
bkgnd

If the background is set to white and Sky is not enabled, the background will be transparent by default when you send to LayOut.
vp

As @nmason points out, Fog could affect the background, too.

Interesting – I think we’re talking about a different types of transparency – With Sky enabled, I can’t see the LayOut background (the “paper”), but I can see through one viewport to the other (if I uncheck ‘background’ in LO). I had to give the background some color to realize this. So, the Sky setting isn’t relevant to the problem I was having, but it’s good to know.

It’s possible since version 2022 to manage line weights, styles and colors on a single viewport for different tags of your sketchup model, you can tag the elements you want to show on a different line weight and color then on layout on the sketchup model tray go to tags and edit the style there without having stacked viewports, you can also hide different tags directly from layout, it’s one of the best features added recently. You must set the line scale to 1x to be able to see the changes you do to the tags, if the line scale is too small will be hard too see the line weights.

1 Like

@francisquitof
I forgot about that feature – guess I reverted to old habits. I was very excited when it was introduced. And yeah, it would have been a good method to use in this situation.

I can not make the background transparent in LAYOUT on a PLAN view , not even with setting it to vector ( as suggested above).

  • Background is ticked off

  • SKY is off

  • No GROUND PLANE under the model

  • I experimented with the STYLE as well _ tried to use GROUND with TRANSPARENCY (see attachments

)
PLEASE LET ME NOW IF YOU KNOW THE WAY TO MAKE THIS TRANSPARENT. I would like the shadow to come through with the furniture, so vector rendering setting doesn not work well for me.

Share the LO file so we can see what you’ve got set up.

It’s certainly possible to set up the viewports so the background is transparent. This is something I set up with my own model.

You don’t by any chance have Fill turned on in Shape Style for the viewport(s) do you? That would give you the white background.

1 Like

Thank you. For some raison it did work the second time…
I don’t know what did I do wrong…it might as well have been the fill…I haven’t thought of that.

Thank you for your kind answer.

It probably was Fill. It won’t be turned on by default when you insert a SketchUp model to a LayOut project.

And you’re welcome.