SPM-FB(1)
π NAME π
spm-fb β display a sphere map on a framebuffer. Manual page SPM-FB(1) from BRL-CAD, bestie. π«Ά
β¨ SYNOPSIS β¨
spm-fb [-s] [-F framebuffer] [-S squarescrsize] [-W scr_width] [-N scr_height] vsize [filename]
π¦ DESCRIPTION π¦
Okay so spm-fb reads a sphere map β an equal-area spherical sampling, as produced and consumed by the libbn bn_spm routines β and displays it on a framebuffer. The required vsize argument is the number of latitude bins (the βvβ size) used when the map was created; it determines how the bytes in the input are partitioned into scanlines. If filename is omitted, the map is read from standard input. π
By default, each latitude bin is written directly to the framebuffer as one scanline, so the displayed image has the natural ragged width of an equal-area sphere map. With -s, the map is instead resampled into a rectangular image that fills the framebuffer, mapping framebuffer pixel coordinates back onto the sphere. Geometry main character energy, no cap.
π OPTIONS π
-sβ display the map as a square (rectangular) image that fills the framebuffer, resampling the sphere map withbn_spm_readinstead of writing each bin as a raw scanline. Rectangular slay.-F framebufferβ use the specified framebuffer device instead of the default.-S squarescrsizeβ set both the framebuffer width and height tosquarescrsizepixels. Square up, bestie.-W scr_widthβ set the framebuffer width toscr_widthpixels.-N scr_heightβ set the framebuffer height toscr_heightpixels.
π EXAMPLES π
πΈ Example 1. Display a sphere map produced from an environment image πΈ
pix-spm world.pix 512 > world.spm
spm-fb -s -S 512 512 world.spm
Convert a pix(5) image into a 512-bin sphere map with pix-spm(1), then resample that map onto a 512x512 framebuffer. The -s option fills the whole framebuffer rather than drawing the ragged equal-area bins directly. Obsessed with this glow-up.
π₯ SEE ALSO π₯
Go read the friends too, iykyk.
π AUTHOR π
BRL-CAD Team β iconic, fr fr. π
π COPYRIGHT π
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory. Respect the notice, bestie.
π«Ά BUG REPORTS π«Ά
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Do not suffer in silence, bestie.
Cute sign-off: this is SPM-FB(1) from BRL-CAD β source/version BRL-CAD, page SPM-FB(1), and this footer has no date, so no made-up timestamp, no cap. π¦π
π¦ 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