User:Sylvain: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
Line 6: Line 6:


==GPU Filters for VTK==
==GPU Filters for VTK==
 
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.
===Streamline Visualization===
===Streamline Visualization===
[[Image:TestTubeActorStreamLines.png]]
[[Image:TestTubeActorStreamLines.png]]
===Streamline Visualization with arrows===
===Streamline Visualization with arrows===
[[Image:TestArrowTubeActor.png]]
[[Image:TestArrowTubeActor.png]]
===Streamline Visualization with texture===
===Streamline with texture===
[[Image:TestTextureTubeActor.png]]
[[Image:TestTextureTubeActor.png]]
===Streamline Visualization with varying radius===
===Streamline with numbers===
Note that the numbers are oriented correctly on the Vertex Shader. The text always faces the camera even during rotations.
[[Image:TestCellIdTubeActor0.png]]
[[Image:TestCellIdTubeActor1.png]]
[[Image:TestCellIdTubeActor2.png]]
[[Image:TestCellIdTubeActor3.png]]
===Streamline with varying radius===
[[Image:TestStreamLinesVaryingRadius.png]]
[[Image:TestStreamLinesVaryingRadius.png]]

Revision as of 23:53, 29 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.

Error creating thumbnail: Unable to save thumbnail to destination

GPU Filters for VTK

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.

Streamline Visualization

Error creating thumbnail: Unable to save thumbnail to destination

Streamline Visualization with arrows

Error creating thumbnail: Unable to save thumbnail to destination

Streamline with texture

Error creating thumbnail: Unable to save thumbnail to destination

Streamline with numbers

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

Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination

Streamline with varying radius

Error creating thumbnail: Unable to save thumbnail to destination