FB-PIX(1)
π fb-pix(1) β the BRL-CAD manual, bestie edition π
okay so real quick β this whole page lives in the BRL-CAD manual set, section 1, and it's about fb-pix. that's the name. that's the vibe. let's go β¨
β¨ NAME β¨
fb-pix β save a framebuffer image as a color pix file πΌοΈ
πΈ SYNOPSIS πΈ
fb-pix [-i] [-c] [-F framebuffer] [-s squaresize] [-w width] [-n height] [-h] [-?] [file.pix]
π¦ DESCRIPTION π¦
okay so picture this: fb-pix reads a region of a framebuffer and saves it as a pix(5) format file. that's literally the whole job. and if you don't give it an output file? no worries, it just writes the data to standard output. slay, honestly. π
by default, the output size and the framebuffer size are both 512x512 pixels, with a first-quadrant coordinate system β meaning the origin sits at the lower left. iykyk. π
π OPTIONS π
-iβ use a fourth-quadrant coordinate system instead (origin at the upper left). this makes it read the framebuffer scanlines from top to bottom instead of bottom to top. flipped, but make it fashion. π-cβ apply the framebuffer color map to the pixel values before writing. color correction era β¨-Fframebuffer β specify the framebuffer device. it defaults to theFB_FILEenvironment variable (peepbrlcad(1)for the deets). π₯οΈ-ssquaresize β set both width and height to squaresize. one number, two dimensions, zero stress. π-wwidth β set the output width in pixels. π-nheight β set the output height in pixels. π-h,-?β print a usage message and exit. the classic "help me help you" combo π«Ά
π₯ EXAMPLES π₯
β Example 1. Capture a rendered image and convert it to PNG
$ rt -s 1024 -F /dev/fb havoc.g havoc
$ fb-pix -s 1024 | pix-png -s 1024 > havoc.png
so what's happening here: it renders a model to the framebuffer with rt(1), saves the 1024x1024 framebuffer contents to a pix(5) stream on standard output, and pipes it straight into pix-png(1) to produce a PNG file. the pipeline is giving main character energy, no cap. πβ¨
π Example 2. Save the framebuffer color map baked into the pixels
$ fb-pix -c -F /dev/ogl scene.pix
this one saves the image from the /dev/ogl framebuffer with the framebuffer color map applied to each pixel value, so the stored file reflects the displayed image even if a non-linear color map was loaded. baked in, literally. π
π SEE ALSO π
brlcad(1), pix-fb(1), pix-png(1), fb-png(1), fb-bw(1), rt(1), pix(5)
go read them, they're all iconic in their own way π«Ά
π AUTHOR π
BRL-CAD Team β the collective, the moment, the legends. π§
πΈ COPYRIGHT πΈ
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
yes bestie, that's real, that's the actual line, keep it π
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org
found a bug? don't suffer in silence, tell the devs β email is right there, and they do want to know π
and that's the whole page, bestie π¦ this iconic little number shipped as part of the BRL-CAD manual collection, and you just read fb-pix(1) in all its glory. mwah πβ¨
π¦ 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