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

Pages: [1]
Support / Initialize OpenGL ES for PowerVR
« on: April 13, 2012, 12:36:08 pm »
Hi There,

Has anyone come across similar problem with PowerVR GPU causing a Force Close due to EGL_BAD_CONFIG?

"After eglCreateContext: EGL error: 0x3005"

I seen another member had a posting and had solved it but there was not mention of the solution in the posts.




Firstly, apologies if this is intended behaviour for some reason and I haven't picked it up from the docs.

I have been working the past week with JPCT-AE (Excellent btw) and similar to some posts in the forum am integrating with the Vuforia AR SDK.

I set the BackBuffer matrix of the camera based on the pose matrix and this works fine for rendering my world. (I use Invert3x3 on the rotation sub matrix).

However I was trying to make the light eminate from the camera by setting sun position based on camera position but I always get vector[0.0,0.0,0.0] returned from Camera.getPosition(). Camera.getDirection() seems to be updating fine based on the back buffer.

Based on my back buffer matrix the camera position and orientation seem to be correct:

My thought is perhaps when calling SetOrientation this construct the appropriate rotation matrix in the backbuffer and when calling setPosition it creates the correct translation matrix in the back buffer taking account of the rotation matrix. but perhaps there is also a position member of Camera updated during setPosition and this member isn't updated when setting the back buffer directly?

Maybe Camera could override BufferedMatrix.setBack(Matrix mat) so it could set member variable(if my assumption is correct) indicating position? Or if a performance penalty with this extra calc is likely another Camera.setBack(Matrix mat, Boolean calcPosition) function added to the camera class?

Thank You For your time,


Pages: [1]