Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: current
    • Fix Version/s: not determined
    • Component/s: j3d-core
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      626

      Description

      If I do :
      GL gl = getGL();
      printmatrix();
      System.out.println("scale -> " + Scale);
      gl.glScaled(Scale.getX(), Scale.getY(), Scale.getZ());
      printmatrix();
      System.out.println("trans -> " + Translation);
      gl.glTranslated(Translation.getX(), Translation.getY(), Translation.getZ());
      printmatrix();
      With big values for scale ans Translation (up to 10e38,ie max_float) I get a lot
      of NaN in the matrix.
      Does JoGL use float instead of double for the Modelview/Projection matrix ?

      PS : (output of the code below)
      GL_MODELVIEW :
      _________________________________

      0.75 0.0 0.0 0.0
      0.0 0.75 0.0 0.0
      0.0 0.0 1.0 0.0
      0.125 0.125 0.0 1.0

      ---------------------------------
      scale -> 0.25, 2.5000000000000003E-46, 0.5
      GL_MODELVIEW
      _________________________________

      0.1875 0.0 0.0 0.0
      0.0 0.0* 0.0 0.0
      0.0 0.0 0.5 0.0
      0.125 0.125 0.0 1.0

      ---------------------------------
      0.0* here we have 0.0 instead of 1.875E-46
      trans -> -1.0, -1.0E45, -1.0
      GL_MODELVIEW
      _________________________________

      0.1875 0.0 0.0 0.0
      0.0 0.0 0.0 0.0
      0.0 0.0 0.5 0.0
      NaN NaN NaN NaN

      ---------------------------------
      here we have to mush NaN

        Activity

        Hide
        aces added a comment -

        Hi

        This is Java3D Issue database, not JOGL.
        Please post it on JoGL forum. The experts over there can help you.

        Show
        aces added a comment - Hi This is Java3D Issue database, not JOGL. Please post it on JoGL forum. The experts over there can help you.

          People

          • Assignee:
            java3d-issues
            Reporter:
            orace
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: