英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论