Skip to content

FreeImage 96bpp to 128bpp conversion clamps value #209

@philcn

Description

@philcn

When loading a 3-channel exr or hdr file, the FreeImage function that converts the bitmap to 4-channel has a bug where it clamps the color value to 0-1. This is verified by both looking at FreeImage source code, and printing out the bitmap values after loading a 3-channel exr. (The hdr files used by HDRToneMapping sample are such examples).

Relevant code: https://github.com/NVIDIAGameWorks/Falcor/blob/master/Framework/Source/Utils/Bitmap.cpp#L147

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions