PERSPECTIVE(nged)
get or set the view perspective angle
π PERSPECTIVE (nged) β the get/set-your-view-angle page
okay bestie, welcome to perspective(nged), a BRL-CAD User Command and honestly one of the most underrated little glow-ups in your mged toolbox β¨
πΈ SYNOPSIS πΈ
perspective
perspective angle
that's it. two modes. no cap. π
π DESCRIPTION π
the perspective command gets or sets the perspective (field-of-view) angle for the current view. literally just vibes control for how much depth your eyeballs get. π¦
- no arguments π«Ά β returns the current value of
gv_perspectiveas a floating-point number. a value of0(or any value β€SMALL_FASTF) means orthographic (parallel) projection, iykyk. - one argument,
angleπ β setsgv_perspectiveto the given value, in degrees. the behavior depends on the magnitude of the angle:- if
angle>SMALL_FASTF(i.e. a positive, non-trivial value): a perspective projection matrix is constructed viapersp_matwith aspect ratio1.0, near clip at0.01, and far clip at1Γ10^10. that matrix gets stored ingv_pmatand the view is updated viabv_update. main character energy fr fr π₯ - if
angleβ€SMALL_FASTF(zero or negative): the perspective matrixgv_pmatis reset to the identity matrix, effectively switching to orthographic projection. bye bye depth π
- if
typical useful perspective angles range from about 15Β° (narrow, telephoto-like) to 90Β° (wide, distorted). values above 90Β° produce strongly distorted views β dramatic, but not cute π. setting the angle to 0 disables perspective entirely.
β¨ EXAMPLES β¨
π Example 1. Query the current perspective angle
mged> perspective
returns the current perspective angle, e.g. 0 when orthographic projection is active. a little vibe check for your view π
π§ Example 2. Enable a standard perspective view
mged> perspective 45
sets the field of view to 45Β°. objects farther from the viewer will appear smaller relative to nearby objects. the classic. the icon. π
β Example 3. Use a narrow telephoto-style perspective
mged> perspective 15
sets a narrow 15Β° field of view, compressing depth and making distant objects appear proportionally larger. zoom zoom, lowkey obsessed πΈ
π Example 4. Disable perspective (return to orthographic)
mged> perspective 0
resets gv_pmat to the identity matrix, switching the view back to orthographic (parallel) projection. flat, parallel, and honestly kind of chic. π
π AUTHOR π
BRL-CAD Team β the devs behind the magic π«Ά
π BUG REPORTS π
reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. be nice, they're doing their best π
and that's the whole page, bestie! this was PERSPECTIVE(nged) from the BRL-CAD User Commands β go forth and set your angles wisely β¨π
π¦
π¦ 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