Package javax.media.opengl

Examples of javax.media.opengl.GL.glMultMatrixd()


   

    for ( DrawShape shape: toDraw) {
      gl.glPushAttrib(GL.GL_LIGHTING_BIT);
      gl.glPushMatrix();
      gl.glMultMatrixd(shape.getTransform().toArray(), 0);

     
      if (shape.getReferenceBody().deactivated) {
        float ambientLight[] = { 1.5f, 1.5f, 2.0f, 1.0f };
        //    float diffuseLight[] = { 0.8f, 0.0f, 0.8f, 1.0f };
View Full Code Here


    glu.gluLookAt(cameraFrom.x, cameraFrom.y, cameraFrom.z,
        cameraTo.x, cameraTo.y, cameraTo.z,
        0, 1, 0);

   
    gl.glMultMatrixd(shadowProjectionMatrix(new Vector3(75,350,-75), new Vector3(0,-20 + 0.0,0), new Vector3(0,-1,0)), 0);
   
    gl.glColor3d(0.85, 0.85, 0.85);
   
    for ( DrawShape shape: toDraw) {
      gl.glPushMatrix();
View Full Code Here

   
    gl.glColor3d(0.85, 0.85, 0.85);
   
    for ( DrawShape shape: toDraw) {
      gl.glPushMatrix();
      gl.glMultMatrixd(shape.getTransform().toArray(), 0);
//      gl.glMultMatrixd(Matrix4.pack(dt.shape.getTransform()),0);


      gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL);
      Iterator<Vector3[]> i = shape.getFaces();
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.