14 |
|
.B "\-r maxres" |
15 |
|
][ |
16 |
|
.B \-w |
17 |
+ |
][ |
18 |
+ |
.B \-v |
19 |
|
] |
20 |
|
[ |
21 |
|
.B "input.obj" |
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. |
66 |
< |
Smaller values may produce faster renderings, |
67 |
< |
since the default number (15) is on the high side to reduce |
68 |
< |
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 |
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. |
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. |
146 |
– |
.I Obj2mesh |
147 |
– |
currently makes an unsafe assumption that faces are convex, |
148 |
– |
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 |
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 |
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) |
195 |
> |
7 red green blue mytile.hdr . frac(Lu) frac(Lv) |
196 |
|
0 |
197 |
|
0 |
198 |
|
|
211 |
|
.SH AUTHOR |
212 |
|
Greg Ward |
213 |
|
.SH "SEE ALSO" |
214 |
< |
gensurf(1), getinfo(1), make(1), obj2rad(1), |
214 |
> |
gensurf(1), getinfo(1), make(1), obj2rad(1), objutil(1) |
215 |
|
oconv(1), rpict(1), rvu(1), rtrace(1), xform(1) |