| 1 |
< |
.\" RCSid "$Id" |
| 1 |
> |
.\" RCSid "$Id$" |
| 2 |
|
.TH OBJ2MESH 1 03/11/03 RADIANCE |
| 3 |
|
.SH NAME |
| 4 |
|
obj2mesh - create a compiled RADIANCE mesh file from Wavefront .OBJ input |
| 5 |
|
.SH SYNOPSIS |
| 6 |
|
.B obj2mesh |
| 7 |
|
[ |
| 8 |
+ |
.B "\-a matinput" |
| 9 |
+ |
][ |
| 10 |
|
.B "\-n objlim" |
| 11 |
|
][ |
| 12 |
|
.B "\-r maxres" |
| 27 |
|
which is sent to |
| 28 |
|
.I output.rtm |
| 29 |
|
(or standard output). |
| 30 |
+ |
Any RADIANCE material descriptions included via one or more |
| 31 |
+ |
.I \-a |
| 32 |
+ |
options will be compiled and stored in the mesh as well. |
| 33 |
|
This mesh may be included in a RADIANCE scene description via the |
| 34 |
|
.I mesh |
| 35 |
|
primitive, thus: |
| 44 |
|
.PP |
| 45 |
|
The syntax and semantics are identical to the RADIANCE |
| 46 |
|
.I instance |
| 47 |
< |
primitive, except that the mesh modifier may not be "void", since |
| 48 |
< |
materials are not included in a compiled mesh file. |
| 47 |
> |
primitive. |
| 48 |
> |
If |
| 49 |
> |
.I mod |
| 50 |
> |
is "void", then the stored mesh materials will be applied during rendering. |
| 51 |
> |
Otherwise, the given material will be substituted on |
| 52 |
> |
all the mesh surfaces. |
| 53 |
|
.PP |
| 54 |
|
The |
| 55 |
|
.I \-n |
| 105 |
|
to the "Lu" and "Lv" variables during rendering. |
| 106 |
|
Local coordinates can extend over any desired range of values. |
| 107 |
|
.TP |
| 108 |
+ |
.BI usemtl " mname" |
| 109 |
+ |
A material name. |
| 110 |
+ |
The following faces will use the named material, which is |
| 111 |
+ |
taken from the material definitions in the |
| 112 |
+ |
.I \-a |
| 113 |
+ |
input file(s). |
| 114 |
+ |
.TP |
| 115 |
+ |
.BI g " gname" |
| 116 |
+ |
Group association. |
| 117 |
+ |
The following faces are associated with the named group. |
| 118 |
+ |
If no "usemtl" statement has been |
| 119 |
+ |
encountered, the current group is used for the surface material |
| 120 |
+ |
identifier. |
| 121 |
+ |
.TP |
| 122 |
|
.BI f " v1/t1/n1 v2/t2/n2 v3/t3/n3" " .." |
| 123 |
|
A polygonal face. |
| 124 |
|
Polygon vertices are specified as three indices separated |
| 177 |
|
This error is caused by too many surfaces, and there is |
| 178 |
|
little hope of compiling this mesh. |
| 179 |
|
.SH EXAMPLE |
| 180 |
< |
To create a compiled triangle mesh from the scene file mesh.obj: |
| 180 |
> |
To create a compiled triangle mesh from the scene file mesh.obj |
| 181 |
> |
using materials from the file mesh.mat: |
| 182 |
|
.IP "" .2i |
| 183 |
< |
oconv mesh.obj mesh.rtm |
| 183 |
> |
obj2mesh -a mesh.mat mesh.obj mesh.rtm |
| 184 |
|
.SH AUTHOR |
| 185 |
|
Greg Ward |
| 186 |
|
.SH "SEE ALSO" |