Clickable meshes with GUI and layermasks

Hi,

Still getting my head around Babylon and JS, so I apologise in advance if this is a daft mistake.

I’m having a few issues with getting the GUI, layermasks and interactions all working together.

I’ve built out a model of data centre with a 3D and 2D Gui. Before I set up layermasks, I could click on the coloured cables to launch the GUI. I added the GUI to layermasks to render after post processes, but now I can’t click on meshes any more?

Any help would be massively appreciated!

https://hosted2.proctors.co.uk/motiondept/clickable/

Hello and welcome to the Babylon community! Your project is looking very cool already :smiley:

You actually don’t need layer masks to have the GUI not be affected by the post processes, there’s an attribute on the Layer class (layer.applyPostProcess) that can enable it to not be affected: PGDemo | Babylon.js Playground (babylonjs.com)

1 Like

Thank you so much for your help, massively appreciated! I’ve been banging me head against a wall for the past couple of days!