![]() |
![]() |
![]() |
![]() |
illuminated_lines
Synopsis
Display of Illuminated Field Lines using texture mapped illumination model on polylines with line halo and animation effects.
Input Port
Parameters
Rendr mode toggle controls, to set various modes of display and line treatment
Parameters for effect (active number of segments for effect, followed by inactive 'spacing' segments)
Output Port
Description
Computer graphics techniques have long been used as an investigative tool for computational fluid dynamics (CFD). Many techniques are in common use, including vector arrow plots, contours, isosurfaces, cut planes, streamlines and particle animation. The main problem with 3D-flow visualization is the comprehension of the spatial structures of a flow field. The ability to view a real-time animated display of surface as well as flow-field information allows the investigator to rapidly pinpoint key areas of study.
Illuminated lines is method for using a dynamic texture map on 3D polylines to represent field streamlines for the purpose of visualizing continuous fluid dynamics fields. The method combines stream lines and particle animation into one hybrid technique, and employs texture display on lines to represent full 3D lighting, motion and 3D flow structure in one view. The technique exploits texture graphics systems in common use for games, and achieves high graphics efficiency during animation. In AVS/Express, Illuminated lines is implemented using a custom OpenGL render method. Thus the technique is only available when using the OpenGL renderer.
The input for illuminated lines must be a poly-line cell-set (unstructured) field such as produced by the MODS.streamline macro. This means that streamline must not be run in "ribbons" mode, because it puts out quad cells that illuminated_lines cannot use. There is no literal dependency between illumniated lines and streamline, although in practice, almost all real applications using illuminated_lines will also have a streamline ahead of illuminated_lines. DV_OGL.illuminated_lines has no field output, only a renderable GDobject output.
This module requires OpenGL rendering to be active. Objects used in the construction of this system require the AVS/Express Developer Edition.
This module requires the input mesh to contain one Polyline cell set. Any other type of cell set will be rejected, and any additional cell sets will be ignored. Any scalar node data may be present, or none for purely geometric display. Any special id node data (color, rgb, etc.) and any cell data is ignored.
The implementation of the project is done by creating a custom render method that connects to the Graphics Display kit in AVS/Express. Any time the viewer refreshes or does a new scene update, it calls this custom method to perform the object draw. This method then contains the appropriate OpenGL calls to implement the illuminated line technique. If this module is used with another renderer, such as the software renderer or the "OutputImage" module, lines will be drawn in the default mode with illuminated line features turned off.
Input
Parameters
Tightness of specular reflection, low values are dull, wide reflections, high values are small spot reflections.
Controls line width. Normal 1-pixel lines are 1, can be increased in whole increments. Wide lines are drawn in 2D screen space, not full 3D ribbons. If you want full ribbons, use streamline module ribbon mode.
Variable transparency of all lines. A value of 1.0 is fully opaque, while a value of zero makes lines invisible.
If node data is present, this controls the relative mix of data color and shading color. A value of zero sets full contribution of data color, while at 1.0 no data color is used and the line shade is dominated by illumination effects.
This mode assists visual quality when transparency or antialiasing modes are used, helping to reduce artifacts caused by non-depth sorted line crossings.
This effect, sometimes called "smooth lines" blends the drawing of lines to create a smooth effect, reducing the effects of "jaggies" at pixel resolution.
This enables an additional interpolation mode for blended node data colors. In the off state, data is sampled once per line segment. When enabled, linear interpolation is used between end points of each segment. This can be helpful if large gradients are present on low resolution polylines.
The width control for the halo effect defines the size of the transparent mask region added to the edge of each line. A value of zero turns off the halo effect.
This toggle controls the application of line segment variable modulation effects. When off, all lines are uniformly shaded and have constant width.
This choice selects the style of effect variation. Stair creates a linearly increasing or decreasing value, while step makes a binary chop effect.
In stair mode, the blending can be selected to start small then get big, or the reverse or both. The values are down, up, up&down respectively.
In this mode the line segment varies in transparency from completely transparent to opaque.
In this mode the line width is varied between 1 (very thin) to fat, based on the effect modes and shape controls.
As the animation effect is applied between two zones, such as the dash and the space between the dash, this toggle reverses the area where the effect is applied.
If enabled, the animation loop continues forever in a cyclic fashion. If unset, the animation stops after once complete cycle. This is similar to the cycle parameter of the "Loop" module.
Output Port
Example
Libraries.Examples.Vizualization.IlineSpiralNoLight
Libraries.Examples.Vizualization.IlineSpiralHalo
File
See also related modules
![]() |
![]() |
![]() |
![]() |