Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Combining OpenCL and OpenGL > Interoperability and animation

15.4. Interoperability and animation

If a 3-D model doesn’t change over time, it doesn’t make a significant difference whether the rendering is performed by a GPU or a CPU. But when hundreds of thousands of pixels need to be updated with each frame, it becomes vital to perform as much processing on the GPU as possible. OpenCL can assist with this computation, and this section will demonstrate how OpenGL-OpenCL interoperability can be used to implement animation.

Specifically, the discussion will focus on drawing a sphere that spins around its vertical axis. Figure 15.2 shows what the target rendering looks like.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint