Main Menu
Menu

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.

Show posts Menu

Messages - kunong

#1
Support / Texture transparency problem
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 / Re: Need setTexture by texture id
January 06, 2013, 12:37:10 PM
Never mine, I don't want to know it anymore. I'm just wonder why search with string run in O(1).

Thank you so much for your replying.
#3
Support / Re: Need setTexture by texture id
January 06, 2013, 06:03:28 AM
Thanks EgonOlsen, but I still don't understand why set texture via name runs in O(1) if I switch many textures when the time has passed.
eg. first frame for texture_01.png, second frame for texture_02.png and more by following this sequence.

What's the trick you used?
#4
Support / Need setTexture by texture id
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.