Results 1 to 2 of 2

Thread: Polygon graphics library in OpenCL?

  1. #1
    Junior Member
    Join Date
    Jun 2010

    Polygon graphics library in OpenCL?

    Is there a library in OpenCL that can render polygons into a frame buffer? I currently have an application in OpenGL where I'm doing some of the processing in a shader, the end result is an image though. I was hoping to use OpenCL for several reasons. First, the GLSL shader language is very ugly and implementations vary and some are buggy (stuff seems to work on ATI cards that doesn't on nVidia cards, break statements don't always work, for loops from i to n where n is a uniform variable don't work, it's a nightmare). Second a single OpenGL context is very restrictive. Yes it's fast, but I can only do one computation using the GPU at a time. I was hoping OpenCL implementations you can initialize a context, carve off some space on the card and it will be independent of another process that I initialize.

    This may seem like a silly question. Of course there's OpenGL that is specifically designed for polygon rendering. Well unfortunately hardware like the Tesla cards don't support OpenGL. There is Quadro cards (or GeForce) but these cards don't have nearly as much memory or processing units. Also I think the interaction between OpenCL and OpenGL will be clunky (I haven't actually tried coding it). First, I don't know how to initialize OpenGL context to use a specific card, what if I have 2 Tesla cards in my machine? They are not SLIed. In OpenCL you'll specify which hardware to use for the context. But OpenGL context initialization doesn't seem to have that.

    Anyway, what do people normally do when they want to visualize the result of their OpenCL computing?

  2. #2
    Senior Member
    Join Date
    May 2010
    Toronto, Canada

    Re: Polygon graphics library in OpenCL?

    Anyway, what do people normally do when they want to visualize the result of their OpenCL computing?
    I don't want to sound snarky, but they use OpenGL. OpenCL is designed to make it easy to share data back and forth with OpenGL.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. Replies: 1
    Last Post: 07-27-2012, 12:06 PM
  2. Polygon smoothing
    By MarkR in forum OpenGL ES
    Replies: 0
    Last Post: 04-30-2003, 06:14 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
Proudly hosted by Digital Ocean