AlphaState Issues

I have a Sphere and I want that sphere to be translucent but for some reason when I look at it at an angle that I should see the skybox behind it, the sphere is completely solid.  I can see other objects through it, just the skybox is causing strangeness.



My code:

        AlphaState as = DisplaySystem.getDisplaySystem().getRenderer().createAlphaState();
        as.setBlendEnabled(true);
        as.setSrcFunction(AlphaState.SB_SRC_ALPHA);
        as.setDstFunction(AlphaState.DB_ONE);
        s.setRenderState(as);
        s.updateRenderState();



darkfrog

Sounds like a RenderQueue issue. However I assume your transparant sphere has QUEUE_TRANSPARENT set…?

It is now…  :roll:



Thanks buddy, that did the trick. :wink:



darkfrog