Version: 1.4

Posted: 2009-09-24

Build Requirements: Mac OS X v10.6, Xcode 3.2

Runtime Requirements: Mac OS X v10.6

View Source Code:

Download Sample Code (“OpenCL_Procedural_Geometric_Displacement_Example.zip”, 6.87M)



Description

This example shows how OpenCL can bind to existing OpenGL buffers to avoid copying data back off a compute device when using the results for rendering. This is demonstrated by displacing the vertices of an OpenGL managed vertex buffer object (VBO) using a compute kernel which calculates several octaves of procedural noise to push the resulting vertex positions outwards and calculate new normal directions using finite differences.

Document Revision History

Date Notes
2009-09-24Updated to adapt to API changes.
2009-05-13Updated to new API.
2009-04-02Updated to 10A286 seed interfaces. Update to latest CL API changes in OpenCL-1.0.33.
2009-01-29OpenCL Procedural Geometric Displacement Example