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]
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:

java.lang.ArrayIndexOutOfBoundsException
at com.threed.jpct.CompiledInstance.fill(CompiledInstance.java:1017)
at com.threed.jpct.Object3DCompiler.compile(Object3DCompiler.java:145)
at com.threed.jpct.World.compile(World.java:1911)
at com.threed.jpct.World.renderScene(World.java:1035)

The full code that triggers this crash is the following:

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

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

java.lang.OutOfMemoryError
at com.threed.jpct.GLRenderer.convertTexture(GLRenderer.java:845)
at com.threed.jpct.GLRenderer.setTextures(GLRenderer.java:2270)
at com.threed.jpct.GLRenderer.drawVertexArray(GLRenderer.java:2195)
at com.threed.jpct.World.draw(World.java:1307)
at com.threed.jpct.World.draw(World.java:1074)
at com.threed.jpct.util.SkyBox.render(SkyBox.java:201)
at com.example.MyRenderer.onDrawFrame(MyRenderer.java:254)

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

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

4
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!

5
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.

6
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: http://www.jpct.net/wiki/index.php/Using_the_emulator 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.

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

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]