Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #34041

Re: pre-alpha vector field DLA, with point-and-click attractors...

From "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>
Newsgroups sci.physics, comp.lang.javascript
Subject Re: pre-alpha vector field DLA, with point-and-click attractors...
Date 2017-09-27 13:38 -0700
Organization n/a
Message-ID <oqh27l$59v$1@dont-email.me> (permalink)
References <oqa2aa$le4$1@dont-email.me> <XnsA7FBDFF63EF3Aeejj99@194.109.6.166> <oqbon7$6fr$1@dont-email.me> <XnsA7FBE60C45628eejj99@194.109.6.166>

Cross-posted to 2 groups.

Show all headers | View raw


On 9/25/2017 1:36 PM, Evertjan. wrote:
> "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> wrote on 25
> Sep 2017 in comp.lang.javascript:
> 
>> On 9/25/2017 1:00 PM, Evertjan. wrote:
>>> "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> wrote on
>>> 25 Sep 2017 in comp.lang.javascript:
>>>
>>>> Fwiw, here is a rendering of a DLA cluster that was grown online:
>>>>
>>>> https://plus.google.com/101799841244447089430/posts/LjJesbaokGd
>>>>
>>>> in the following pre-alpha highly experimental program I created:
>>>>
>>>> http://funwithfractals.atspace.cc/ct_fdla_anime_dynamic_test
>>>>
>>>> The code can be streamlined quite a bit, but it should go ahead and
>>>> work for now.
>>>
>>> Nice!
>>
>> Thank you for giving it a go Evertjan. :^)
>>
>>
>>> What about a 3-dimensional one?
>>>
>>> <https://youtu.be/eAB5ZyG4KWE>
>>
>> Ahhh! Very nice indeed. I can do it, just need a little more time.
>> Adding the z vector to my program is actually not all that hard at all.
>> WebGL can be used to rendering everything. I already have some crude 3d
>> vector field work in WebGL online:
>>
>> http://funwithfractals.atspace.cc/ct_gfield_test/ct_3dgfield_anime_test
>>
>> http://funwithfractals.atspace.cc/ct_gfield_test
>>
>> Fwiw, check this out:
>>
>> https://plus.google.com/101799841244447089430/posts/PU1rRsaEUzK
>>
>> Equipotential lines in 3d. ;^o
> 
> Wow, you have been buzy for a long time.

;^) Actually, if you look at my code in here:

http://funwithfractals.atspace.cc/ct_fdla_anime_dynamic_test/ct_field.js

Well, I forgot that its already using a 3d vector. Notice how the dif 
variable is calculated in:
____________________
var dif = [e[0] - p[0], e[1] - p[1], e[2] - p[2]];
____________________
dif, e and p have three parts. Therefore, its 3d. Cannot believe I did 
not notice this. Wrt the 2d canvas, this z-axis is not needed at all! 
Damn it.

Performing the iterative summation to get a normalized vector for use on 
a per-line-segment basis:
____________________
if (mass > ESP && ! isNaN(mass) && isFinite(mass))
{
      g[0] = g[0] + e[3] * dif[0] / mass;
      g[1] = g[1] + e[3] * dif[1] / mass;
      g[2] = g[2] + e[3] * dif[2] / mass;
}
____________________
g has three parts! I accidentally put my 3d vector field into a 2d 
scenario. It still works, but its using unnecessary calculations that 
have no bearing on the actual 2d plotting logic.

Sorry about that.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

pre-alpha vector field DLA, with point-and-click attractors... "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2017-09-24 21:56 -0700
  Re: pre-alpha vector field DLA, with point-and-click attractors... Julio Di Egidio <julio@diegidio.name> - 2017-09-24 22:36 -0700
    Re: pre-alpha vector field DLA, with point-and-click attractors... "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2017-09-24 22:44 -0700
      Re: pre-alpha vector field DLA, with point-and-click attractors... Julio Di Egidio <julio@diegidio.name> - 2017-09-24 22:54 -0700
        Re: pre-alpha vector field DLA, with point-and-click attractors... "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2017-09-25 12:31 -0700
          Re: pre-alpha vector field DLA, with point-and-click attractors... Julio Di Egidio <julio@diegidio.name> - 2017-09-26 09:05 -0700
            Re: pre-alpha vector field DLA, with point-and-click attractors... "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2017-09-28 21:24 -0700
              Re: pre-alpha vector field DLA, with point-and-click attractors... Julio Di Egidio <julio@diegidio.name> - 2017-09-29 06:47 -0700
        Re: pre-alpha vector field DLA, with point-and-click attractors... "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2017-09-25 12:39 -0700
  Re: pre-alpha vector field DLA, with point-and-click attractors... "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-09-25 22:00 +0200
    Re: pre-alpha vector field DLA, with point-and-click attractors... "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2017-09-25 13:25 -0700
      Re: pre-alpha vector field DLA, with point-and-click attractors... "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-09-25 22:36 +0200
        Re: pre-alpha vector field DLA, with point-and-click attractors... "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2017-09-27 13:38 -0700
  Re: pre-alpha vector field DLA, with point-and-click attractors... Une Bévue <unbewusst.sein@fai.invalid> - 2017-09-26 05:50 +0200
    Re: pre-alpha vector field DLA, with point-and-click attractors... "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2017-09-27 13:19 -0700
      Re: pre-alpha vector field DLA, with point-and-click attractors... "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-09-30 08:41 -0700
        Re: pre-alpha vector field DLA, with point-and-click attractors... "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2017-10-04 20:48 -0700
          Re: pre-alpha vector field DLA, with point-and-click attractors... "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2017-10-05 08:25 -0700

csiph-web