[SOLVED] How to X-ray a node?

Hey guys,

I want a node to be visible even if it is behind other objects (like the x-ray effect in blender). Is there a way to achieve this for someone who is just a hobby programmer? :wink:

Thank you
Smire

1 Like

You can disable the depth test for this object, so it will be rendered no matter if itโ€™s supposed to be hidden.

geom.getMaterial().getAdditionalRenderState().setDepthTest(false);
3 Likes
geometry.getMaterial().getAdditionalRenderState().setDepthTest(false);

ninjaโ€™d

Nice, thank you :slight_smile:

Nice Thank you