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

#1
Support / Re: Combine JPCT and OpenGL ES API
July 29, 2013, 03:35:31 PM
OK, TKS.
#2
Support / Re: Combine JPCT and OpenGL ES API
July 29, 2013, 12:30:49 PM
I mean like this:
public void onSurfaceChanged(GL10 gl, int width, int height) {
    gl.glViewport(0, 0, width, height);

    // make adjustments for screen ratio
    float ratio = (float) width / height;
    gl.glMatrixMode(GL10.GL_PROJECTION);        // set matrix to projection mode
    gl.glLoadIdentity();                                        // reset the matrix to its default state
    gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7);           // apply the projection matrix   //The data will change for different device's camera.
}
So, I can't do it like this, if i use JPCT-AE?
Thank you!
#3
Support / Re: Combine JPCT and OpenGL ES API
July 29, 2013, 02:38:12 AM
Hi,
   Thank you for reply. I want to change camera PROJECTION View, but I can't find the interface from JPCT-AE.
I calibration camera for android and compute the camera matrix. Then I want to configure PROJECTION View. How can I do it in JPCT-AE?
Thank you again.
#4
Support / Combine JPCT and OpenGL ES API
July 28, 2013, 03:42:12 PM
Hi, all
    When I use JPCT API, can i also use OpenGL ES API.For examples, I want to use follow code to update PROJECTION View.
gl.glMatrixMode(GL10.GL_PROJECTION);
FloatBuffer floatBuffer = FloatBuffer.wrap(new float[]{//data......});
gl.glLoadMatrixf(floatBuffer);
It will work?
Thanks!