#python import k3d import testing doc = k3d.new_document() axes = doc.new_node("Axes") axes.xyplane = False material = doc.new_node("RenderManMaterial") torus = doc.new_node("Torus") torus.material = material camera = testing.create_camera(doc) render_engine = testing.create_opengl_engine(doc) camera_to_bitmap = doc.new_node("WGLCameraToBitmap") camera_to_bitmap.camera = camera camera_to_bitmap.render_engine = render_engine testing.image_comparison(doc, camera_to_bitmap.get_property("output_bitmap"), "offscreen.WGLCameraToBitmap", 0.009)
#python import testing setup = testing.setup_bitmap_reader_test("JPEGBitmapReader", "test_rgb_8.jpg") testing.image_comparison(setup.document, setup.reader.get_property("output_bitmap"), "JPEGBitmapReader", 0.09)
#python import testing setup = testing.setup_bitmap_reader_test("BitmapReader", "test_rgb_8.tif") testing.image_comparison(setup.document, setup.reader.get_property("output_bitmap"), "BitmapReader.tiff", 0)
#python import k3d import testing doc = k3d.new_document() source = doc.new_node("BitmapSolid") source.color = k3d.color(1, 1, 0) testing.image_comparison(doc, source.get_property("output_bitmap"), "BitmapSolid", 0)