Results 1 to 2 of 2

Thread: Create Vertex Array With No Input

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    18

    Create Vertex Array With No Input

    Is it possible to have an OpenCL Kernel create a array of vertices from scratch (ie with no input)?

    a\x
    http://machinesdontcare.wordpress.com

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: Create Vertex Array With No Input

    Sure. You can create any data you want in an OpenCL kernel. Of course if your kernel has absolutely no input it would have to create the same data every time, but you might use OpenCL to generate a set of vertices based on a description. (E.g., pass in character pose data and a character map and have OpenCL generate the vertices of the posed character.) In general you can use OpenCL anywhere in your OpenGL rendering pipeline if CL/GL interaction is supported to do all sorts of cool stuff.

Similar Threads

  1. Can I only Create a Pbuffer without create a window surface
    By sunim in forum Cross API and window system integration
    Replies: 3
    Last Post: 02-04-2012, 12:14 PM
  2. show texture with vertex array routine
    By jackhat25 in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 03-26-2009, 06:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •