r2 - 02 Jun 2006 - 03:38:53 - EdwardDaleYou 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

  1. Each line of the input file is inserted into a PrOctree?. (OctreeExtractor?)
  2. The mass of every leaf node in the tree is added to a SumOctree?. (DensityClassifier?)
    1. A new leaf node containing the particle mass is added at the bottom level of the SumOctree?.
    2. The particle mass is added to the parent (internal) node's mass recursively until the top node is reached.
    3. 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.
  3. The sum for every node at a certain level is then manipulated in a way to get an RGBA value. (DensitySplatter?)
    1. For each node at a certain level, calculate h=(node.sum/ scale )^power .
    2. Convert h to an RGB value using Hsb2Rgb.
    3. Convert h to an alpha value using a = h*alphaScale

-- EdwardDale - 01 Jun 2006

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
General Information
Technology
  • Resources

Documentation
Repository
Related Projects
  • GUI Development
  • MovieMaker?
  • GUI
  • 3D Input Devices
  • Fly Through Path

Related Sites

 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback