POV-Ray : Newsgroups : povray.binaries.images : ttso2393 : Re: ttso2393 Server Time
23 Apr 2024 11:40:06 EDT (-0400)
  Re: ttso2393  
From: Bald Eagle
Date: 25 Oct 2019 22:00:00
Message: <web.5db3a79b1c84db3a4eec112d0@news.povray.org>
Dick Balaska <dic### [at] buckosoftcom> wrote:

> One entry looks like:
> #declare _sparksV[31118]=<119.4,1144.59,3974.28>;
> #declare _sparksR[31118]=<0,0,0>;
> #declare _sparksC[31118]=<0.423887,0.435522,0.419685>;
> #declare _sparksS[31118]=1.4;
> #declare _sparksT[31118]=0.823256;
>
> which is Vector, Rotation, Color, Scale, Transparency.
> Hmm, thanks.  Now that I look at it, I can turn that into a macro.
> I tried a 2-d array, but I couldn't get mixed arrays to work (do they work?)

AFAIK, they do.

http://news.povray.org/povray.bugreports/thread/%3Cweb.5d23e03185121475799a5f510%40news.povray.org%3E/?tmax=100

TreeLimbJim is apparently pretty experienced in this area.  Perhaps you would
find some correspondence profitable.

With regard to the 2D array, in the thread referenced, I posted a link to
another [old] thread where you can make a master array out of arrays of
different types.  Presumably this is functionally identical to a 2D array, but I
guess it fools POV-Ray into it's an array of ... arrays.

If all else fails, there's no reason not to wrap scalar values into vector data
types.  Scale and transparency would easily sit in <S, T> and solve the problem.

Of course, with THAT much data, I might be tempted to see how tightly I could
pack it...

https://stackoverflow.com/questions/919612/mapping-two-integers-to-one-in-a-unique-and-deterministic-way/919661#919661

The comments here are great:
https://stackoverflow.com/questions/11439796/how-can-i-encode-two-numbers-in-a-single-integer

I have, on more than one occasion, started perusing some really interesting
code, admiring the topic, the ingenuity, puzzling over parts of it, gasping at
the insanity of the undertaking ...   and wondering Who the F--- WROTE this
crazy ....?

Oh.   It was me.   :O  :|

:D

I think my latest project may be veering over that line...


Post a reply to this message

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