Rayshade Quick Reference ------------------------------------------------------------------------------- Key: [thing] Optional item Production Thing Number or String (thing) Default value(s) thing Keyword ------------------------------------------------------------------------------- Reals and integers may be written in exponential notation, with or without a decimal point. Reals are truncated to integers when need be. Numbers may also be written as expressions surrounded by a matched pair of parentheses. Available operators are '+' (addition), '-' (subtraction and negation), '*' (multiplication), '/' (division), '%' (remainder), '^' (exponentiation). Subexpressions may be parenthesized to control order of evaluation. Strings are written as non-quoted strings that may include include the special characters '/' ("slash"), '-' ("dash"), '_' ("underscore), and '.' ("period"), in addition to upper and lowercase letters and non-leading digits. ------------------------------------------------------------------------------- Command-line options: -A thresh Adaptive tree cutoff -a Toggle alpha channel -C cpp-options Options to pass to cpp -c Continue rendering -D depth Maximum ray tree depth. -E eye_sep Eye separation -F freq Status report frequency -f Flip phongtri normals -G gamma Gamma exponent -h Help -j Jittered sampling -l Render left eye view -n No shadows -O outfile Output file name -o Opaque shadows -P pixel_divs Max supersamp. depth -p Preview-quality -q Run quietly -R xres yres Resolution -r Right eye view -S samples Use Samples^2 samples -s Toggle shadow caching -T r g b Contrast threshold -V filename Verbose file output -v Verbose output -W lx ly hx hy Render subwindow ------------------------------------------------------------------------------- File: /* Input file consists of...*/ [ ... ] Item: ObjItem: /* Items used in object definition blocks */ Viewing: eyep Xpos Ypos Zpos /* Eye position (0 -10 0) */ lookp Xpos Ypos Zpos /* Look position (0 0 0) */ up Xup Yup Zup /* "up" vector (0 0 1) */ fov Hfov [Vfov] /* Field of view in degrees (horiontal 45) */ aperture Width /* Aperture width (0) */ focaldist Distance /* focal distance (|eyep - lookp|) */ screen Xres Yres /* Screen resolution */ window Xmin Ymin Xmax Ymax /* Window (0 0 xres-1 yres-1) */ eyesep Separation /* eye separation (0) */ SurfDef: /* Give a name to a set of surface attributes. */ surface Name [ ...] Surface: /* Surface specification */ /* Use gven attributes */ Surfname [ ...] /* Use named surface w/ optional mods. */ cursurf [ ...] /* Use cur. surface w/mods - see ApplySurf */ SurfSpec: /* Surface attribute specification */ ambient R G B /* Ambient contribution */ diffuse R G B /* Diffuse color */ specular R G B /* Specular color */ specpow Exponent /* Phong exponent */ transp Ktr /* Transparency */ reflect Kr /* Reflectivity */ index N /* Index of refraction */ translu Ktl Stcoef /* Translucency and transmit. hilight coef */ noshadow /* No shadows cast on this surface */ /* Effects that occur in interior */ Effect: /* Atmospheric Effects */ mist R G B Rtrans Gtrans Btrans Zero Scale fog R G B Rtrans Gtrans Btrans body R G B Rtrans Gtrans Btrans Atmosphere: /* Global atmosphere */ atmosphere [Index] [...] /* Global index, effects */ ApplySurf: applysurf /* apply surf to all following objs w/o surface */ Instance: /* Instance of an object */ [] [] Object: Primitive /* Primitive object */ Aggregate /* Named aggregate */ ObjDef: /* define a named object */ name Objname Primitive: /* Primitive object */ plane [] Xpos Ypos Zpos Xnorm Ynorm Znorm disc [] Radius Xpos Ypos Zpos Xnorm Ynorm Znorm sphere [] Radius Xpos Ypos Zpos triangle [] Xv1 Yv1 Zv1 Xv2 Yv2 Zv2 Xv3 Yv3 Zv3/* flat-shaded triangle */ triangle [] Xv1 Yv1 Zv1 Xn1 Yn1 Zn1 Xv2 Yv2 Zv2 Xn2 Yn2 Zn2 Xv3 Yv3 Zv3 Xn3 Yn3 Zn3/* Phong-shaded triangle */ polygon [] Xv1 Yv1 Zv1 Xv2 Yv2 Zv2 Xv3 Yv3 Zv3 [Xv3 Yv4 Zv4 ...] box [] Xlow Ylow Zlow Xhi Yhi Zhi cylinder [] Radius Xbase Ybase Zbase Xapex Yapex Zapex cone [] Rbase Xbase Ybase Zbase Rapex Xapex Yapex Zapex torus [] Rswept Rtube Xpos Ypos Zpos Xnorm Ynorm Znorm blob [] Thresh Stren Rad Xpos Ypos Zpos [Stren Rad X Y Z ...] heightfield [] Filename Aggregate: Grid List Csg Grid: grid X Y Z [ ...] end List: list [ ...] end Csg: union [ ...] end intersect [ ...] end difference [ ...] end /* CSG will only work properly when applied to closed objects, e.g.: * sphere, box, torus, blob, closed Aggregate, other Csg object */ Transforms: /* Transformations */ translate Xtrans Ytrans Ztrans scale Xscale Yscale Zscale rotate Xaxis Yaxis Zaxis Degrees transform A B C D E F G H I [Xt Yt Zt] Textures: texture [Transforms] [ [Transforms] ...] Texture: checker blotch Scale bump Bumpscale marble [Colormapname] fbm Offset Scale H Lambda Octaves Thresh [Colormapname] fbmbump Offset Scale H Lambda Octaves wood gloss Glossiness cloud Offset Scale H Lambda Octaves Cthresh Lthresh Transcale sky Scale H Lambda Octaves Cthresh Lthresh stripe Width Bumpscale image Imagefile [ [ ...]] ImageTextOption: component range Lo Hi smooth textsurf tile U V SurfComp: ambient diffuse reflect transp specular specpow Mapping: map uv map cylindrical [Xorigin Yorigin Zorigin Xup Yup Zup Xu Yu Zu] map linear [Xorigin Yorigin Zorigin Xv Yv Zv Xu Yu Zu] map spherical [Xorigin Yorigin Zorigin Xup Yup Zup Xu Yu Zu] Light: light R G B light Intensity LightType: point Xpos Ypos Zpos directional Xdir Ydir Zdir extended Xpos Ypos Zpos Radius spot Xpos Ypos Zpos Xat Yat Zat Coef Thetain Thetaout area Xorigin Yorigin Zorigin Xu Yu Zu Usamples Xv Yv Zv Vsamples RenderOption: shadowtransp /* object opacity affects shadows */ maxdepth Depth /* Maximum ray tree depth (5) */ samples Nsamp /* Use Nsamp^2 jit samples (4) */ jittered /* Use jittered sampling (adaptive) */ adaptive Depth /* Adapt. sampling, max Depth pixel divisions */ contrast R G B /* Maximum contrast w/o pixel division */ cutoff Factor /* Minium spawned ray contribution (.001) */ background R G B /* Background color (0 0 0) */ outfile Filename /* Output file name (written to stdout) */ report [verbose] [quiet] [Freq] [Statfile] /* Reporting mode (false false 10 stderr) */