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 - kunong

Pages: [1]
1
Support / Texture transparency problem
« on: January 31, 2013, 06:48:02 pm »
I want to set texture with transparency on my tree model but look like it has a problem when displays.

This is the tree model I want to be.
Captured from Blender.


But when I import it to jPCT-ae it seems like the display has a problem.
Here this is an image I have captured from my device.

I have created texture with Texture(..., useAlpha) constructor and called
Object3D.setTransparencyMode(Object3D.TRANSPARENCY_MODE_DEFAULT);
Object3D.setTransparency(20);


And when I didn't call setTransparency method it will show like this.


Please suggest me how can I solve this problem because I can't continue my project with this.

Thanks for your help.

2
Support / Need setTexture by texture id
« on: January 05, 2013, 01:43:15 pm »
First of all sorry if my question was existed here before.
How can I set texture of Object3D by using texture id? Because I only know that it has setTexture methods by using texture name and texture info. I think if there are many textures caching in TextureManager, it maybe slow to search a texture from texture name.
And in case of texture info, I still don't know how to get texture info from texture id.

All of these I say, I just want to increase performance of Particle System. Because I've read other topics that relating particle and I know how to render particle by changing particle texture time to time. So, if there are many particle textures, it quite drop performance when changing particle texture.

Moreover, I've read source code about particle from Robombs (Explosion.java) and I want to use it but unfortunately in jPCT-AE it doesn't have recreateTextureCoords method in Object3D.

Could you think how can I increase performance from this?
Thanks and lovely this engine.

Pages: [1]