POV-Ray : Newsgroups : povray.general : Collision chance : Re: Collision chance Server Time
22 Jun 2021 10:42:26 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-2021 Persistence of Vision Raytracer Pty. Ltd.