Changes between Version 5 and Version 6 of Examples/Brain
- Timestamp:
- 04/11/17 12:51:27 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Examples/Brain
v5 v6 130 130 }}} 131 131 132 == Prototyping the movie132 == Prototyping the Movie 133 133 Later we will generate the movie by controlling the rendering process in !ParaView via a Python-script (pvpython). Before we can do this, we need to find out good camera positions for camera flights, proper color- and transparency-tables, maybe a volume of interest and so on. 134 134 … … 136 136 It is also very helpful to open the Python-Trace window of !ParaView, where most parameter changes made in the GUI are shown as Python commands. Those commands can, with little changes, be used in the final Python script for the movie generation. 137 137 138 == Generating the movie with a Python script138 == Generating the Movie by Python Scripting 139 139 In the next sections the resulting Python script is shown step by step. 140 140 === Preliminary Steps … … 157 157 158 158 === Loading the Data 159 The data is loaded and then visualized with the [http://www.ospray.org/ OSPRay] volume renderer :159 The data is loaded and then visualized with the [http://www.ospray.org/ OSPRay] volume renderer. Proper color and opacity functions are set. 160 160 {{{ 161 161 #!python … … 173 173 vervetDisplay.ScaleFactor = 0.09998712839442306 174 174 vervetDisplay.SelectScaleArray = 'PLI' 175 176 pLILUT = GetColorTransferFunction('PLI') 177 pLILUT.ScalarRangeInitialized = 1.0 178 pLILUT.RGBPoints = [0.0, 0.33, 0.33, 0.5, 27.0, 1.0, 1.0, .9, 51.0, 0.9, 0.9, 0.0, 65.0, 0.9, 0.0, 0.0, 254.0, 0.0, 0.0, 0.0] 179 pLILUT.ColorSpace = 'RGB' 180 181 # get opacity transfer function/opacity map for 'PLI' 182 pLIPWF = GetOpacityTransferFunction('PLI') 183 pLIPWF.Points = [0.0, 0.0, 0.5, 0.0, 254.0, 1.0, 0.5, 0.0] 184 pLIPWF.ScalarRangeInitialized = 1 175 185 }}} 176 186 177 187 === Camera Animation: Path-based 178 To orbit around the data (rotate the data), the camera can be animated in orbit mode. The !CameraTrack and the !AnimationScene are used in conjunction with two keyframes to render 100 images. Please note that in 'Path-based' mode the camera parameters of ALL camera positions on the track are stored inPositionPathPoints of the first keyframe.188 To orbit around the data (rotate the data), the camera can be animated in 'Path-based' mode. The !CameraTrack and the !AnimationScene are used in conjunction with two keyframes to render 100 images. Please note that in 'Path-based' mode the location of ALL camera positions on the track are stored in !PositionPathPoints of the first keyframe. 179 189 {{{ 180 190 #!python