6. 初級:画像・動画

6.1. はじめに

この使用例では、PowerPointのスライドに写真やムービーを追加する方法を紹介します。

6.2. スクリーンショットを保存する

  • paraview を起動します。

  • can.ex2を開きます。

  • Apply を実行します。

  • オブジェクトを回転させ、位置を決めます。

  • File → Save Screenshot.

    • Save only selected view は、ウィンドウ全体、または選択されたビューを保存します。

    • 出力ファイルのサイズを変更します。paraview は、現在のビューよりもかなり大きなファイルを保存することができることに注意してください。これは、オフスクリーンメモリで行われます。

    • 画質はそのままにします。

    • カラーパレットをオーバーライドすることで、例えば背景色を白に変更することができます。

    • ステレオモードでは、ステレオ画像を保存することができます。

  • OK を押します。

    • 画像は.pngまたは.jpgで保存してください。.pngの方がきれいなフォーマットですが、.jpgの方がサイズが小さくなる場合があります。

  • ファイル名を付けて保存してください。OK を押します。

パワーポイントでは:

  • 新しいスライドを追加します。

  • 次に、Insert → Picture→ From File... をクリックし、前項で保存したファイルをピックアップします。

  • マウスの左ボタンを押しながらドラッグすると、好きな場所に移動することができます。

  • 画像の四隅をつかんでドラッグすることで、画像を小さくすることができます。

6.3. アニメーションを保存する(動画を作成する)

  • paraview を起動します。

  • can.ex2を開きます。

  • Apply を実行します。

  • オブジェクトを回転させ、位置を決めます。

  • File → Save Animation.

    • Leave Frame Rate and No. of Frames alone.

    • 出力ファイルのサイズを変更します。paraview は、現在のビューよりもかなり大きなファイルを保存することができることに注意してください。これは、オフスクリーンメモリで行われます。

    • タイムステップの範囲を設定します。

    • ステレオモードでは、ステレオ画像を保存することができます。

  • OK を押します。

    • 動画を保存します。 画像を.pngや.jpgで保存し、後処理で.aviや.movファイルにするのも良い方法です。この方法で、動画と個々のフレームを手に入れることができます。.pngの方がきれいなフォーマットですが、.jpgの方がサイズが小さいかもしれません。

    • You can also save a subset of the whole movie. this is useful if you are running out of wall time on a cluster. Use the Advanced icon (little gear at the top right), then scroll down to the controls at the bottom of the dialog box.

  • ファイル名を付けて保存します。

  • OK を押します。

パワーポイントでは:

  • 新しいスライドを追加します。

  • 次に、Insert → Movies and Sounds → Movie from File をクリックします。

  • ムービーのある場所を参照します。

  • ファイルを選択します。

  • OK を押します。

  • スライドショーを自動で行うか、クリックしたときに行うかを決めます。

  • 最後に、このファイルはPowerPointのスライドに挿入されないことを覚えておいてください。

  • このファイルは、選択したときと同じコンピュータの同じ場所にあることが望まれます。

6.4. A few notes on file formats for movies.

  • You can make .avi files directly on Windows, Linux or Mac.

  • ParaView will create .mp4 movies on Windows, but not Mac or Linux. We can only create mp4s if the OS supplies the codec.

  • If you are trying to make movies on Linux or Mac, or are making movies for a powerwall, one option is to use format .png or .jpg. Then, if you want .avi files for use with PowerPoint, convert these movies to .avi format as needed. One option is to use ffmpeg. Another option is to use enve, which is available with EnSight.

Examples converting a stack of images to movies (mp4 or avi) using ffmpeg is: - ffmpeg -r 1 -i deleteMeAFfmpegTest.0%03d.png -vf fps=25 out.mp4 - ffmpeg -r 1 -i deleteMeAFfmpegTest.0%03d.png -vf fps=25 out.avi

Movie players (play a movie)

  • A great option for an opensource video/movie player is VLC. VLC can be installed on Windows, Mac or Linux.

6.5. Export Scene

Export Scene may export all the geometry, coloring, background colors, and possibly other elements in the current scene to a 3D file format that can contain those elements and which can be loaded into other programs for 3D viewing. Examples of formats are Alembic and glTF. The Export Scene feature is selected from the main menu: File → Export Scene.

Export Scene は、次のように使用できます。

  • ビューポートに表示されているものを.webglファイルとして作成します。.htmlファイルが書き出され、ウェブブラウザで読み込むことができる。このフォーマットにより、誰でもウェブブラウザで読み込むことができるインタラクティブなデータプロダクトを作成することができます。

  • ビューポートに表示されている内容を.pdfファイルとして作成します。