Announcement

Collapse
No announcement yet.

V-Ray Renderer PB2 and Params ID's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • V-Ray Renderer PB2 and Params ID's

    Currently I hard work on the new major VSSPmax version and need ParamBlock2 with parameters ID's. I use C# and I try to minimize MaxScript uses whenever possible.
    PramBlock and parameters ID's exposed in vrenderinterface.h (V-Ray SDK), but it's a little complicated to find which parameter ID belongs to which PBlock2 ID, and also have to count...

    I got a little lazy, it's easier to write an utility and get it all at once. Perhaps, it is useful to someone. V-Ray 3.5x. The type of parameter can be easily received via MaxScript (showproperties).
    PB ID - ParamBlock2 ID + LocalName
    ID - Parameter ID + IntName

    PB ID: 1 :::: About

    PB ID: 2 :::: Image sampler (antialiasing)
    ID: 42 : imageSampler_type
    ID: 361 : imageSampler_type_new
    ID: 6 : filter_on
    ID: 185 : filter_kernel
    ID: 7 : filter_size
    ID: 8 : filter_paramA
    ID: 9 : filter_paramB
    ID: 10 : filter_paramC
    ID: 314 : imageSampler_shadingRate
    ID: 317 : imageSampler_renderMask_type
    ID: 318 : imageSampler_renderMask_texmap
    ID: 335 : imageSampler_renderMask_objectIDs
    ID: 334 : dmc_balance_subdivs
    ID: 332 : imageSampler_renderMask_layers
    ID: 356 : imageSampler_ui_view

    PB ID: 12 :::: DMC Sampler
    ID: 94 : dmc_lockNoisePattern
    ID: 95 : dmc_importanceSampling
    ID: 96 : dmc_earlyTermination_amount
    ID: 97 : dmc_earlyTermination_threshold
    ID: 148 : dmc_earlyTermination_minSamples
    ID: 211 : dmc_subdivs_mult
    ID: 257 : dmc_pathSampler_type
    ID: 345 : dmc_randomSeed
    ID: 348 : dmc_useLocalSubdivs
    ID: 349 : dmc_optimizeShadingRate
    ID: 346 : dmc_ui_view

    PB ID: 4 :::: Indirect illumination (GI)
    ID: 320 : gi_ui_view
    ID: 15 : gi_on
    ID: 179 : gi_refractCaustics
    ID: 180 : gi_reflectCaustics
    ID: 16 : gi_primary_type
    ID: 57 : gi_primary_multiplier
    ID: 17 : gi_secondary_type
    ID: 58 : gi_secondary_multiplier
    ID: 215 : gi_saturation
    ID: 216 : gi_contrast
    ID: 217 : gi_contrast_base
    ID: 239 : gi_saveMapsPerFrame
    ID: 291 : gi_ao_on
    ID: 294 : gi_ao_amount
    ID: 292 : gi_ao_radius
    ID: 293 : gi_ao_subdivs
    ID: 297 : gi_rayDistanceOn
    ID: 298 : gi_rayDistance

    PB ID: 17 :::: Brute force GI
    ID: 204 : dmcgi_subdivs
    ID: 205 : dmcgi_depth

    PB ID: 5 :::: Irradiance map
    ID: 321 : irradmap_ui_view
    ID: 26 : gi_irradmap_minRate
    ID: 18 : gi_irradmap_maxRate
    ID: 21 : gi_irradmap_subdivs
    ID: 22 : gi_irradmap_interpSamples
    ID: 52 : gi_irradmap_colorThreshold
    ID: 53 : gi_irradmap_normalThreshold
    ID: 111 : gi_irradmap_distThreshold
    ID: 55 : gi_irradmap_showSamples
    ID: 124 : gi_irradmap_showCalcPhase
    ID: 141 : gi_irradmap_showDirectLight
    ID: 142 : gi_irradmap_preset
    ID: 75 : adv_irradmap_interpolationType
    ID: 77 : adv_irradmap_mode
    ID: 78 : adv_irradmap_dontDelete
    ID: 79 : adv_irradmap_loadFileName
    ID: 80 : adv_irradmap_saveFileName
    ID: 125 : adv_irradmap_calcInterpSamples
    ID: 126 : adv_irradmap_useCurrentPassSamples
    ID: 128 : adv_irradmap_autoSave
    ID: 129 : adv_irradmap_autoSaveFileName
    ID: 130 : adv_irradmap_switchToSavedMap
    ID: 139 : adv_irradmap_randomize
    ID: 140 : adv_irradmap_lookupType
    ID: 167 : adv_irradmap_checkSampleVisibility
    ID: 232 : adv_irradmap_limitSearchRange
    ID: 295 : gi_irradmap_multipleViews
    ID: 245 : gi_irradmap_blurGI
    ID: 267 : gi_irradmap_detail_on
    ID: 268 : gi_irradmap_detail_radius
    ID: 269 : gi_irradmap_detail_subdivsMult
    ID: 270 : gi_irradmap_detail_scale
    ID: 279 : gi_irradmap_previewMode
    ID: 282 : gi_irradmap_interpFrames

    PB ID: 13 :::: Global photon map
    ID: 113 : photonMap_bounces
    ID: 114 : photonMap_searchDist
    ID: 122 : photonMap_autoDist
    ID: 115 : photonMap_maxPhotons
    ID: 116 : photonMap_convert
    ID: 117 : photonMap_interpSamples
    ID: 121 : photonMap_multiplier
    ID: 123 : photonMap_convexHullEstimate
    ID: 149 : photonMap_storeDirectLight
    ID: 150 : photonMap_retraceCorners
    ID: 151 : photonMap_retraceBounces
    ID: 181 : photonMap_maxDensity
    ID: 118 : photonMap_mode
    ID: 119 : photonMap_loadFileName
    ID: 120 : photonMap_saveFileName
    ID: 134 : photonMap_dontDelete
    ID: 135 : photonMap_autoSave
    ID: 136 : photonMap_autoSaveFileName
    ID: 137 : photonMap_switchToSavedMap
    ID: 271 : photonMap_showCalcPhase

    PB ID: 18 :::: Light cache
    ID: 319 : lightcache_ui_view
    ID: 198 : lightcache_subdivs
    ID: 199 : lightcache_sampleSize
    ID: 200 : lightcache_filter_type
    ID: 201 : lightcache_filter_size
    ID: 202 : lightcache_bounces
    ID: 203 : lightcache_showCalcPhase
    ID: 206 : lightcache_storeDirectLight
    ID: 296 : lightcache_multipleViews
    ID: 207 : lightcache_scale
    ID: 208 : lightcache_mode
    ID: 303 : lightcache_retrace_on
    ID: 302 : lightcache_retrace_threshold
    ID: 347 : lightcache_retrace_leakPrevention
    ID: 209 : lightcache_loadFileName
    ID: 210 : lightcache_saveFileName
    ID: 212 : lightcache_interpSamples
    ID: 213 : lightcache_prefilter_on
    ID: 214 : lightcache_prefilter_samples
    ID: 235 : lightcache_dontDelete
    ID: 236 : lightcache_autoSave
    ID: 237 : lightcache_autoSaveFileName
    ID: 238 : lightcache_switchToSavedMap
    ID: 242 : lightcache_useForGlossyRays
    ID: 243 : lightcache_numPasses
    ID: 255 : lightcache_adaptiveTracing
    ID: 264 : lightcache_adaptiveTracing_dirsOnly
    ID: 359 : lightcache_premultiplied
    ID: 289 : lightcache_minPathsPerSample

    PB ID: 6 :::: Caustics
    ID: 322 : caustics_ui_view
    ID: 27 : caustics_on
    ID: 30 : caustics_searchDist
    ID: 31 : caustics_maxPhotons
    ID: 59 : caustics_multiplier
    ID: 90 : caustics_mode
    ID: 91 : caustics_dontDelete
    ID: 92 : caustics_loadFileName
    ID: 93 : caustics_saveFileName
    ID: 131 : caustics_autoSave
    ID: 132 : caustics_autoSaveFileName
    ID: 133 : caustics_switchToSavedMap
    ID: 244 : caustics_maxDensity
    ID: 272 : caustics_showCalcPhase

    PB ID: 10 :::: Camera
    ID: 83 : camera_type
    ID: 98 : camera_overrideFOV
    ID: 99 : camera_fov
    ID: 100 : camera_cyl_height
    ID: 101 : camera_fish_autoDistance
    ID: 102 : camera_fish_distance
    ID: 103 : camera_fish_curve
    ID: 11 : dof_on
    ID: 12 : dof_distance
    ID: 56 : dof_getFromCamera
    ID: 13 : dof_shutter
    ID: 14 : dof_subdivs
    ID: 221 : dof_bias
    ID: 222 : dof_sides_on
    ID: 223 : dof_sides_num
    ID: 224 : dof_sides_rotation
    ID: 248 : dof_anisotropy
    ID: 65 : moblur_on
    ID: 301 : camera_motion_blur
    ID: 73 : moblur_duration
    ID: 162 : moblur_intervalCenter
    ID: 76 : moblur_geomSamples
    ID: 74 : moblur_prepassSamples
    ID: 66 : moblur_dmc_minSamples
    ID: 104 : moblur_geometryParticles
    ID: 197 : moblur_bias
    ID: 315 : moblur_shutterEfficiency

    PB ID: 7 :::: Environment
    ID: 60 : environment_gi_on
    ID: 61 : environment_gi_color
    ID: 62 : environment_gi_color_multiplier
    ID: 63 : environment_gi_map
    ID: 64 : environment_gi_map_on
    ID: 143 : environment_rr_on
    ID: 144 : environment_rr_color
    ID: 145 : environment_rr_color_multiplier
    ID: 146 : environment_rr_map
    ID: 147 : environment_rr_map_on
    ID: 249 : environment_refract_on
    ID: 250 : environment_refract_color
    ID: 251 : environment_refract_color_multiplier
    ID: 252 : environment_refract_map
    ID: 253 : environment_refract_map_on
    ID: 340 : environment_secondaryMatte_on
    ID: 341 : environment_secondaryMatte_color
    ID: 342 : environment_secondaryMatte_color_multiplier
    ID: 343 : environment_secondaryMatte_map
    ID: 344 : environment_secondaryMatte_map_on

    PB ID: 9 :::: G-Buffer/Color mapping
    ID: 325 : colormapping_ui_view
    ID: 82 : gbuffer_channelMask
    ID: 108 : colorMapping_type
    ID: 109 : colorMapping_darkMult
    ID: 110 : colorMapping_brightMult
    ID: 265 : colorMapping_gamma
    ID: 178 : colorMapping_affectBackground
    ID: 241 : colorMapping_clampOutput
    ID: 287 : colorMapping_clampLevel
    ID: 258 : colorMapping_subpixel
    ID: 273 : colorMapping_adaptationOnly
    ID: 290 : colorMapping_linearWorkflow

    PB ID: 11 :::: System
    ID: 324 : system_ui_view
    ID: 32 : system_distributedRender
    ID: 44 : system_raycaster_maxLevels
    ID: 45 : system_raycaster_minLeafSize
    ID: 46 : system_raycaster_faceLevelCoeff
    ID: 191 : system_raycaster_memLimit
    ID: 127 : system_instancedObjects
    ID: 288 : system_raycaster_optLevel
    ID: 47 : system_region_x
    ID: 48 : system_region_y
    ID: 49 : system_region_meaning
    ID: 50 : system_region_sequence
    ID: 316 : system_region_allow_dynamic_buckets
    ID: 54 : system_region_sequence_reverse
    ID: 51 : system_previousRender
    ID: 266 : system_region_lockSize
    ID: 364 : system_effects_progressive_update
    ID: 107 : system_frameStamp_on
    ID: 106 : system_frameStamp_string
    ID: 165 : system_frameStamp_fullWidth
    ID: 166 : system_frameStamp_justify
    ID: 112 : system_workInCameraSpace
    ID: 168 : system_checkForMissingFiles
    ID: 169 : system_optimizedAtmospherics
    ID: 184 : system_lowThreadPriority
    ID: 182 : system_vrayLog_show
    ID: 183 : system_vrayLog_level
    ID: 230 : system_vrayLog_file
    ID: 246 : system_vrayLog_ccToDebugger
    ID: 247 : system_numThreads
    ID: 328 : system_embree_on
    ID: 329 : system_embree_moblur
    ID: 339 : system_embree_hair
    ID: 331 : system_embree_conserveMemory

    PB ID: 14 :::: Global switches
    ID: 323 : options_ui_view
    ID: 153 : options_displacement
    ID: 154 : options_lights
    ID: 227 : options_hiddenLights
    ID: 155 : options_shadows
    ID: 156 : options_defaultLights
    ID: 157 : options_reflectionRefraction
    ID: 158 : options_overrideDepth_on
    ID: 159 : options_overrideDepth
    ID: 160 : options_maps
    ID: 161 : options_filterMaps
    ID: 186 : options_transpMaxLevels
    ID: 187 : options_transpCutoff
    ID: 188 : options_dontRenderImage
    ID: 218 : options_overrideMtl_on
    ID: 219 : options_overrideMtl_mtl
    ID: 353 : options_overrideMtl_excl_type
    ID: 354 : options_overrideMtl_excl_objectIDs
    ID: 355 : options_overrideMtl_excl_layers
    ID: 220 : options_showGIOnly
    ID: 231 : options_ray_bias
    ID: 240 : options_glossyEffects
    ID: 283 : options_geom_backfaceCull
    ID: 284 : options_mtl_filterMaps_indirect
    ID: 338 : options_mtl_filterMaps_indirect_mult
    ID: 285 : options_useLegacyModels
    ID: 286 : options_use3dsMaxPhotometricUnits
    ID: 312 : options_maxRayIntensity_on
    ID: 313 : options_maxRayIntensity
    ID: 326 : options_probabilisticLights
    ID: 327 : options_probabilisticLightsCount
    ID: 352 : options_rgbColorSpace
    Regimantas Valiukas
    SIGER STUDIO
    www.sigerstudio.eu

  • #2
    Continue...


    PB ID: 15 :::: Override output settings
    ID: 170 : output_on
    ID: 299 : output_aspectlock
    ID: 300 : output_imageaspect
    ID: 171 : output_width
    ID: 172 : output_height
    ID: 261 : output_aspect
    ID: 173 : output_fileOnly
    ID: 174 : output_saveFile
    ID: 175 : output_fileName
    ID: 176 : output_saveRawFile
    ID: 177 : output_rawFileName
    ID: 189 : output_useram
    ID: 190 : output_genpreview
    ID: 225 : output_splitgbuffer
    ID: 226 : output_splitfilename
    ID: 229 : output_splitbitmap
    ID: 228 : output_getsetsfrommax
    ID: 254 : output_splitRGB
    ID: 256 : output_splitAlpha
    ID: 274 : output_renderType
    ID: 275 : output_regxmin
    ID: 277 : output_regxmax
    ID: 276 : output_regymin
    ID: 278 : output_regymax
    ID: 280 : output_force32bit_3dsmax_vfb
    ID: 281 : output_rawExrUseHalf
    ID: 304 : output_rawExrDeep
    ID: 337 : fileName_addDot
    ID: 362 : output_resumableRendering
    ID: 363 : output_progressiveAutoSave

    PB ID: 16 :::: Default displacement
    ID: 192 : displacement_overrideMax
    ID: 193 : displacement_edgeLength
    ID: 194 : displacement_viewDependent
    ID: 195 : displacement_maxSubdivs
    ID: 196 : displacement_tightBounds
    ID: 233 : displacement_amount
    ID: 234 : displacement_relative

    PB ID: 19 :::: Fixed image sampler
    ID: 34 : fixedRate_subdivs
    ID: 35 : fixedRate_rand

    PB ID: 20 :::: Bucket image sampler
    ID: 5 : twoLevel_baseSubdivs
    ID: 2 : twoLevel_fineSubdivs
    ID: 259 : twoLevel_showSamples
    ID: 263 : twoLevel_useDMCSamplerThresh
    ID: 262 : twoLevel_threshold
    ID: 350 : twoLevel_adaptiveMethod
    ID: 360 : twoLevel_adaptiveEnable
    ID: 47 : twoLevel_bucket_width
    ID: 48 : twoLevel_bucket_height
    ID: 266 : twoLevel_bucket_lockSize

    PB ID: 21 :::: Adaptive subdivision image sampler
    ID: 36 : adaptiveSubdivision_minRate
    ID: 37 : adaptiveSubdivision_maxRate
    ID: 38 : adaptiveSubdivision_threshold
    ID: 39 : adaptiveSubdivision_rand
    ID: 260 : adaptiveSubdivision_showSamples
    ID: 333 : adaptiveSubdivision_dofMoblurSubdivs
    ID: 84 : imageSampler_outline
    ID: 85 : imageSampler_mtlID
    ID: 86 : imageSampler_normal
    ID: 87 : imageSampler_normal_threshold
    ID: 88 : imageSampler_zvalue
    ID: 89 : imageSampler_zvalue_threshold

    PB ID: 22 :::: Progressive Image Sampler
    ID: 306 : progressive_minSamples
    ID: 307 : progressive_maxSamples
    ID: 308 : progressive_noise_threshold
    ID: 309 : progressive_max_render_time
    ID: 310 : progressive_ray_bundle_size
    ID: 311 : progressive_show_mask
    ID: 336 : progressive_track_radius
    ID: 351 : progressive_dynNoiseThreshold

    PB ID: 23 :::: Texture options
    ID: 357 : textures_memLimit
    ID: 358 : textures_clearMem
    Regimantas Valiukas
    SIGER STUDIO
    www.sigerstudio.eu

    Comment

    Working...
    X