Color/texture embeded in an .obj file #840
-
Good afternoon vsg community, I was loading obj files into my custom viewer, but the color associated with the obj file is not rendered. Is this a default that I can change by tweaking the vsg::Options instance or it is impossible to extract this information from the vsg::read call because that is the desired behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
.obj files are currently loaded by the vsgXchange:assimp loader . You can list the available options by using vsgconv --features i.e.
The relevant part is:
There isn't any option listed for colours so I expect what you are seeing is simply a mapping of what vsgXchange::assimp is doing with what assimp provides from loading the .obj. The discrepancy could be due to vsgXchange::assimp or assimp, or perhaps just an oddity in the .obj file you have. As general note, .obj is a very very very old format, is really isn't a good interchange format, so I'd recommend seeing if you can load your data via a more modern and capable format such as .gltf. |
Beta Was this translation helpful? Give feedback.
.obj files are currently loaded by the vsgXchange:assimp loader . You can list the available options by using vsgconv --features i.e.
$ vsgconv --features vsgXchange::assimp
The relevant part is:
There isn't any option listed for colours so I expect what you are seeing is simply a mapping of what vsgXchange::assimp is doing with what assimp provides from loading the .obj. The discrepancy could be due to vsgXchange::assimp or assimp, or perhaps just an od…