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.14 by greg, Mon Mar 30 18:28:35 2020 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 matfile"
9 + ][
10 + .B "\-l matlib"
11 + ][
12   .B "\-n objlim"
13   ][
14   .B "\-r maxres"
15   ][
16   .B \-w
17 + ][
18 + .B \-v
19   ]
20   [
21   .B "input.obj"
# Line 25 | Line 31 | reads a Wavefront .OBJ file from
31   which is sent to
32   .I output.rtm
33   (or standard output).
34 + Any RADIANCE material descriptions included via one or more
35 + .I \-a
36 + options will be compiled and stored in the mesh as well.
37 + If the
38 + .I \-l
39 + option is used to specify a material file, the RADIANCE library
40 + locations are searched.
41   This mesh may be included in a RADIANCE scene description via the
42   .I mesh
43   primitive, thus:
# Line 39 | Line 52 | mod mesh id
52   .PP
53   The syntax and semantics are identical to the RADIANCE
54   .I instance
55 < primitive, except that the mesh modifier may not be "void", since
56 < materials are not included in a compiled mesh file.
55 > primitive.
56 > If
57 > .I mod
58 > is "void", then the stored mesh materials will be applied during rendering.
59 > Otherwise, the given material will be substituted on
60 > all the mesh surfaces.
61   .PP
62   The
63   .I \-n
64   option specifies the maximum surface set size for
65   each voxel.
66 < Larger numbers result in quicker mesh generation needing
67 < less memory, but potentially slower rendering.
51 < Smaller values may produce faster renderings,
52 < since the default number (15) is on the high side to reduce
53 < the compiled mesh octree size.
66 > Larger numbers result in quicker mesh generation,
67 > but potentially slower rendering.
68   Values below 6 are not recommended, since this is the median
69   valence for a mesh vertex (the number of adjacent faces),
70   and smaller values will result in pointless octree subdivision.
71 + The default setting is 9.
72   .PP
73   The
74   .I \-r
# Line 65 | Line 80 | The default is 16384.
80   The
81   .I \-w
82   option suppresses warnings.
83 + The
84 + .I \-v
85 + option prints out final mesh statistics.
86   .PP
87   Although the mesh file format is binary, it is meant to be portable
88   between machines.
# Line 87 | Line 105 | direction components, which will be normalized by
105   .I obj2mesh.
106   Normals will be interpolated over the mesh
107   during rendering to produce a smooth surface.
108 < If no vertex normals are present, the mess will appear tesselated.
108 > If no vertex normals are present, the mesh will appear tesselated.
109   A zero length normal (i.e., 0 0 0) will generate a syntax error.
110   .TP
111   .BI vt " u v"
# Line 96 | Line 114 | These coordinates will be interpolated and passed
114   to the "Lu" and "Lv" variables during rendering.
115   Local coordinates can extend over any desired range of values.
116   .TP
117 + .BI usemtl " mname"
118 + A material name.
119 + The following faces will use the named material, which is
120 + taken from the material definitions in the
121 + .I \-a
122 + input file(s).
123 + .TP
124 + .BI g " gname"
125 + Group association.
126 + The following faces are associated with the named group.
127 + If no "usemtl" statement has been
128 + encountered, the current group is used for the surface material
129 + identifier.
130 + .TP
131   .BI f " v1/t1/n1 v2/t2/n2 v3/t3/n3" " .."
132   A polygonal face.
133   Polygon vertices are specified as three indices separated
# Line 109 | Line 141 | where the first vertex position (
141   statement) is numbered 1, and likewise
142   for the first texture coordinate and the first surface normal.
143   Negative indices count backward from the current position in
144 < the input, where -1 is the last vertex encountered, -2
144 > the input, where \-1 is the last vertex encountered, \-2
145   is the one before that, etc.
146   An index of 0 may be used for the vertex texture or normal to
147   indicate none, or these may be left off entirely.
148   All faces will be broken into triangles in the final mesh.
117 .I Obj2mesh
118 currently makes an unsafe assumption that faces are convex,
119 which may result in odd results if they are not.
149   .PP
150   All other statement types will be ignored on the input.
151   Statements understood by
# Line 153 | Line 182 | those causing the problem.
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
186 < To create a compiled triangle mesh from the scene file mesh.obj:
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 < oconv mesh.obj mesh.rtm
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.hdr . 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"
214 < gensurf(1), getinfo(1), make(1), obj2rad(1),
215 < oconv(1), rpict(1), rview(1), rtrace(1), xform(1)
214 > gensurf(1), getinfo(1), make(1), obj2rad(1), objutil(1)
215 > oconv(1), rpict(1), rvu(1), rtrace(1), xform(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines