User:Sylvain: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
 
(103 intermediate revisions by 6 users not shown)
Line 1: Line 1:
=== crontab on MacOS ===
==Redesign of VTK==
* Example
The next version of VTK will support OpenGL 2.0 and GPU Filters.
  crontab -e
The illustration below shows the new Rendering Pipeline of VTK.
  00 20 * * * ctest -S myScript.cmake > myScript.log 2>&1


* Problem:
[[Image:ShaderDeviceAdapter.png]]
When I create a cronjob with
  crontab -e
I get the error message:
  crontab: temp file must be edited in place


* Solution:
==Streamline Visualization on the GPU==
Use the 'nobackup' option in VI:
Lines are converted to Triangle Strips on the CPU.
  :set nobackup
Then the Vertex Shader orients the triangle strips to face the camera.
  crontab: installing new crontab
Finally the Fragment Shader colors the pixels based on the reflection equation on a cylinder.
The resulting image can be textured with arrows, text, or numbers to convey additional information.


=== Install X11 on MacOS ===
[[Image:TubePainter.png]]
To install ParaView-2.4.4, you need to install X11.
* Insert 'Mac OS X Install Disc 1'
* Scroll down to 'Optional Installs'
* Click 'Continue', 'Continue', 'Accept'
* Select 'Applications', click on the arrow in front of Applications
* Select 'X11'
* Click 'Upgrade', enter your password, click 'Ok'


=== Setup CMake for ICC ===
==Streamlines with a cylinder reflection model==
To configure a project to use the Intel compiler icc,
The Vertex Shader orients the triangle strips toward the camera.
set CC and CXX *before* you run cmake.
The FragmentShader applies a cylinder reflection model to give this tube appearance.
Type is the terminal:
[[Image:TestTubeActorStreamLines.png]]


  CFLAGS= CXXFLAGS=
==Streamlines with arrows==
  CC=/opt/intel_cc_81/bin/icc
The Fragment Shader creates a triangle and orients it based on the value of a vertex attribute.
  CXX=/opt/intel_cc_81/bin/icpc


Then run cmake or ccmake.
[[Image:TestArrowTubeActor.png]]


=== Headers for Cross-platform Projects ===
==Streamlines with RGBA texture==
The Fragment Shader applies a texture on the streamlines to visualize additional information.


  #include <stdio.h>  // for sscanf
[[Image:TestTextureTubeActor.png]]


=== Install Qt OpenSource for VCExpress (VS2005) ===
==Streamlines with numbers==
* Install VCExpress AND Platform SDK
Note that the numbers are oriented correctly on the Vertex Shader. The text always faces the camera even during rotations.
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools
 
* Using Windows Unzip, extract qt-win-opensource-src-4.2.2.zip and acs-4.2.2-patch1.zip to c:/qt/qt-win-opensource-src-4.2.2
[[Image:TestCellIdAnimation.gif]]
http://www.paraview.org/Wiki/Obtaining_GPL'ed_Qt_for_Windows
 
* Edit C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat
Close up on the texture of the streamlines.
* Add path to Platform SDK bin, include and lib:
 
  C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
[[Image:TestCellIdTubeActor1.png]]
  C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
 
  C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
==Streamlines with a varying radius==
* Launch Start > All Programs > Visual C++ Express Edition > Visual Studio Tools > Visual Studio 2005 Command Prompt
 
* cd ..; cd qt; cd qt-win-opensource-src-4.2.2
[[Image:TestStreamLinesVaryingRadius.png]]
  patch -p1
* qconfigure.bat msvc2005; type yes to all
* Configure ParaView3 using CMake; Compile using MSVC2005

Latest revision as of 23:21, 31 August 2007

Redesign of VTK

The next version of VTK will support OpenGL 2.0 and GPU Filters. The illustration below shows the new Rendering Pipeline of VTK.

ShaderDeviceAdapter.png

Streamline Visualization on the GPU

Lines are converted to Triangle Strips on the CPU. Then the Vertex Shader orients the triangle strips to face the camera. Finally the Fragment Shader colors the pixels based on the reflection equation on a cylinder. The resulting image can be textured with arrows, text, or numbers to convey additional information.

TubePainter.png

Streamlines with a cylinder reflection model

The Vertex Shader orients the triangle strips toward the camera. The FragmentShader applies a cylinder reflection model to give this tube appearance. TestTubeActorStreamLines.png

Streamlines with arrows

The Fragment Shader creates a triangle and orients it based on the value of a vertex attribute.

TestArrowTubeActor.png

Streamlines with RGBA texture

The Fragment Shader applies a texture on the streamlines to visualize additional information.

TestTextureTubeActor.png

Streamlines with numbers

Note that the numbers are oriented correctly on the Vertex Shader. The text always faces the camera even during rotations.

TestCellIdAnimation.gif

Close up on the texture of the streamlines.

TestCellIdTubeActor1.png

Streamlines with a varying radius

TestStreamLinesVaryingRadius.png