ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/obj2mesh.1
(Generate patch)

Comparing ray/doc/man/man1/obj2mesh.1 (file contents):
Revision 1.2 by greg, Wed Mar 12 17:26:58 2003 UTC vs.
Revision 1.7 by greg, Sun Feb 1 22:31:19 2004 UTC

# Line 1 | Line 1
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"
# Line 25 | Line 27 | reads a Wavefront .OBJ file from
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:
# Line 39 | Line 44 | mod mesh id
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
# Line 87 | Line 96 | direction components, which will be normalized by
96   .I obj2mesh.
97   Normals will be interpolated over the mesh
98   during rendering to produce a smooth surface.
99 < If no vertex normals are present, the mess will appear tesselated.
99 > If no vertex normals are present, the mesh will appear tesselated.
100   A zero length normal (i.e., 0 0 0) will generate a syntax error.
101   .TP
102   .BI vt " u v"
# Line 96 | Line 105 | These coordinates will be interpolated and passed
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
# Line 153 | Line 176 | those causing the problem.
176   .IP "Hash table overflow in fullnode"
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:
179 > .SH EXAMPLES
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 > .PP
185 > To use local coordinates to place a square tiled image on a mesh object:
186 > .sp
187 > .nf
188 > void colorpict tiled_pat
189 > 7 red green blue mytile.pic . frac(Lu) frac(Lv)
190 > 0
191 > 0
192 >
193 > tiled_pat plastic tiled_mat
194 > 0
195 > 0
196 > 5 .9 .9 .9 0 0
197 >
198 > tiled_mat mesh tiled_mesh
199 > 1 mymesh.rtm
200 > 0
201 > 0
202 > .fi
203   .SH AUTHOR
204   Greg Ward
205   .SH "SEE ALSO"
206   gensurf(1), getinfo(1), make(1), obj2rad(1),
207 < oconv(1), rpict(1), rview(1), rtrace(1), xform(1)
207 > oconv(1), rpict(1), rvu(1), rtrace(1), xform(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines