| 19 |
|
][ |
| 20 |
|
.B "-c epsilon" |
| 21 |
|
][ |
| 22 |
+ |
.B +T |
| 23 |
+ |
][ |
| 24 |
|
.B "-x 'xf spec'" |
| 25 |
|
] |
| 26 |
|
[ |
| 37 |
|
If |
| 38 |
|
.I -r |
| 39 |
|
is given, a modified .OBJ file will be sent to the standard output. |
| 40 |
< |
This is the default, and is |
| 41 |
< |
typically more useful, since surface normals are better handled by the |
| 42 |
< |
.I obj2rad(1) |
| 43 |
< |
and |
| 42 |
< |
.I obj2mesh(1) |
| 43 |
< |
converters. |
| 44 |
< |
The latter also preserves local texture coordinates for mapping materials. |
| 40 |
> |
This is the default, and is more useful for preserving |
| 41 |
> |
texture coordinates if directed to |
| 42 |
> |
.I obj2mesh(1). |
| 43 |
> |
.PP |
| 44 |
|
The |
| 45 |
|
.I +v |
| 46 |
|
option turns on verbose progress reports. |
| 74 |
|
and |
| 75 |
|
.I \+m |
| 76 |
|
options are mutually exclusive. |
| 77 |
+ |
.PP |
| 78 |
|
Similarly, the |
| 79 |
|
.I "\-g gname" |
| 80 |
|
option says to remove all faces belonging to the group |
| 85 |
|
There is also a |
| 86 |
|
.I +g |
| 87 |
|
option to save just the named group(s). |
| 88 |
+ |
Object statements are treated the same as group statements in the input, so |
| 89 |
+ |
.I +/-g |
| 90 |
+ |
option can also be applied to object names. |
| 91 |
+ |
Note that an object name will be overridden by a group name that follows |
| 92 |
+ |
it in the input, and vice versa. |
| 93 |
|
.PP |
| 94 |
|
The |
| 95 |
|
.I "\-c epsilon" |
| 109 |
|
scene descriptions (+r). |
| 110 |
|
.PP |
| 111 |
|
The |
| 112 |
+ |
.I +T |
| 113 |
+ |
option turns all faces with 4 or more sides into triangles. |
| 114 |
+ |
.PP |
| 115 |
+ |
The |
| 116 |
|
.I \-x |
| 117 |
|
option may be used to specify a final transform to apply to all |
| 118 |
|
coordinates in the file before output. |
| 132 |
|
.IP "" .2i |
| 133 |
|
robjutil +r orig.obj > final.rad |
| 134 |
|
.PP |
| 126 |
– |
To convert the same file, preserving surface normal interpolation: |
| 127 |
– |
.IP "" .2i |
| 128 |
– |
robjutil orig.obj | obj2rad > withnormals.rad |
| 129 |
– |
.PP |
| 135 |
|
To extract only the groups "cat" and "bell" from the file "kitty.obj" and |
| 136 |
|
write to a Radiance triangle mesh using materials from "kitty.mat": |
| 137 |
|
.IP "" .2i |
| 140 |
|
To rotate the scene 90 degrees about the Y-axis and scale by 10: |
| 141 |
|
.IP "" .2i |
| 142 |
|
robjutil -x "-ry 90 -s 10" orig.obj > transformed.obj |
| 143 |
+ |
.SH NOTES |
| 144 |
+ |
The .OBJ output of |
| 145 |
+ |
.I robjutil |
| 146 |
+ |
uses relative indices, so files it produces may be concatenated |
| 147 |
+ |
on the input of other tools such as |
| 148 |
+ |
.I obj2rad |
| 149 |
+ |
and |
| 150 |
+ |
.I obj2mesh |
| 151 |
+ |
by piping from |
| 152 |
+ |
.I cat(1) |
| 153 |
+ |
or similar. |
| 154 |
+ |
This offers a convenient way to separate geometry from a single .OBJ |
| 155 |
+ |
input, manipulate it in some way, then recombine during conversion. |
| 156 |
+ |
.PP |
| 157 |
+ |
Unlike |
| 158 |
+ |
.I obj2rad |
| 159 |
+ |
and |
| 160 |
+ |
.I obj2mesh, |
| 161 |
+ |
.I robjutil |
| 162 |
+ |
with the |
| 163 |
+ |
.I +r |
| 164 |
+ |
option will not substitute the group name for a material id if no |
| 165 |
+ |
.I usemtl |
| 166 |
+ |
statements are found on the input. |
| 167 |
+ |
Instead, it will assign each surface the material |
| 168 |
+ |
.I DEFAULT_MATERIAL. |
| 169 |
+ |
Since it is possible to use the |
| 170 |
+ |
.I +/-g |
| 171 |
+ |
option to select groups to include or exclude on output, it is |
| 172 |
+ |
still possible to assign materials by group manually. |
| 173 |
|
.SH AUTHOR |
| 174 |
|
Greg Ward |
| 175 |
|
.SH "SEE ALSO" |
| 176 |
< |
obj2mesh(1), obj2rad(1) oconv(1), xform(1) |
| 176 |
> |
cat(1), genbox(1), gensurf(1), obj2mesh(1), obj2rad(1) oconv(1), xform(1) |