| 5 |
|
.SH SYNOPSIS |
| 6 |
|
.B obj2mesh |
| 7 |
|
[ |
| 8 |
< |
.B "\-a matinput" |
| 8 |
> |
.B "\-a matfile" |
| 9 |
|
][ |
| 10 |
+ |
.B "\-l matlib" |
| 11 |
+ |
][ |
| 12 |
|
.B "\-n objlim" |
| 13 |
|
][ |
| 14 |
|
.B "\-r maxres" |
| 32 |
|
Any RADIANCE material descriptions included via one or more |
| 33 |
|
.I \-a |
| 34 |
|
options will be compiled and stored in the mesh as well. |
| 35 |
+ |
If the |
| 36 |
+ |
.I \-l |
| 37 |
+ |
option is used to specify a material file, the RADIANCE library |
| 38 |
+ |
locations are searched. |
| 39 |
|
This mesh may be included in a RADIANCE scene description via the |
| 40 |
|
.I mesh |
| 41 |
|
primitive, thus: |
| 102 |
|
.I obj2mesh. |
| 103 |
|
Normals will be interpolated over the mesh |
| 104 |
|
during rendering to produce a smooth surface. |
| 105 |
< |
If no vertex normals are present, the mess will appear tesselated. |
| 105 |
> |
If no vertex normals are present, the mesh will appear tesselated. |
| 106 |
|
A zero length normal (i.e., 0 0 0) will generate a syntax error. |
| 107 |
|
.TP |
| 108 |
|
.BI vt " u v" |
| 182 |
|
.IP "Hash table overflow in fullnode" |
| 183 |
|
This error is caused by too many surfaces, and there is |
| 184 |
|
little hope of compiling this mesh. |
| 185 |
< |
.SH EXAMPLE |
| 185 |
> |
.SH EXAMPLES |
| 186 |
|
To create a compiled triangle mesh from the scene file mesh.obj |
| 187 |
|
using materials from the file mesh.mat: |
| 188 |
|
.IP "" .2i |
| 189 |
|
obj2mesh -a mesh.mat mesh.obj mesh.rtm |
| 190 |
+ |
.PP |
| 191 |
+ |
To use local coordinates to place a square tiled image on a mesh object: |
| 192 |
+ |
.sp |
| 193 |
+ |
.nf |
| 194 |
+ |
void colorpict tiled_pat |
| 195 |
+ |
7 red green blue mytile.pic . frac(Lu) frac(Lv) |
| 196 |
+ |
0 |
| 197 |
+ |
0 |
| 198 |
+ |
|
| 199 |
+ |
tiled_pat plastic tiled_mat |
| 200 |
+ |
0 |
| 201 |
+ |
0 |
| 202 |
+ |
5 .9 .9 .9 0 0 |
| 203 |
+ |
|
| 204 |
+ |
tiled_mat mesh tiled_mesh |
| 205 |
+ |
1 mymesh.rtm |
| 206 |
+ |
0 |
| 207 |
+ |
0 |
| 208 |
+ |
.fi |
| 209 |
+ |
.SH ENVIRONMENT |
| 210 |
+ |
RAYPATH the directories to search for material files. |
| 211 |
|
.SH AUTHOR |
| 212 |
|
Greg Ward |
| 213 |
|
.SH "SEE ALSO" |