PLOT3-FB(1)
π PLOT3-FB β display a 3-D UNIX plot file on a framebuffer
okay so real talk, bestie β this is plot3-fb from the BRL-CAD manual, section 1 (that's the general commands section, iykyk). it's the little tool that takes your 3-D UNIX plot file and slaps it onto a framebuffer. let's get into it β¨
πΈ SYNOPSIS πΈ
plot3-fb [-d] [-o|-O] [-i] [-t thickness] [-F framebuffer] [-s|-S squaresize] [-w|-W width] [-n|-N height] [file.plot3]
that's the whole vibe. short, cute, does exactly what it says π
π¦ DESCRIPTION π¦
so plot3-fb rasterizes a BRL-CAD extended three-dimensional UNIX plot file and displays the result on a framebuffer. literally its whole job. and because 3-D UNIX plot is a superset of the standard UNIX plot format, plot3-fb can also display ordinary 2-D plot files too β see plot3(5). iconic behaviour, no notes π
if file.plot3 is omitted, the plot commands are read from standard input. the framebuffer gets picked with the -F option or, if that's not a thing, the FB_FILE environment variable β otherwise the default device for your system is used (see brlcad(1)).
by default the display is treated as 512x512 pixels. the -S/-s, -W/-w, and -N/-n options set the screen size; the plotting space is scaled to fill those dimensions, and no attempt is made to preserve the aspect ratio (so yeah, your circles might get squished, that's just the deal π). strokes that fall outside the frame are limited (not clipped) to its edges β so like, they get dragged to the border, not cut off. pre-process with plot3rot(1) if you actually want true clipping or reorientation, k?
β¨ OPTIONS β¨
-dβ emit a verbose debugging stream to standard error, listing every UNIX plot command and the resulting framebuffer coordinates. repeating-dincreases the verbosity. so-ddis more chatty,-dddis even more. she's an icon π-o,-Oβ overlay mode. rasterize on top of the image already in the framebuffer instead of over a cleared background. perfect for when you don't wanna lose what's already there π«Ά-iβ immediate mode. plot each rasterized pixel as soon as it's computed instead of buffering scanlines into bands. useful for quick feedback on small plots, but generally more expensive in CPU time. trade-off behaviour fr fr-tthicknessβ thicken every line perpendicular to its length tothicknesspixels (minimum1). a line is never made wider than it is long. helpful when recording to video, where single-pixel lines are hard to resolve. yes bestie, thicken responsibly π-Fframebufferβ use the named framebuffer device instead of the one inFB_FILE. simple as that.-ssquaresize,-Ssquaresizeβ set both the width and height of the display tosquaresizepixels. square! symmetrical! balanced! π-wwidth,-Wwidthβ set the display width towidthpixels.-nheight,-Nheightβ set the display height toheightpixels.
π₯ EXAMPLES π₯
Example 1 β render a wireframe of a database object straight to the framebuffer
fbserv -S 1024 0 /dev/X &
FB_FILE=:0 rt -o /dev/plot3 -s 1024 model.g component.r | plot3-fb -s 1024
pipe the 3-D plot output of rt(1) for a region into plot3-fb, displaying the wireframe on a 1024x1024 framebuffer started with fbserv(1) β without writing an intermediate file. no middleman, we love to see it π
Example 2 β overlay thick annotation lines on an existing image
plot3-fb -o -t 3 -F /dev/X labels.plot3
draw the strokes from labels.plot3 three pixels thick on top of whatever image is already in the X framebuffer, leaving the background untouched. chef's kiss π¨βπ³π
π SEE ALSO π
brlcad(1), fbserv(1), rt(1), plot3rot(1), plot3stat(1), pix-fb(1), plot3(5)
go read them, they're all in the family π«Ά
π AUTHOR π
BRL-CAD Team β legends, honestly.
β 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. found a bug? tell the devs, don't suffer in silence bestie π
π reminder:-drepeats for more verbosity,-tnever goes below1, and that aspect ratio is genuinely not preserved β that's documented behaviour, not a glitch.
and that's the page!! brought to you by BRL-CAD β plot3-fb(1), see you in the group chat πβ¨ππ¦
π¦ 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