| 1 |
'\"macro stdmacro |
| 2 |
.TH ivfix 1 |
| 3 |
.SH NAME |
| 4 |
ivfix \- restructures an Inventor object for improved rendering performance |
| 5 |
.SH SYNOPSIS |
| 6 |
.B ivfix |
| 7 |
[ |
| 8 |
.B \-ahntvV |
| 9 |
] |
| 10 |
[ |
| 11 |
.B \-d |
| 12 |
dir ] [infile] [outfile] |
| 13 |
.SH DESCRIPTION |
| 14 |
.I ivfix |
| 15 |
reads an Inventor object and restructures it |
| 16 |
to improve the object's rendering performance. |
| 17 |
.I ivfix |
| 18 |
processes the scene graph in two phases: |
| 19 |
.TP |
| 20 |
Phase 1) |
| 21 |
.br |
| 22 |
Analyzes the organization of the input scene graph, and tries to sort it |
| 23 |
a better way to take advantage of coherence. For example, it tries to organize |
| 24 |
subgraphs by common textures, since switching textures is expensive. |
| 25 |
Once sorted, it also tries to combine subgraphs so that the final |
| 26 |
result has fewer nodes. |
| 27 |
.TP |
| 28 |
Phase 2) |
| 29 |
.br |
| 30 |
"Flattens" the subgraphs that result from the first phase. |
| 31 |
This tessellates all shapes into triangles |
| 32 |
that are then organized into triangle strips. |
| 33 |
For example, two spheres may be combined into one triangle strip. |
| 34 |
.PP |
| 35 |
.B Warning! |
| 36 |
.I ivfix |
| 37 |
does not try to preserve any non-appearance attributes, such as |
| 38 |
names. It will also remove most engines, animation nodes, and |
| 39 |
field-to-field connections. |
| 40 |
.I ivfix |
| 41 |
is best run on individual objects, not on entire scenes. |
| 42 |
When rendered, the output object will be equivalent to the |
| 43 |
original file, but much of the object hierarchy will be lost. |
| 44 |
.PP |
| 45 |
Note also that the output file may be larger than the input file. |
| 46 |
For example, a sphere node will be converted into triangle strips. |
| 47 |
.PP |
| 48 |
The following command line options are allowed: |
| 49 |
.TP 5 |
| 50 |
.B \-a |
| 51 |
Write an ASCII file. The output file is binary by default. |
| 52 |
.TP 5 |
| 53 |
.B \-d dir |
| 54 |
Add |
| 55 |
.I dir |
| 56 |
to the list of directories to search, e.g. for file nodes. |
| 57 |
.TP 5 |
| 58 |
.B \-h |
| 59 |
Print the usage message. |
| 60 |
.TP 5 |
| 61 |
.B \-n |
| 62 |
Do not generate any normals. |
| 63 |
.TP 5 |
| 64 |
.B \-p |
| 65 |
ivfix usually tries to define properties as SoVertexProperty nodes. |
| 66 |
This option prevents that. |
| 67 |
.TP 5 |
| 68 |
.B \-t |
| 69 |
Do not generate any texture coordinates. |
| 70 |
.TP 5 |
| 71 |
.B \-v |
| 72 |
(Verbose) Display status information during processing. |
| 73 |
.TP 5 |
| 74 |
.B \-V |
| 75 |
(Very verbose) Display more detailed status information. |
| 76 |
.SH SOURCE CODE |
| 77 |
Note that the source code to |
| 78 |
.I ivfix |
| 79 |
comes with the |
| 80 |
.I Open Inventor 3d Toolkit. |
| 81 |
.SH FILES |
| 82 |
/usr/share/data/models/* - Sample 3D data files |
| 83 |
/usr/share/src/Inventor/tools/ivfix/* - Source to ivfix |
| 84 |
.SH EXAMPLES |
| 85 |
.IP |
| 86 |
.B ivfix < slowObject.iv > quickObject.iv |
| 87 |
.SH SEE ALSO |
| 88 |
inventor, ivview, ivcat, ivinfo, SceneViewer, gview, |
| 89 |
drop, maze, noodle, revo, showcase, textomatic |
| 90 |
.SH KNOWN BUGS |
| 91 |
Ignore flags are not properly handled. |
| 92 |
|