Class SceneDump

java.lang.Object
eu.svjatoslav.sixth.e3d.headless.SceneDump

public final class SceneDump extends Object
Text dump of everything that determines what a frame looks like: shape counts, lights, camera pose, GI status. One call, one string — paste it into a bug report and the scene is reproducible.

Example:


 System.out.println(SceneDump.dump(scene, lighting, camera, gi));
 

Sample output:

 == SceneDump ==
 shapes: 214 top-level, 1892 queued for rendering
 lights: 4 (ambient #181818)
   [0] pos=(-800.0, -240.0, 0.0) color=FFD890 intensity=6.0
   ...
 camera: 290.31, -35.59, -2.10, -0.58, -0.15, -0.00
 GI: running, 152034 work items, converged
 
See Also:
  • Method Details

    • dump

      public static String dump(ShapeCollection scene, LightingManager lighting, Camera camera, GlobalIllumination gi)
      Dumps scene state to a human-readable string.
      Parameters:
      scene - the scene (may be null to skip shape counts)
      lighting - the lighting manager (may be null to skip lights)
      camera - the camera (may be null to skip the pose)
      gi - the GI system, or null when GI is not in use
      Returns:
      the dump, one fact per line