POV-Ray : Newsgroups : povray.general : Collision chance : Re: Collision chance Server Time
29 Apr 2024 16:14:30 EDT (-0400)
  Re: Collision chance  
From: jr
Date: 24 Apr 2021 18:15:00
Message: <web.6084981fcab7490879819d986cde94f1@news.povray.org>
hi,

(it is late and all that, but a thought just occurred)

ingo <ing### [at] tagpovrayorg> wrote:
> ...
> #local ADSRarr[_decay][_base] = (ADSRarr[_sustain][_Level] - ADSRarr
> [_target_ratio][_dr]) * (1 - ADSRarr[_decay][r_coef]);

how about "devolving" your array into a dictionary with keys for '_decay',
'_target_ratio', etc, parallel arrays, so to speak.  eg:

#local ADSRD._decay._base = (ADSRD._sustain._Level - ADSRD._target_ratio._dr) *
(1 - ADSRD._decay.r_coef);

not an option?

regards, jr.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.