Is there any simple way to load floating point image (HDR or EXR) in Metal?
-
-
Thank you! I will check it. Yesterday I ended up using OpenEXR, which is not quite what I was looking for (I supposed to use no external libs).
-
Warren’s setup is a lot cleaner than mine which loads the image as NSImage, then gets CGImage and creates the texture from that. (Better in my case as I need to show the texture in the UI too, so I need the NSImage.)
-
All my experiments with loading using NSImage ended up with something like “Unable to decode” (not remember exactly). I will check your code later today, maybe I was doing something wrong
-
Yeah, I seem to do some “draw cgimage into context” intermediate step to get around that. Will post the code up.
-
Will it work for floating point? I seem to be unable to create floating point drawing context
-
Yeah, I use it to import HDRi light probes for my path tracer :)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.