Difference between revisions of "Focal Stacks"
From Immersive Visualization Lab Wiki
(New page: ==OBJ Files== Requirements for OBJ files for CalVR to display: * Material library file needs to be specified with full path and extension, e.g.: <tt>mtllib /home/jschulze/sio/coral-mtl.m...) |
(→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 full path and extension, e.g.: <tt>mtllib /home/ | + | * 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: usemtl <tt>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 usemap. Example: usemtl <tt>coral-material</tt>. This is for material file coral-mtl.mtl, which has the following content: | ||
<pre> | <pre> |
Revision as of 19:40, 18 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.