I’m trying to implement 32 bit float as a feature for Principled Baker.
Right after baking the image properties says: “Image: size _ x _, RGB float”
But the saved image is always just 8 bit. Reloading the image (bpy.ops.image.reload()) shows the image properties as: “Image: size _ x _, RGB byte”
What am I missing?
The test scene is simple: just a cube with a material with an Emission node
This is the test code:
import bpy
mat_node_tree = bpy.context.active_object.material_slots['Material'].material.node_tree
image = bpy.data.images.new(name="test.tif", width=256, height=256, float_buffer=True)
image.filepath = "//test.tif"
image.file_format = 'TIFF'
image_node = mat_node_tree.nodes.new(type="ShaderNodeTexImage")
image_node.image = image
image_node.select = True
mat_node_tree.nodes.active = image_node
bpy.ops.object.bake(type='EMIT')
image.save()
should mentioning: I’m testing with Blender 2.80 beta