Difference between revisions of "Focal Stacks"
From Immersive Visualization Lab Wiki
(→OBJ Files) |
(→OBJ Files) |
||
Line 4: | Line 4: | ||
* Material library file needs to be specified with full path and extension, e.g.: <tt>mtllib /home/username/sio/coral-mtl.mtl</tt>. | * Material library file needs to be specified with full path and extension, e.g.: <tt>mtllib /home/username/sio/coral-mtl.mtl</tt>. | ||
− | * To use a texture image (image map) use the command <tt>usemtl</tt>, not usemap. Example: | + | * 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> | ||
newmtl coral-material | newmtl coral-material |
Revision as of 17:07, 22 May 2013
OBJ Files
Requirements for OBJ files for CalVR to display:
- Material library file needs to be specified with full path and extension, e.g.: mtllib /home/username/sio/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.