Try On Render Options

From OptiTexHelpEn
Jump to: navigation, search

Contents

Render Options:

Set Images count

To specify the number of images to be rendered, aruond the model, add this tag under the root tag:
<ImagesCount>12</ImagesCount>
This will result in 12 images per rotation.
Omitting this tag will result in default of 18 images

Set dimensions

To set output image dimensions, add this tag under the root tag:
<ImageDimensions X="320" Y="900"/>
Will result in images 320X900 pixels images
Omitting this tag will result in default 800X600 images.

Set file format

To determine the images format, add this tag under the root tag:
<FileFormat>PNG</FileFormat>
This will result in PNG format images.
Omitting this tag will result in JPEG images.
Note: PNG images contain transparency information, but are ~30% larger than JPG.

Show or hide the Model

You may choose to render the cloths only, by adding this tag, under the root tag:
<HideModel/>
If not specified, the model is fully rendered with the cloths.

Multiple image dimensions

You can specify more than 1 set of dimensions (width/height in pixels). This will result in rendering each image in several size variations, according to the list is specified. e.g. Add such tag under the Render Options root element:

 <MultipleDimensionSets>
   <ImageDimensions X="320" Y="900"/>
   <ImageDimensions X="240" Y="675"/>
   <ImageDimensions X="160" Y="450"/>
 </MultipleDimensionSets>

the above example produces 3 images for each rotation angle, each in the corresponding dimensions.

Note: If you include <MultipleDimensionSets> tag, do not have <ImageDimensions> tag outside it.
Another Note: See output section below to see how the images are organized in the output XML

Enable Zoom

To enable zoomed rendering, have this under the root tag
<Zoom Levels="Zoom-Levels" LevelsInterval="Zoom-Levels-Interval" HeightPositions="Height-Positions" IncludeOriginal=[True/False]/>

  • Zoom-Levels: Determines the amount of zoom levels to render, in addition to the original view.
  • Zoom-Levels-Interval: The distance (in cm) between each view to the next zoom (distance towards the model).This parameter has an effect only if Zoom-Levels is specified with value greater than 0.

Example:
if Zoom-Levels=2 and Zoom-Levels-Interval=50, the model will be snapped from the original point of view, then the camera gets closer 50cm, and snaps again, then it gets closer 50 more cm, and snaps again.

  • Height-Positions: The amount of vertical positions from which the zoom snaps are taken. If the value is 3, for example, the model will be snapped around its top, center, and bottom parts. This parameter has an effect only if Zoom-Levels is specified with value greater than 0.
  • IncludeOriginal: if false, the original view is not rendered, but only the zoom levels.

Output XML

The simplest structure of output XML will be as followed:

<Images>
 <Image URL="..."/>
 <Image URL="..."/>
 .
 .
 .
</Images>

Where the number of 'Image' tags is equal to the ImagesCount parameter specified in the Render Options XML.

The Multiple Dimensions and Zoom features, make it a bit more complicated.

If Multiple Dimensions are specified, and provided with at least 2 sets of dimensions, the XML structure will be like:

<Images>
 <Dimensions X="..." Y="...">
  <Image URL="..."/>
  <Image URL="..."/>
  .
  .
  . 
 </Dimensions>
 <Dimensions X="..." Y="...">
  <Image URL="..."/>
  <Image URL="..."/>
  .
  .
  . 
 </Dimensions>
 . 
 .                              (may have more dimension sets
 . 
</Images>


If Zoom feature is enabled (Zoom-Levels greater or equal to 1) the output XML will have such scheme:

<Images>
 <Image URL="..."/>
 <Image URL="..."/>
 .
 .
 .
 <ZoomImages Level="1" HeightPosition="1">
  <ZoomImage URL="..."/>
  <ZoomImage URL="..."/>
  .
  .
  .
 </ZoomImages>
 <ZoomImages Level="1" HeightPosition="2">
  <ZoomImage URL="..."/>
  <ZoomImage URL="..."/>
  .
  .
  .
 </ZoomImages>
 <ZoomImages Level="..." HeightPosition="...">
  <ZoomImage URL="..."/>
  <ZoomImage URL="..."/>
  .
  .
  .
 </ZoomImages>
 .
 .
 .
</Images>

The total amount of <ZoomImages> tags is equal to number-of-zoom-levels times number-of-height-positions

If both Zoom and Multiple Dimensions features are enabled (with more than 1 dimensions set), the XML will have this structure:

<Images>
 <Dimensions X="..." Y="...">
  <Image URL="..."/>
  <Image URL="..."/>
  .
  .
  .
  <ZoomImages Level="1" HeightPosition="1">
   <ZoomImage URL="..."/>
   <ZoomImage URL="..."/>
   .
   .
   .
  </ZoomImages>
  <ZoomImages Level="1" HeightPosition="2">
   <ZoomImage URL="..."/>
   <ZoomImage URL="..."/>
   .
   .
   .
  </ZoomImages>
  <ZoomImages Level="..." HeightPosition="...">
   <ZoomImage URL="..."/>
   <ZoomImage URL="..."/>
   .
   .
   .
  </ZoomImages>
  .
  .
  .
 </Dimensions>
 <Dimensions X="..." Y="...">
      .
      .
      .
 </Dimensions>  
</Images>
Personal tools
Marker