Opened 5 years ago
Last modified 5 years ago
#3656 assigned enhancement
Make OBJ reader handle ".mtl" material files using colors and textures
Reported by: | Tom Goddard | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Input/Output | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
Would be interesting to be able to open OBJ files with textures on them. The reader currently reads the texture coordinates. The image, usually a PNG, is specified in the .mtl file and that file is reference in the OBJ file with a line line "mtllib mymaterial.mtl", and there are "usemtl somemat" in the OBJ saying which material defined in the .mtl file the next object should use.
Example files can be obtained from SketchFab.
Change History (2)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
These capabilities might be useful for creating models for the NIH 3D model archive.
Note:
See TracTickets
for help on using tickets.
It would also be useful to write out material .mtl files and texture images computed from per-vertex colors. Those images are already made by the "color image" command.