FBXLoader: Fbx Models containing .tif-format textures do not work
See original GitHub issuehey When I use an fbx model with a .tif-format texture, I find that the texture is not displayed on the browser. This raises some questions, and I hope to find answers.
-
Why wasn’t support for .tif-format textures considered? After consulting some information and related issues(#436), I learned that many browsers do not natively support .tif-format textures. By observing the source code of
ImageLoader
, I found that three.js works by displaying images throughimg
tags. Is it possible to make three.js support .tif-format by extendingImageLoader
? In fact, I made the image display by modifying theImageLoader
component, usingtiff.js
to load thetiff resource
, and using canvas to convert it topng
. -
Another problem is derived from the above problem.
FBXLoader
does not seem to provide any extensibility. Each subcomponent is directlynew
in the method. When I want to modify or extend the logic of some subcomponents, I have to put the entireFBXLoader
Taking it out for modification alone makes the modification cost very large and is not conducive to subsequent maintenance. May I ask if this is the original intention of the original design (do not want others to modify the source code) or other reasons?
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
Let’s do it 👌
If you okay with
UTIF.js
, I’ll file a PR 👍 .