Dear all,
I have an image of a person. when I create it, I simply cut the person and insert it in to a transparent background. Now person is in the image and its surrounding is transparent. I converted it to 3D Sprite object. But when I render it to my 3D world, its transparent background is also rendered with shading color around (kind of deformation).
here is the code sample:
Image2D texImage = null;
Appearance myAppearance = new Appearance();
texImage = (Image2D) Loader.load("/GameWorld/Umpire/umpair back .png")[0];
sprite = new Sprite3D(true, texImage, myAppearance);
sprite.setCrop(0, 0, 64, 128);
sprite.setTranslation(-0.6f, 0.65f, 0.0f);
sprite.setScale(0.6f, 1.2f, 0f);
sprite.setOrientation(90, 0f, 0.1f, 0f);
sprite.postRotate(-270, 0.1f, 0f, 0f);
groundWorld.addChild(sprite);
I render the world in my game loop. But when I draw it as a sprite on top of a another image, transparency is there. What should I do? Pls help.
