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

Pages: 1 2 [3] 4
Bones / Different meshes with same skeleton
« on: March 31, 2014, 03:26:59 am »

I have different 3d models that have the same animation. Is it doable if the skeleton is shared among all the meshes? Can it be achieved by linked-duplicating the skeleton and adjust the vertex group to the same bones in Blender? I'm building an Android app and I need to save as much memory and processing power as possible. Thanks.

Support / mergeObjects drawcall
« on: October 24, 2013, 02:51:52 pm »
Hi Egon,

Does mergeObjects() reduce drawcalls? If 10 objects are merged into one, is there going to be one drawcall or 10 drawcalls?

Support / Mipmap black texture
« on: October 24, 2013, 02:12:34 pm »
Hi Egon,

I turned mipmap on for 256x128 texture and it turned out a black texture. If mipmap is disabled, the texture is fine. Mipmap also works fine  on 512x512 texture. Any idea what happened exactly?

Support / Tiling in texture atlas
« on: October 18, 2013, 06:06:10 pm »
Hi egon, does JPCT-AE support texture atlas, in API level? Im trying it in Blender, but it seems a lot harder, especially tiling in texture atlas (some suggested to edit uv map by hand till all faces are repeating accordingly, which i think it would take ages to do it). If not supported, do I do it in shader, or some uv trick in Blender? Wish to listen to your advice.

Support / Multiple texture UV mappings from 3ds file
« on: October 09, 2013, 03:20:31 pm »
I got a 3ds model made from Blender with multiple textures and different UV mapping for each texture. Does JPCT-AE support multiple UV mappings when loading 3ds file? I tried loading the 3ds model but both textures from the model uses the first texture UV map.

Support / Screen flicker at the beginning of rendering
« on: September 30, 2013, 03:30:21 pm »
Hi I tried to draw a square with TextureInfo (2 textures), but it causes flickering for unknown reason. The second texture is in Mode_Blend. When the rendering started, it flickered once (the screen turns into frame buffer background color), then rendering got back to normal state. If I don't add the second texture, it doesn't cause the flickering. Method "preWarm" has been tried, but it looked the same too. Any idea what is going on there? (the square object is at -45z, the rest of objects are in 0z, and camera is at -50z)

Projects / [3D Live Wallpaper] Tap Leaves Free using JPCT-AE
« on: July 24, 2013, 10:30:04 am »

Emerge yourself into a beautiful and calm natural forest with high definition leaves and interactive forest life, along with striking sunshine that blisters the forest. The combination of sunlight and shades, together with animated leaves swaying along with the mild wind, creates a magnificent scene that you would never forget.

Tap Leaves is a whole new live wallpaper to mimic real life animation. With a tap of finger, forest leaves in Tap Leaves imitate actual leaf movement and bounce in silky smooth animation, in 3D. Tap Leaves also features real life lighting effect, interactive forest life such as fireflies that glow in the dark, butterflies that flutter away when you tap on the leaves they rest on and many more.

Tap Leaves is fully customized in full version:
- Auto change day according to your device's time.
- Few leaf types to be customized.
- Different time shows different forest life.
- Glowing fireflies that light up the forest.
- More butterfly types to customize.
- Different seasons to be chosen.
- and many more...

Download Tap Leaves Free from Google Play Store

Tap Leaves Demo on YouTube

Support / child transformation before and after addParent
« on: June 13, 2013, 10:40:31 am »
Hi Egon,

How do we keep the current object world transformation after calling addParent()?

1. A butterfly flies toward a leaf
2. Butterfly stops at leaf
3. Butterfly addParent(leaf)
4. The butterfly follows the leaf tranformation right at where it stops.

I'd checked this,2011.0.html, but the post mentions about removing parent only.

Support / Set 3ds rotation pivot from Blender for JPCT use
« on: June 04, 2013, 05:26:01 pm »
Hi all,

Does anyone know how to set rotation pivot in Blender and export 3ds for JPCT use? I tried setting pivot to 3D cursor (the rotation point I want) and origin to 3D cursor, but JPCT can't detect it.

Support / SetTransparency in float
« on: June 02, 2013, 04:48:08 pm »
Hi Egon,

Could you make the setTransparency() to accept float value, please? I need it for smoother transparency animation.


Support / Strange looking preference activity in livewallpaper
« on: May 28, 2013, 04:45:58 am »

Does anyone have the strange looking preference activity in android before? The fonts in preference activity becomes square after some settings have been made there.

Step to reproduce:
1. Load texture and add objects to world
2. In preference activity, if the feature is unchecked by user, unload texture immediately and remove objects from world.
3. Go back to livewallpaper preview.
4. Goto the preference activity again. It shows square font (font is in english, no other language), and no errors from JPCT-AE log.

However, if I don't unload the texture and only remove objects from world, it doesn't cause the error.

[attachment deleted by admin]

Support / Black texture loading .3ds model
« on: May 05, 2013, 05:25:05 pm »
Hi Egon,

When I tried to load 3ds model into jpct-ae, it showed the 3D object with black texture. Did I miss something? I did exactly like in JPCT wiki tutorial. I'm using Blender 2.66a to export the 3ds. If I call calcTextureWrapSpherical(), the texture shows. Unfortunately, I want it to follow the texture mapping in 3ds instead of jpct texture wrapping.

Code: [Select]
try {
Object3D obj = load3DSModel(context.getAssets().open("monkey.3ds"), 20);
} catch (IOException e) {
Log.e("kkl", "Error reading 3ds", e);

private Object3D load3DSModel(InputStream is, float scale) {
Object3D[] model = Loader.load3DS(is, scale);
Object3D o3d = new Object3D(0);
Object3D temp = null;
for (int i = 0; i < model.length; i++) {
temp = model[i];
temp.rotateX((float) (-.5 * Math.PI));
temp.setRotationMatrix(new Matrix());
o3d = Object3D.mergeObjects(o3d, temp);;
return o3d;

Code: [Select]
05-05 23:23:04.348: I/jPCT-AE(15498): Loading file from InputStream
05-05 23:23:04.348: I/jPCT-AE(15498): Expanding buffers...16384 bytes
05-05 23:23:04.348: I/jPCT-AE(15498): File from InputStream loaded...16026 bytes
05-05 23:23:04.348: I/jPCT-AE(15498): Processing new material leafmat!
05-05 23:23:04.353: I/jPCT-AE(15498): Processing object from 3DS-file: Suzanne
05-05 23:23:04.418: I/jPCT-AE(15498): Object 'Suzanne_jPCT0' created using 968 polygons and 505 vertices.
05-05 23:23:04.468: I/jPCT-AE(15498): Normal vectors calculated in 37ms!
05-05 23:23:04.468: I/jPCT-AE(15498): Memory usage before compacting: 19105 KB used out of 19783 KB. Max. memory available to the VM is 49152 KB.
05-05 23:23:04.683: I/jPCT-AE(15498): Memory usage after compacting: 14468 KB used out of 19783 KB. Max. memory available to the VM is 49152 KB.
05-05 23:23:04.763: I/jPCT-AE(15498): Subobject of object 2/monkey compiled to indexed fixed point data using 2904/505 vertices in 55ms!
05-05 23:23:04.763: I/jPCT-AE(15498): Object 2/monkey compiled to 0 subobjects in 77ms!

Support / Error in live wallpaper
« on: April 29, 2013, 06:27:12 pm »
Hi Egon, I got strange error after I viewed my live wallpaper in live wallpaper settings. It seems like some objects are bound statically. After disposing frame and world (after quiting the settings), the running live wallpaper received an error like the following.

Code: [Select]
04-30 00:07:20.167: E/AndroidRuntime(13968): FATAL EXCEPTION: GLThread 31292
04-30 00:07:20.167: E/AndroidRuntime(13968): java.lang.NullPointerException
04-30 00:07:20.167: E/AndroidRuntime(13968): at com.threed.jpct.GLRenderer.drawVertexArray(
04-30 00:07:20.167: E/AndroidRuntime(13968): at com.threed.jpct.World.draw(
04-30 00:07:20.167: E/AndroidRuntime(13968): at com.threed.jpct.World.draw(
04-30 00:07:20.167: E/AndroidRuntime(13968): at com.kision.firefliesforest.MainRenderer.draw(
04-30 00:07:20.167: E/AndroidRuntime(13968): at com.kision.firefliesforest.BasicRenderer.onDrawFrame(
04-30 00:07:20.167: E/AndroidRuntime(13968): at
04-30 00:07:20.167: E/AndroidRuntime(13968): at

Steps to reproduce:
1. Set my live wallpaper to phone.
2. Goto Live Wallpaper settings (the place where you select your live wallpaper), view the preview of my live wallpaper.
3. Quit the preview and then Live Wallpaper settings.
4. When screen goes back to home screen, the running live wallpaper in phone receives error.

Is it a bug or I did it wrong? Are JPCT objects created and disposed statically? 

Support / Emissive light
« on: April 23, 2013, 10:45:41 am »
Hi Egon,

Does JPCT have emissive light? as in light inside object, like this one; the last column of the spheres

Support / FrameBuffer resize
« on: February 05, 2013, 04:48:18 pm »
Hi I'm trying to resize the framebuffer from (800, 600) to (360, 600), but any object located outside of (360, 600) bound is clipped. Is it possible to resize the framebuffer while objects are still displayed beyond the resized bound?

Pages: 1 2 [3] 4