Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - platte

Pages: [1]
1
Support / About Object-Space, I am a bit confused
« on: March 22, 2012, 02:05:02 am »
I have used jPCT-AE for a few weeks. I am  a bit confused about object-space.I know, at OpenGL, When we rotate or translate a object, local coordinate of the object will move together. But  jPCT-AE seems  not to move object-coordinate?

2
Support / Constructor Texture(*, boolean useAlpha). useAlpha not work?
« on: March 08, 2012, 12:49:07 pm »
Hi,  I have a png with alpha. when i use constructor of Texture(Bitmap, true). But the transparent is just black. But when I set the object3D's transparent to any NO zero value. It works. Why?. My code like these:

InputStream image = mContext.getResources().openRawResource(R.raw.test);
final Texture texture = new Texture(test, true);// useAlpha NOT work no matter whar true or false
TextureManager.getInstance().addTexture(mSceneGrass, texture);
Object3D[] objs = Loader.load3DS( LoadAssets.loadf(mContext, "test.3DS"), 1f);
objs[0].setTransparency(128);//it work
objs[0].setTexture(mSceneGrass);

When I remove objs[0].setTransparency(128);
The transparent is always black.

Thanks.

Pages: [1]