User:Sylvain: Difference between revisions
From KitwarePublic
Jump to navigationJump to search
Line 23: | Line 23: | ||
===Streamlines with numbers=== | ===Streamlines with numbers=== | ||
Note that the numbers are oriented correctly on the Vertex Shader. The text always faces the camera even during rotations. | Note that the numbers are oriented correctly on the Vertex Shader. The text always faces the camera even during rotations. | ||
[[Image:TestCellIdAnimation.gif]] | |||
[[Image:TestCellIdTubeActor0.png]] | [[Image:TestCellIdTubeActor0.png]] |
Revision as of 01:23, 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.
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.
Streamlines with a cylinder reflection model
Streamlines with arrows
Streamlines with RGBA texture
Streamlines with numbers
Note that the numbers are oriented correctly on the Vertex Shader. The text always faces the camera even during rotations.