Difference between revisions of "Focal Stacks"
From Immersive Visualization Lab Wiki
(→OBJ Files) |
(→OBJ Files) |
||
Line 3: | Line 3: | ||
Requirements for OBJ files for CalVR to display: | Requirements for OBJ files for CalVR to display: | ||
− | * Material library file needs to be specified with | + | * Material library file needs to be specified with extension, e.g.: <tt>mtllib coral-mtl.mtl</tt>. |
* To use a texture image (image map) use the command <tt>usemtl</tt>, not <tt>usemap</tt>. Example: <tt>usemtl coral-material</tt>. This is for material file coral-mtl.mtl, which has the following content: | * To use a texture image (image map) use the command <tt>usemtl</tt>, not <tt>usemap</tt>. Example: <tt>usemtl coral-material</tt>. This is for material file coral-mtl.mtl, which has the following content: | ||
<pre> | <pre> |
Revision as of 17:11, 22 May 2013
OBJ Files
Requirements for OBJ files for CalVR to display:
- Material library file needs to be specified with extension, e.g.: mtllib coral-mtl.mtl.
- To use a texture image (image map) use the command usemtl, not usemap. Example: usemtl coral-material. This is for material file coral-mtl.mtl, which has the following content:
newmtl coral-material map_Kd coral-map.jpg
- The image referenced by the material file in this example is coral-map.jpg.