java3d
  1. java3d
  2. JAVA3D-593

GraphicsContext3D.doReadRaster throws two NullPointerException when reading z-buffer and the source offset is buggy

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.5.2
    • Fix Version/s: not determined
    • Component/s: j3d-core
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      593

      Description

      When I'm reading the z-buffer with a Raster, a NullPointerException occurs (in
      fact, two). This is because the image raster is accessed whereas is not
      initialized, and also because we send the depthComp to the native readRaster
      function instead of the real buffer (i named it depthBuffer).

      Also the destination offset is send to the native readRaster function instead of
      source offset.

      I made a very light patch that corrects this bugs.

      The patch has to be applied in j3dcore directory with the command :

      patch -p2 < zbuffer.patch

      A program that shows the problem is on the

      1. RasterBugReport.java
        4 kB
        tanek
      2. zbuffer.patch
        2 kB
        tanek

        Activity

          People

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

            Dates

            • Created:
              Updated: