E
dit
A
ttach
P
rintable
r2 - 02 Jun 2006 - 03:38:53 -
EdwardDale
You are here:
TWiki
>
GRAPEcluster Web
>
EdwardDale
?
>
InnerStructureSplatting
>
InnerStructureSplattingMovies
>
DensityCalculation
The density shown in the movies at
InnerStructureSplattingHistory
and
InnerStructureSplattingMovies
is calculated as such:
Parameters (in bold)
level (0 = leaf nodes)
alphaScale
scale
power
Each line of the input file is inserted into a
PrOctree
?
. (
OctreeExtractor
?
)
The mass of every leaf node in the tree is added to a
SumOctree
?
. (
DensityClassifier
?
)
A new leaf node containing the particle mass is added at the bottom level of the
SumOctree
?
.
The particle mass is added to the parent (internal) node's mass recursively until the top node is reached.
Now for every internal node in the
SumOctree
?
, at every level, the sum of the mass of all of the particles in that division of space is stored.
The sum for every node at a certain level is then manipulated in a way to get an RGBA value. (
DensitySplatter
?
)
For each node at a certain
level
, calculate
h=(node.sum/
scale
)^
power
.
Convert h to an RGB value using
Hsb2Rgb
.
Convert h to an alpha value using
a = h*
alphaScale
--
EdwardDale
- 01 Jun 2006
E
dit
|
A
ttach
|
P
rintable
|
R
aw View
|
Backlinks:
We
b
,
A
l
l Webs
|
H
istory
: r2
<
r1
|
M
ore topic actions
GRAPEcluster
General Information
Overview
What's New
People
MailingList
GrapeCluster
?
Copyright
Technology
Resources
Documentation
Documentation
Repository
BinaryEvolutionMovies
Movies
Software
Publications
Presentations
Images
WhitePapers
References
Related Projects
GUI Development
MovieMaker
?
GUI
3D Input Devices
Fly Through Path
Related Sites
RIT
Computer Science
Astrophysics Group
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback