#943567 povray on m68k shows incorrect render statistics

Package:
povray
Source:
povray
Description:
Persistence of vision raytracer (3D renderer)
Submitter:
Witold Baryluk
Date:
2019-12-04 17:27:04 UTC
Severity:
normal
Tags:
#943567#5
Date:
2019-10-26 15:44:11 UTC
From:
To:
Dear Maintainer,

Hi,


I am running Debian 10, Linux 5.3, inside qemu-m68k emulating
Quadra 800 machine, with 68040 CPU.


I notice povray presenting substantially different output when run on
m68k and amd64.

The one on m68k is clearly incorrect, as also verified by running older
version of povray on real m68k hardware.

povray +A +W720 +H486 +FT +Otest.tga +Ifish13.pov

(required files in attachment)


Output on amd64:
----------------------------------------------------------------------------
Parser Statistics
----------------------------------------------------------------------------
Finite Objects:          228
Infinite Objects:          1
Light Sources:             2
Total:                   231
----------------------------------------------------------------------------
Parser Time
  Parse Time:       0 hours  0 minutes  0 seconds (0.011 seconds)
              using 1 thread(s) with 0.010 CPU-seconds total
  Bounding Time:    0 hours  0 minutes  0 seconds (0.001 seconds)
              using 1 thread(s) with 0.000 CPU-seconds total
----------------------------------------------------------------------------
Render Options
  Quality:  9
  Bounding boxes.......On   Bounding threshold: 3
  Antialiasing.........On  (Method 1, Threshold 0.300, Depth 3, Jitter 1.00,
 Gamma 2.50)
==== [Rendering...] ========================================================
Rendered 349920 of 349920 pixels (100%)
----------------------------------------------------------------------------
Render Statistics
Image Resolution 720 x 486
----------------------------------------------------------------------------
Pixels:           372618   Samples:          445419   Smpls/Pxl: 1.20
Rays:            1287504   Saved:                 8   Max Level: 5/5
----------------------------------------------------------------------------
Ray->Shape Intersection          Tests       Succeeded  Percentage
----------------------------------------------------------------------------
Box                            1275729          649352     50.90
Cone/Cylinder                   380914           52383     13.75
CSG Intersection               5067286         1382338     27.28
CSG Union                      2535552         1142472     45.06
Plane                          3907249         1420047     36.34
Quadric                        6885572         1686966     24.50
Sphere                        88931436        28973263     32.58
Clipping Object                 406989          381150     93.65
Bounding Box                 156867296        86343662     55.04
----------------------------------------------------------------------------
Shadow Ray Tests:           4257867   Succeeded:               1925783
Shadow Cache Hits:            13603
Reflected Rays:              451515   Total Internal:               33
Refracted Rays:               17767
Transmitted Rays:               185
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Render Time:
  Photon Time:      No photons
  Radiosity Time:   No radiosity
  Trace Time:       0 hours  0 minutes  0 seconds (0.663 seconds)
              using 32 thread(s) with 14.273 CPU-seconds total
POV-Ray finished




Output on m68k:
---------------------------------------------------------------------------- Parser Statistics ---------------------------------------------------------------------------- Finite Objects: 228 Infinite Objects: 1 Light Sources: 2 Total: 231 ---------------------------------------------------------------------------- Parser Time Parse Time: 0 hours 0 minutes 0 seconds (0.355 seconds) using 1 thread(s) with 0.310 CPU-seconds total Bounding Time: 0 hours 0 minutes 0 seconds (0.007 seconds) using 1 thread(s) with 0.000 CPU-seconds total ---------------------------------------------------------------------------- Render Options Quality: 9 Bounding boxes.......On Bounding threshold: 3 Antialiasing.........On (Method 1, Threshold 0.300, Depth 3, Jitter 1.00, Gamma 2.50) ==== [Rendering...] ======================================================== Rendered 349920 of 349920 pixels (100%) ---------------------------------------------------------------------------- Render Statistics Image Resolution 720 x 486 ---------------------------------------------------------------------------- Pixels: 372618 Samples: 0 Smpls/Pxl: 0.00 Rays: 372618 Saved: 0 Max Level: 1/5 ---------------------------------------------------------------------------- Ray->Shape Intersection Tests Succeeded Percentage ---------------------------------------------------------------------------- Box 190767 190767 100.00 Sphere 1538749 965816 62.77 Bounding Box 10468805 4792816 45.78 ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Render Time: Photon Time: No photons Radiosity Time: No radiosity Trace Time: 0 hours 0 minutes 20 seconds (20.861 seconds) using 4 thread(s) with 19.980 CPU-seconds total POV-Ray finished As you can see Rays, Samples and other features are completly missing. It looks like the intersection code or creation of bounding boxes is broken. I am using q800-dev branch of qemu from https://github.com/vivier/qemu-m68k Best regards, Witold