// -*- C++ -*- #ifndef RIBMTREADER_H #define RIBMTREADER_H /* Copyright 1996 * Wed Jun 17 16:31:22 1998 Brian Edward Smits (bes@phoenix.cs.utah.edu) * * RiBMTReader.H * * * * $Id: RiBMTReader.H,v 1.6 1999/10/01 18:23:02 bes Exp $ * */ #ifndef RICOMMON_H #include #endif #ifndef RIREADER_H #include #endif #ifndef RITEXTURE_H #include #endif class RiMaterialBuilder; class RiIORead; class RiIOReadBinary; /*************************************************************** CLASS RiBMTReader Reader for the Binary Model Transfer (simple binary data) format. DESCRIPTION GRAMMER Any values between !! are unsigned characters
= +
= "BMT"!v! where v is the version (as unsigned char starting at 0)
= ||||assignBRDF|
= "c"!t!eeeaaafrl where (all floats) e = eye, a = lookAt, f = fov (degrees),
r = aspect ratio, l = lens radius, and t is the type (0 only)
= "p"!t!!nn! !t! is vertexDataFormat !nn! is num vertices
= ppp|pppnnn|pppnnnuu|pppuu p = pnt coord n = normal coord u = uv coord
= "m"!t!!nnnn!!mmmm!
!nnnn! is number of vertices (norms and uvs too if present) !mmmm! is number
of tris is an array of ints (length = 3 * numTris
= "b"!nnnn!!ssss!!c!* !nnnn! is the name index (increase from zero by one
in the file) and !ssss! is the length of the material data (!c!)
= "B"!nnnn! !nnnn! is the name index (increase from zero by one in the file)
= "l"!tt!
= =
=
=
=