RTWIZARD(1)
π rtwizard(1) β the BRL-CAD manual page, but make it cute
okay so bestie, you're reading the RTWIZARD(1) page from the BRL-CAD manual set, and honestly? it's a whole vibe. let's get into it. π
β¨ NAME β¨
rtwizard β composite BRL-CAD images from color, ghost, and edge-line renderings π¦
πΈ SYNOPSIS πΈ
rtwizard [options] [-i] _geometry.g_ [-o] _output.{pix|png}_ [object ...]
π DESCRIPTION π
okay so rtwizard is literally the group-chat orchestrator of BRL-CAD utilities. it pulls together a bunch of tools to make composite images of geometry in prescribed styles. here's the lineup, no cap:
- full-color ray tracings come from
rt(1)π₯ - "hidden-line" edge drawings come from
rtedge(1)βοΈ - semi-transparent greyscale "ghost" renderings come from
rt(1)combined with BRL-CAD image-manipulation tools π»
and then all those layers get composited into a single image, written out to a pix(5) or PNG file, or displayed on a framebuffer. slay. π
π§ the two modes
rtwizard has two modes, periodt:
- with no arguments (or with
--gui) it launches a wizard-style graphical interface that walks you through building an image interactively. main character energy fr. - given sufficient options on the command line, it runs non-interactively β which is lowkey iconic for scripting and bulk rendering.
β οΈ heads up: if a command line invocation lacks enough info to produce the requested image,rtwizardfalls back to the GUI unless--no-guiis given. so it will absolutely interrupt your script if you're not paying attention π
π¨ the six picture types
the kind of image produced is governed by the --type option, or inferred from which object lists are supplied. here are the six, and yes they're giving a full runway lineup:
- Type A β Simple Full-Color Image β standard
rtimage. β¨ - Type B β Simple Line Drawing β standard
rtedgeimage. βοΈ - Type C β Highlighted Image β full color
rtimage enhanced withrtedgelines. π₯ - Type D β Mixed Full Color and Edges β like C, but objects are selectively edge-enhanced. π
- Type E β Ghost Image with Inserts β full color elements over faded greyscale context. π»
- Type F β Ghost Image with Inserts and Edges β a Type E image further enhanced with
rtedgelines. π
π«Ά the compatibility bit (important, don't skip)
for compatibility with rt(1):
- the first unflagged argument naming an existing
.gfile is taken as the input geometry - the first unflagged argument with a supported image extension (
.pix,.png,.ppm,.bw,.dpix) is taken as the output file - any remaining unflagged arguments are treated as color objects
π but bestie, because this can be ambiguous, the-iand-oflags are preferred. like, just use the flags. trust me. π
π OPTIONS π
-h,--helpβ print the options summary and exit. bye bestie π--help-devβ print the developer/programmatic options and exit. for the tech girlies who want the deeper lore π§-i filename,--input-file filenameβ input.ggeometry database. overrides any unflagged.gargument. π-o filename,--output-file filenameβ output image file. a.pngextension produces a PNG image; otherwise a BRL-CADpix(5)image is written. other supported extensions are.ppm,.bw, and.dpix. πΌοΈ-s #,--size #β width and height of a square output image, in pixels (default512). overridden per-axis by-wand-n. β-w #,--width #β output image width in pixels (overrides the width from-s). π-n #,--height #β output image height in pixels (overrides the height from-s). π-t A|B|C|D|E|F,--type A|B|C|D|E|Fβ picture type to produce (see the table above). if a type is requested but the supplied object lists are insufficient for it,rtwizardexits with an error. no improvising, it's a strict queen π-c obj[,...],--color-objects obj[,...]β comma-separated list of objects to render in full color. quote the list if names contain spaces (e.g.-c "obj1,obj 2"). π-l obj[,...],--line-objects obj[,...]β comma-separated list of objects to render as edge lines. βοΈ-g obj[,...],--ghost-objects obj[,...]β comma-separated list of objects to render as ghosted (faded) context. π»-a angle,--azimuth angleβ set the azimuth view angle, in degrees. π-e angle,--elevation angleβ set the elevation view angle, in degrees. β¬οΈ--twist angleβ set the twist view angle, in degrees. π-z value,--zoom valueβ zoom factor as a multiplier on the default view size. values greater than one enlarge the object; values less than one shrink it. π--center x/y/zβ set the xyz coordinates of the view center. π―--eye_pt x/y/zβ set the eye point. part of a complete low-level view specification (with--viewsizeand--orientation); a complete low-level specification overrides the high-level view options. ποΈ--viewsize valueβ set the view size directly (low-level view specification). π¦--orientation x/y/z/wβ set the view orientation quaternion (low-level view specification). π§-P angle,--perspective angleβ set the perspective angle, in degrees. π-C color,--background-color colorβ background color for full-color ray tracing, asR/G/Bor hex (default white). π€--line-color colorβ color for edge lines, asR/G/Bor hex. the keyword"region"uses each region's own color for its lines. ποΈ--non-line-color colorβ color used for the non-line areas of edge renderings. π¨-G value,--ghost-intensity valueβ visibility of ghosted objects (default6.0). π»-O #,--occlusion #β occlusion mode (1to3) for line rendering (default1). seertedge(1). πΆοΈ--guiβ force the graphical interface even when the command line specifies enough information to produce an image. πͺ--no-guiβ force command-line operation even when the supplied information is insufficient. overridden by--guiif both are given. βοΈ-d device,--fbserv-device deviceβ framebuffer device forfbserv(1)to use instead of the default memory-only interface (e.g.-d /dev/wgl). seefbhelp(1)for available devices. a framebuffer started byrtwizardis closed automatically after image generation. π₯οΈ-p #,--fbserv-port #β TCP port for thefbserv(1)framebuffer. an existing framebuffer server may be reused; in that casertwizardleaves it open after rendering. π--benchmarkβ benchmark mode: disable randomness for reproducible timing. β±οΈ--cpu-count #β number of CPUs to use. π§--pid-file filenameβ file used for tracking process IDs. π--log-file filenameβ write debugging output to this file. ποΈ-v #,--verbose #β set the verbosity level. π£οΈ
π₯ EXAMPLES π₯
Example 1. Highlighted color-plus-edge image at a custom view
rtwizard -i m35.g -c component/power.train -g component -l component \
-a -35 -e 15 -z 1.6 -o m35.png
render the m35 sample model with its power train highlighted in full color over a ghosted, edge-lined truck body, viewed from azimuth -35 and elevation 15 and zoomed in 1.6x, saving the result as a PNG image. she's gorgeous, your honor π
Example 2. Bulk rendering on the command line
for g in *.g; do
rtwizard --no-gui -t A -i "$g" -c all -s 1024 -o "${g%.g}.png"
done
non-interactively produce a 1024x1024 full-color image of the "all" object in every .g file in the current directory, naming each output after its database. --no-gui ensures the script never blocks on the GUI. automation ate, no crumbs π₯
Example 3. Live preview on a framebuffer
rtwizard -d /dev/wgl -i m35.g -l component
display a line drawing of the m35 truck in an OpenGL framebuffer window rather than writing it to a file. live preview moment β¨
π¦ SEE ALSO π¦
brlcad(1), rt(1), rtedge(1), fbserv(1), fbhelp(1), pix(5)
π AUTHOR π
BRL-CAD Team π
πΈ COPYRIGHT πΈ
this software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory. π
π BUG REPORTS π
reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β they're literally waiting for your lore drop, bestie π«Ά
okay that's the whole page!! π
this cutie lives in the BRL-CAD manual set as RTWIZARD(1) β go make something iconic with it πβ¨
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms