O'Reilly logo

OpenGL Data Visualization Cookbook by William C. Y. Lo, Raymond C. H. Lo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a 3D plot with perspective rendering

In the previous chapter, we showed a heat map of a 2D Gaussian distribution with varying standard deviation over time. Now, we will continue with more advanced rendering of the same dataset in 3D and demonstrate the effectiveness of visualizing multi-dimensional data with OpenGL. The code base from the previous chapter will be modified to enable 3D rendering.

Instead of rendering the 2D Gaussian distribution function on a plane, we take the output of the Gaussian function Creating a 3D plot with perspective rendering as the z (height) value as follows:

Here A is the amplitude of the distribution centered at , and are the standard deviations (spread) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required