HUD is being culled

I a pretty new to jME and I am probably having pretty common teething problems.



Currently I have a HUD that will only display when there are 3D components on the screen. As soon as the 3D components are not in the frustum the HUD vanishes and reappears if the 3D components are again visible. I have included the code below:



        width = display.getWidth()/2;

        height = display.getHeight()/2;

        quad = new Quad("hud", width, height);

        quad.setRenderQueueMode(Renderer.QUEUE_ORTHO);

        quad.setLocalTranslation(new Vector3f(width/2, height/2, 0));

        light = display.getRenderer().createLightState();

        light.setEnabled(false);

        image = new HudDisplay(width, height);

        texture = new Texture();

        texture.setApply(Texture.AM_MODULATE);

        texture.setBlendColor(new ColorRGBA(1, 1, 1, 1));

        texture.setFilter(Texture.MM_LINEAR);

        texture.setImage(image);

        texture.setMipmapState(Texture.FM_LINEAR);

        tex = display.getRenderer().createTextureState();

        tex.setTexture(texture);

        tex.setEnabled(true);

        alpha = display.getRenderer().createAlphaState();

        alpha.setBlendEnabled(true);

        alpha.setTestEnabled(false);

        alpha.setEnabled(true);

        quad.setRenderState(light);

        quad.setRenderState(alpha);

        quad.setRenderState(tex);

        quad.updateRenderState();

Try to set and update a BoundingBox on your hud Quad.

Or set the CullHint to Never.

Thanks, will do that.