Fabric JS支持.hdr图像格式吗?

huangapple go评论48阅读模式
英文:

Does Fabric JS support .hdr image formats?

问题

我需要使用".hdr"图像来素描、绘制以及在其上执行基本功能。并想知道fabric js是否支持.hdr文件格式?我找不到任何有用的信息。任何帮助都将不胜感激。

英文:

I need to use ".hdr" images to sketch and draw and do such basic features on top of them. And wanted to know if fabric js will support the .hdr file format ? I could not find anything useful. Any help is appreciated.

答案1

得分: 0

这是我做的,因为我找不到有用的东西。我使用了Three.js和RGBELoader来处理.hdr文件。这个链接提供了一个很好的起点:https://discourse.threejs.org/t/gltfloader-and-rgbeloader-adding-hdr-texture-to-enviroment/36086。至于绘图功能,我计划获取画布上下文,然后将其传递给Fabric.js,在其上进行绘图。

英文:

Here is what I did as I could not find anything useful. I used Three js with the RGBELoader to handle the .hdr files. This gives a good starting point https://discourse.threejs.org/t/gltfloader-and-rgbeloader-adding-hdr-texture-to-enviroment/36086. And for the sketching features, I plan to take the canvas context and pass that to the fabric js and do the sketchings on top of that.

huangapple
  • 本文由 发表于 2023年7月24日 15:55:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/76752404.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定