[SOLVED] How to X-ray a node?


#1

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


#2

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
geometry.getMaterial().getAdditionalRenderState().setDepthTest(false);

ninja’d


#4

Nice, thank you :slight_smile:


#5

Nice Thank you