Nexus version of Perlin simple VBO example from Doctor Dobb's Journal Part 18
For convenience, this code snippet provides a version of the Parallel Nsight code that is pretty much ready to build in Visual Studio.
- Expand the zip file, which creates the director VS_DDJ018_VBO.
- Copy the common directory from the NVIDIA SDK distribution (shown below) to VS_DDJ018_VBO. This places the required dlls, include files, and packages where the Visual Studio project expects them.
- Double-click on the Visual Studio project file in VS_DDJ018_VBO\VS_DDJ018_VBO\DDJ018_VBO\DDJ018_VBO to start.
- Build the project by clicking on Build | Build Project.
- Right click on project in the Solution Explorer window and select Nsight User Properties
- Change localhost in Connection Name to the remote IP address (e.g. 10.37.130.3) or the hostname of the target machine that is running the Parallel Nsight monitor.
- The project is ready to run.
Note that there are three #define statements in simpleVBO.cpp that define what OpenGL rendering call is to be used. These are:
- PRIMITIVE_RESTART: This utilizes the primitive restart as described in part 18 of my Doctor Dobb’s article series.
- SIMPLE_ONE_BY_ONE: Draws each TRIANGLE_FAN separately.
- MULTI_DRAW: Utilizes the OpenGL glMultiDrawElements() API call.