vpSeti(3)
π vpSeti β the "set the value of an option" bestie π
okay so welcome to the vpSeti and vpSetd page from the VolPack Library Functions Manual, and no cap this is the duo that sets option values in your rendering context. one of them does ints, one of them does doubles, and both of them are literally just here to tweak the vibe of your context. let's go π¦
β¨ NAME β¨
vpSeti, vpSetd β set the value of an option
no fr that's it, that's the whole job. two little functions, one big purpose π
πΈ SYNOPSIS πΈ
#include <volpack.h>
vpResult
vpSeti(vpc, option, value)
vpContext *vpc;
int option;
int value;
vpResult
vpSetd(vpc, option, value)
vpContext *vpc;
int option;
double value;
look at them. matching outfits. one takes an int value, one takes a double value, and honestly? iconic. π
π ARGUMENTS π
vpcβ the VolPack context, and bestie you get this one fromvpCreateContext. it's the whole universe your options live in.optionβ a constant that says which option we're setting. it's giving "pick a card, any card" but the cards are all very specific and documented below.valueβ the new value for that option. the glow-up, if you will. β¨
π DESCRIPTION π
okay so these functions set the values of integer-valued or double-valued options in a rendering context. and because the universe loves a good split, the options divide into two groups: the ones you set with vpSeti (ints) and the ones you set with vpSetd (doubles).
π the integer options β set with vpSeti
VP_CONCAT_MODEβ chooses whether transformation matrices get premultiplied or postmultiplied. ifvalueisVP_CONCAT_LEFTthen they're premultiplied. ifvalueisVP_CONCAT_RIGHTthen they're postmultiplied. Default:VP_CONCAT_RIGHT. (right-coded default, we respect it π )VP_DEPTH_CUE_SIZE_HINTβ sets the suggested number of entries in the depth cueing lookup table. seevpSetDepthCueing(3). Default: none.VP_INT_WIDTH_HINTβ sets the suggested width (in pixels) of the intermediate image work buffer. seevpRenderRawVolume(3). Default: none.VP_INT_HEIGHT_HINTβ sets the suggested height (in pixels) of the intermediate image work buffer. seevpRenderRawVolume(3). Default: none.VP_SHADOW_LIGHTβ gets the current shadow light (seevpSetShadowLookupShader(3)). legal values areVP_LIGHT0,VP_LIGHT1, ...,VP_LIGHT5. Default:VP_LIGHT0.VP_SHADOW_WIDTH_HINTβ sets the suggested width (in pixels) of the shadow buffer (seevpSetShadowLookupShader(3)). Default: none.VP_SHADOW_HEIGHT_HINTβ sets the suggested height (in pixels) of the shadow buffer (seevpSetShadowLookupShader(3)). Default: none.VP_SHADOW_BIASβ sets the current shadow bias value (seevpSetShadowLookupShader(3)). the value is an integral distance in units of voxels. Default:4.VP_AXIS_OVERRIDEβ forces the rendering routine to composite along a particular principle viewing axis, regardless of the current viewing direction. legal values areVP_X_AXIS,VP_Y_AXISorVP_Z_AXIS. set the value toVP_NO_AXISto let VolPack choose the optimal axis automatically (that's the default). this option is normally used only for debugging, so likeβ¦ it's a backstage-pass situation, not a main-character move. πVP_TRACE_SHADOW_Kβ when pixel tracing is enabled (seevpTracePixel(3)) AND shadows are enabled (that's theVP_SHADOWoption tovpEnable(3)), this option is used to choose one shadow buffer pixel to trace. the value must be a voxel slice number. the shadow buffer pixel that gets traced is the shadow pixel that affects the traced image pixel at the indicated slice. very specific, very detective energy π
π¦ the double options β set with vpSetd
VP_DEPTH_CUE_QUANTIZATIONβ sets the difference in depth between two adjacent entries in the depth cueing lookup table (seevpSetDepthCueing(3)). must be greater than0.0and less than1.0. Default:1/255.VP_MAX_RAY_OPACITYβ sets the maximum opacity threshold. during rendering, when a pixel's opacity reaches this threshold, no more voxels are composited into the pixel. to maximize performance, the value should be as low as possible without adversely affecting image quality. must be in the range0.0-1.0(1.0is the default and0.95is the suggested value). Default:1.0.VP_MIN_VOXEL_OPACITYβ sets the minimum opacity threshold. during classification, if a voxel's opacity is less than or equal to this threshold then the voxel is discarded before rendering. to maximize performance, the value should be as high as possible without adversely affecting image quality. must be in the range0.0-1.0(0.0is the default and0.05is the suggested value). Default:0.0.
π ERRORS π
the normal return value is VP_OK β that's the "we ate and left no crumbs" outcome π«Ά
but sometimes things go wrong, and here's what you might get back:
VPERROR_BAD_OPTIONβ theoptionargument is invalid. not a real option bestie, try again πVPERROR_BAD_VALUEβ thevalueargument is invalid or out of range. out of pocket, out of bounds π«
fr fr check your option constant and your range before you send it, because these two errors are the whole entire mood-ruiner.
π₯ SEE ALSO π₯
VolPack(3), vpCreateContext(3), vpGeti(3)
and that's the page!! β¨ this whole thing lives in the VolPack library, and it's the vpSeti(3) entry of the Library Functions Manual β so if you ever need to cite it, that's the whole vibe. mwah, go set some options, bestie πππ¦
π¦ where this page comes from
- debian bookworm: libvolpack1-dev 1.0b3-9 Β· BSD-3-Clause
- debian trixie: libvolpack1-dev 1.0b3-10 Β· BSD-3-Clause
- ubuntu jammy: libvolpack1-dev 1.0b3-9 Β· BSD-3-Clause
- ubuntu noble: libvolpack1-dev 1.0b3-9.1 Β· BSD-3-Clause
- ubuntu questing: libvolpack1-dev 1.0b3-11
- ubuntu resolute: libvolpack1-dev 1.0b3-11build1 Β· BSD-3-Clause
- ubuntu stonking: libvolpack1-dev 1.0b3-11build1 Β· BSD-3-Clause
- Copyright (c) 1994 The Board of Trustees of The Leland Stanford
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms