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

Pages: [1]
Support / ArrayIndexOutOfBoundsException in World.renderScene()
« on: October 28, 2012, 11:57:38 pm »
Hi there, I got this report today from a couple of users. Stacktrace follows:

at com.threed.jpct.CompiledInstance.fill(
at com.threed.jpct.Object3DCompiler.compile(
at com.threed.jpct.World.compile(
at com.threed.jpct.World.renderScene(

The full code that triggers this crash is the following:

mSkyBox.render(mWorld, mFrameBuffer);
mWorld.renderScene(mFrameBuffer);    <----- This is the culprit

Support / SkyBox Out Of Memory Error
« on: October 24, 2012, 11:13:05 am »
Any idea why this happens ?

at com.threed.jpct.GLRenderer.convertTexture(
at com.threed.jpct.GLRenderer.setTextures(
at com.threed.jpct.GLRenderer.drawVertexArray(
at com.threed.jpct.World.draw(
at com.threed.jpct.World.draw(
at com.threed.jpct.util.SkyBox.render(
at com.example.MyRenderer.onDrawFrame(

It happened to a single user out of 300 who have installed the application.

Support / Fake volumetric lights
« on: October 11, 2012, 01:20:46 am »
Is this doable in JPCT-AE ?

Support / Memory usage growing
« on: October 02, 2012, 06:59:28 pm »
Hi there,

In my wallpaper, the user can choose what mesh (Object3D loaded from .obj)  to use in the preferences, and what skybox textures to use for the background. I'm changing both things in onSurfaceChanged() and it seems the memory usage grows up every time the wallpaper is restarted (with an orientation change for example).

I'm calling the dispose() method of the Framebuffer, World, and SkyBox (don't know if other classes also have this method) classes when the surface is destroyed. Also, when I replaceTexture() I previously call unloadTexture(), but all theses things don't keep the memory usage from growing. I've even tried to call the flush() method of the TextureManager class when the surface is destroyed, but again, the memory usage keeps growing. Forcing the garbage collector to run doesn't free up any memory, so I think the memory is referenced somewhere, but not in my code, because I null all the references onSurfaceDestroyed()....

What else should I do ?

Thank you!

Support / Screen orientation and camera
« on: September 25, 2012, 07:15:47 pm »
Hi there,

How do I make the scene look the same in both portrait and landscape orientation ? If I setup my scene in portrait mode, when I switch to landscape, the objects don't fit the screen and look bigger, as if the camera position was changed. In the other 3d engine I'm using (Rajawali), the scene looks the same in both landscape and portrait mode.

Thank you.

Support / GLES 2.0 and the emulator
« on: September 22, 2012, 12:04:46 pm »
Hi there,

Just to let you know that OpenGL ES 2.0 works on the emulator even if it reports it doesn't.

Please fix this: or let me know how to fix it.

EDIT: Forgot to say you need an Android 4.0.3+ virtual device and set the "GPU" emulation flag to true when creating it, or pass the "-gpu on" command line parameter when running the emulator from the command line.

Thank you.

Support / Easy way to apply a normal map ?
« on: April 18, 2012, 02:49:07 am »

I would like to know if there is any easy way to apply a normal map texture without using GLSL, as I have no idea how it works, and don't really have the time right now to learn another language...

Thank you.

Pages: [1]