Example 4: Volume rendering of a galaxy interaction simulation

Volume rendering of a single time step from a Gadget-2 galaxy interaction simulation. The simulation comprises 60 000 particles, which are mapped onto a 403-cell cubic mesh using the triangular-shaped cloud smoothing algorithm. The counts in each cell, nijk, are scaled by log10(1+nijk), and then normalized to lie in the range 0-100. The S2PLOT ns2cvr() and ds2dvr() functions were originaly used to create and display the real-time volume rendered cube, and the latter function has been re-implemented in Action Script 3 for use on a Web page. Papervision3D does not provide texture smoothing as this is computationally expensive in software, hence the pixelated appearance of the render.
Back