Difference between revisions of "Focal Stacks"

From Immersive Visualization Lab Wiki
Jump to: navigation, search
(OBJ Files)
(OBJ Files)
Line 10: Line 10:
 
</pre>
 
</pre>
 
* The image referenced by the material file in this example is <tt>coral-map.jpg</tt>.
 
* The image referenced by the material file in this example is <tt>coral-map.jpg</tt>.
 +
* The referenced image may be upside down. To remedy this use the following ImageMagick command:
 +
<pre>
 +
  convert sourceimage.jpg -flip destimage.jpg
 +
</pre>

Revision as of 18:14, 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.
  • The referenced image may be upside down. To remedy this use the following ImageMagick command:
  convert sourceimage.jpg -flip destimage.jpg