Graphics Updates in ArrayFire v3.4

Pradeep Announcements, ArrayFire, OpenGL Leave a Comment

This post outlines the new graphics features available in ArrayFire v3.4:  Vector Fields, Overlays

Vector Fields

We have added visualization support to render ArrayFire array objects as vector fields. An example of how to visualize vector fields is included in ArrayFire v3.4. A screenshot of this example's output in multi-view mode is shown below, showcasing both static and dynamic vector field rendering.

vfield

Overlays

Previously, each graph (such as plot, hist, scatter, etc) was rendered in its own window (or view). Overlaying graphs was not supported. ArrayFire v3.4 now support graph overlays.

Each draw call in ArrayFire is either rendered to a whole window (single view) or to a view, which is a portion of the screen obtained in multiview mode.

The following image is an example of a graph overlay:

multipleplot

The following graphs support overlay if they are of same type of object (2d/3d):

plot plot3
histogram histogram
surface surface
vector fields vfield

Animations

ArrayFire v3.4 includes the following examples of producing fun animations based on simple equations: conway, conway_pretty, gravity, and julia fractal.

conway conway_pretty gravity julia

Behavioral Changes

In previous versions of ArrayFire, axes limits were computed automatically to fit the data. In ArrayFire v3.4, users are required to set axes limits, as shown below:

The code above produces the output below. You can find the complete example here.

plot2d

Miscellaneous Change

Removed GLEW and replaced with glbinding.

Download

ArrayFire v3.4 can be downloaded from these locations:

Community

ArrayFire is continually improving through the addition of new visualization functions. We welcome your feedback:

Finally, as you find success with ArrayFire, we invite you to contribute a post to this blog to share with the broader community. Email scott@arrayfire.com to contribute to this blog.

Facebooktwittergoogle_plusredditlinkedinmail