Chapter 3. Interactive 3D Data Visualization
In this chapter, we will cover the following topics:
- Setting up a virtual camera for 3D rendering
- Creating a 3D plot with perspective rendering
- Creating an interactive environment with GLFW
- Rendering a volumetric dataset – MCML simulation
Introduction
OpenGL is a very attractive platform for creating dynamic, highly interactive tools for visualizing data in 3D. In this chapter, we will build upon the fundamental concepts discussed in the previous chapter and extend our demos to incorporate more sophisticated OpenGL features for 3D rendering. To enable 3D visualization, we will first introduce the basic steps of setting up a virtual camera in OpenGL. In addition, to create more interactive demos, we will introduce the use of GLFW callback functions for handling user inputs. Using these concepts, we will illustrate how to create an interactive 3D plot with perspective rendering using OpenGL. Finally, we will demonstrate how to render...