光线追踪最适合使用什么类型的几何定义文件格式来包含材质的类型
问题描述:
我想使用 .obj
格式,但我注意到它没有表示材质的类型,即不透明,透明,反射。是否有一种通用的文件格式也包含这些信息,或者我应该只使用已知的 .obj
格式并进行更改,以便它包含该信息?
I wanted to use .obj
format, but I noticed that it doesn't have representation for the type of material, i.e. opaque, transparent, reflective. Is there a common file format that includes that information as well, or should I just take the known .obj
format and change it so that it'll include that info?
答
您可能需要检查mtl文件。尽管如此,我还没有使用过它;)
you might want to check mtl-files. Haven't (yet) used it myself though ;)
http://people.sc.fsu.edu/~jburkardt/data/mtl/mtl.html
和
http://people.sc.fsu.edu/~jburkardt/data/obj/obj.html
干杯