Cannot crop mental ray map image clips

Article needs peer review

Symptom

After cropping a mental ray .map image clip from within the Image clip property editor, the crop effect does not appear in the rendered result (i.e. either in a render region or rendered pic).



Cause

This is not a bug per se, but a by-design situation. The point of using mental ray .map files, is that the image is in fact never loaded into SOFTIMAGE|XSI's memory (except a scaled-down version for OpenGl texture mode). Instead, mental ray memory-maps the image file and only reads the scan-lines needed during rendering. Subsequently, this method does not use as much memory during the rendering process.  If the images are large, .map files can also be used to speed up the render process.

 

Note: There must be enough available disk space to store large and/or many .map files.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>



Solution

If you decide to use .map files in your production, for best performance, speed and memory footprint, try the following recipe:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

 <o:p></o:p>

  1. Permanently crop the images in a 2D application (e.g. Adobe Photoshop or Corel draw).<o:p></o:p>
  2. Convert the cropped image results to mental ray .map format using the mental ray imf_copy standalone utility, as follows:<o:p></o:p>

 <o:p></o:p>

Example<o:p></o:p>

 <o:p></o:p>

usage: imf_copy [-v] [-p] inimage outimage [outformat [outtype]]<o:p></o:p>

 <o:p></o:p>

-v     verbose output<o:p></o:p>

-g G   gamma correction<o:p></o:p>

-p     create memory-mappable filtered image pyramid<o:p></o:p>

-e     perform error diffusion<o:p></o:p>

-L     output little-endian .map files<o:p></o:p>

-B     output big-endian .map files

 

For more information regarding Memory-Mapped textures, please consult the following sources:

 

SOFTIMAGE|XSI-Rendering document: Chapter 3, page 90.

 

SOFTIMAGE|XSI-Standalones document: Appendix A, page 18.



References

Special thanks to Luc-Eric Rousseau, Software Design Engineer at SOFTIMAGE, for the information provided in this article.



Applies To: XSI 2.0,XSI 2.0.1 on NT,Win2K,Irix

Posted: 3/6/2002


This page was last modified 09:56, 22 Nov 2005.
This page has been accessed 104847 times.