Examples of perspective()


Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

    }

    @Override
    protected void reshape(int w, int h) {
        MatrixStack persMatrix = new MatrixStack();
        persMatrix.perspective( 45.0f, (w / (float) h), zNear, zFar );

        ProjectionBlock projData = new ProjectionBlock();
        projData.cameraToClipMatrix = persMatrix.top();

        glBindBuffer( GL_UNIFORM_BUFFER, projectionUniformBuffer );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

        Vec2 displaySize = new Vec2( displayWidth / 2, displayHeight );

        {
            MatrixStack persMatrix = new MatrixStack();
            persMatrix.perspective( 60.0f, displaySize.x / displaySize.y, zNear, zFar );

            ProjectionBlock projData = new ProjectionBlock();
            projData.cameraToClipMatrix = persMatrix.top();

            glBindBuffer( GL_UNIFORM_BUFFER, projectionUniformBuffer );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

        }

        {
            MatrixStack persMatrix = new MatrixStack();
            persMatrix.applyMatrix( new Mat4( new Mat3( persViewPole.calcMatrix() ) ) );
            persMatrix.perspective( 60.0f, displaySize.x / displaySize.y, zNear, zFar );

            ProjectionBlock projData = new ProjectionBlock();
            projData.cameraToClipMatrix = persMatrix.top();

            glBindBuffer( GL_UNIFORM_BUFFER, projectionUniformBuffer );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

    }

    @Override
    protected void reshape(int w, int h) {
        MatrixStack persMatrix = new MatrixStack();
        persMatrix.perspective( 90.0f, (w / (float) h), zNear, zFar );

        ProjectionBlock projData = new ProjectionBlock();
        projData.cameraToClipMatrix = persMatrix.top();

        glBindBuffer( GL_UNIFORM_BUFFER, projectionUniformBuffer );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

    }

    @Override
    protected void reshape(int w, int h) {
        MatrixStack persMatrix = new MatrixStack();
        persMatrix.perspective( 45.0f, (w / (float) h), zNear, zFar );

        ProjectionBlock projData = new ProjectionBlock();
        projData.cameraToClipMatrix = persMatrix.top();

        glBindBuffer( GL_UNIFORM_BUFFER, projectionUniformBuffer );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

    }

    @Override
    protected void reshape(int w, int h) {
        MatrixStack persMatrix = new MatrixStack();
        persMatrix.perspective( 45.0f, (w / (float) h), zNear, zFar );

        ProjectionBlock projData = new ProjectionBlock();
        projData.cameraToClipMatrix = persMatrix.top();

        glBindBuffer( GL_UNIFORM_BUFFER, projectionUniformBuffer );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

    }

    @Override
    protected void reshape(int w, int h) {
        MatrixStack persMatrix = new MatrixStack();
        persMatrix.perspective( 45.0f, (w / (float) h), zNear, zFar );

        glUseProgram( uniformColor.theProgram );
        glUniformMatrix4( uniformColor.cameraToClipMatrixUnif, false,
                persMatrix.top().fillAndFlipBuffer( mat4Buffer ) );
        glUseProgram( objectColor.theProgram );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

    }

    @Override
    protected void reshape(int w, int h) {
        MatrixStack persMatrix = new MatrixStack();
        persMatrix.perspective( 45.0f, (w / (float) h), zNear, zFar );

        ProjectionBlock projData = new ProjectionBlock();
        projData.cameraToClipMatrix = persMatrix.top();

        glBindBuffer( GL_UNIFORM_BUFFER, projectionUniformBuffer );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

        nodes.get( 3 ).nodeSetOrient( Quaternion.mul( spinBarOrient, Glm.rotate( new Quaternion( 1.0f ),
                360.0f * timer.getAlpha(), new Vec3( 0.0f, 0.0f, 1.0f ) ) ) );

        {
            MatrixStack persMatrix = new MatrixStack();
            persMatrix.perspective( 60.0f, displayWidth / (float) displayHeight, zNear, zFar );

            ProjectionBlock projData = new ProjectionBlock();
            projData.cameraToClipMatrix = persMatrix.top();

            glBindBuffer( GL_UNIFORM_BUFFER, projectionUniformBuffer );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.perspective()

            // Texture-space transform
            lightProjStack.translate( 0.5f, 0.5f, 0.0f );
            lightProjStack.scale( 0.5f, 0.5f, 1.0f );

            // Project. Z-range is irrelevant.
            lightProjStack.perspective( lightFOVs[currFOVIndex], 1.0f, 1.0f, 100.0f );

            // Transform from main camera space to light camera space.
            lightProjStack.applyMatrix( lightView );
            lightProjStack.applyMatrix( Glm.inverse( cameraMatrix ) );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.