Skip to content

32bit float tif format #4

@velkyel

Description

@velkyel

hello,

i'm trying to use envtoirr.c but when i convert (imagemagic tool) your cube.tif like this:

$> convert etc/cube.tif -depth 32 -define quantum:format=floating-point cube-float.tif

cube-float.tif looks ok in osx Preview.

$> ./envtoirr -n 128 -f cube-float.tif cube-irr.tif
Spherical harmonic coefficients:
0.09265 0.08183 0.05268
-0.02050 -0.02379 -0.01875
0.01137 0.01039 0.00868
-0.00058 0.00017 0.00088
-0.01319 -0.01128 -0.01012
0.00549 0.00483 0.00035
-0.00869 -0.00703 -0.00668
-0.01011 -0.00871 -0.01014
-0.00062 -0.00123 -0.00239

this values are so low and produce almost black irradiance map. I know it's probably problem in conversion, but tif format has so many options and i don't know what could be wrong. How should look like etc/cube.tif in 32bit float format? How do you convert to this format?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions