Search code examples
graphicsraytracing.obj

What types of geometry definition file format is best used with ray tracing to include the type of material


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?


Solution

  • you might want to check mtl-files. Haven't (yet) used it myself though ;)

    http://people.sc.fsu.edu/~jburkardt/data/mtl/mtl.html

    and

    http://people.sc.fsu.edu/~jburkardt/data/obj/obj.html

    Cheers