Changes between Version 5 and Version 6 of Examples/Brain


Ignore:
Timestamp:
04/11/17 12:51:27 (7 years ago)
Author:
Herwig Zilken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Examples/Brain

    v5 v6  
    130130}}}
    131131
    132 == Prototyping the movie
     132== Prototyping the Movie
    133133Later 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.
    134134
     
    136136It 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.
    137137
    138 == Generating the movie with a Python script
     138== Generating the Movie by Python Scripting
    139139In the next sections the resulting Python script is shown step by step.
    140140=== Preliminary Steps
     
    157157
    158158=== Loading the Data
    159 The data is loaded and then visualized with the [http://www.ospray.org/ OSPRay] volume renderer:
     159The data is loaded and then visualized with the [http://www.ospray.org/ OSPRay] volume renderer. Proper color and opacity functions are set.
    160160{{{
    161161#!python
     
    173173vervetDisplay.ScaleFactor = 0.09998712839442306
    174174vervetDisplay.SelectScaleArray = 'PLI'
     175
     176pLILUT = GetColorTransferFunction('PLI')
     177pLILUT.ScalarRangeInitialized = 1.0
     178pLILUT.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]
     179pLILUT.ColorSpace = 'RGB'
     180
     181# get opacity transfer function/opacity map for 'PLI'
     182pLIPWF = GetOpacityTransferFunction('PLI')
     183pLIPWF.Points = [0.0, 0.0, 0.5, 0.0,   254.0, 1.0, 0.5, 0.0]
     184pLIPWF.ScalarRangeInitialized = 1
    175185}}}
    176186
    177187=== 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 in PositionPathPoints of the first keyframe.
     188To 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.
    179189{{{
    180190#!python