문제

I am doing alpha masking using rajawali library.

I have make some objects transparent using alpha masking. all objects are visible from viewing it from front but only one object is not visible from front after alpha masking it.

And one more thing that, as i rotate whole object it is visible from back.

My code for transparency is like below:

BaseObject3D abc = mObjectGroup.getChildByName("Mesh103_Group_22_5_Group17_Model");
abc.setMaterial(new SimpleMaterial(AMaterial.ALPHA_MASKING));
abc.addTexture(mTextureManager.addTexture(BitmapFactory.decodeResource(mContext.getResources(), R.drawable.img)));
abc setTransparent(true);

Please suggest.

도움이 되었습니까?

해결책

Using below code my work done.

abc.backSided(true);
abc.doubleSided(true)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top