parallel painting (Composition by dust)

Author: dust
License:
Date: 2011.07.22
Compatibility: 10.6, 10.7
Categories:
Required plugins:
(none)

this is a simple parallel painting patch. it is sort of like the mouse ribbon example but uses open cl to queue in parellel.

normally a js or iteration queue can handle maybe 100 indexes smoothly maybe even up to 1000+ on a decent machine without completely blowing up. using open cl to queue makes it possible to queue up millions of indexes without taking a performance hit at all.

what does this mean ? you can draw a really freaking long line.

this is an example of using what i call parallel painting in 3d textured ink...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

franz's picture
Re: parallel painting (Composition by dust)

3 fps on a latest MBP ati 6750M 10.6.8 .... wtf ?????

dust's picture
Re: parallel painting (Composition by dust)

what happens if you queue up just 10,000 instead of a million ?

im getting 30+fps @ HD 1080 screen size with a million in the queue on a 9600M.

maybe your card is not supported in snow leopard. i thought all new macs should support open CL.

here is a list for lion..

NVIDIA GeForce 320M, GeForce GT 330M, GeForce 9400M, GeForce 9600M GT, GeForce 8600M GT, GeForce GT 120, GeForce GT 130, GeForce GTX 285, GeForce 8800 GT, GeForce 8800 GS, Quadro FX 4800, Quadro FX5600 ATI Radeon HD 4670, ATI Radeon HD 4850, Radeon HD 4870, ATI Radeon HD 5670, ATI Radeon HD 5750, ATI Radeon HD 5770, ATI Radeon HD 5870 AMD Radeon HD 6750M, AMD Radeon HD 6770M, AMD Radeon HD 6970M

looks like your card isn't supported. only AMD 6750M.

can you run the new final cut ?

if you ask me thats f#%^&* up. how can apple sell a "PRO" machine in 2011 that doesn't support CL. what if you bought that computer specifically to run a pro app like final cut ?

i'm bummed my 320M is on the supported list but doesn't work in lion ? it did work in snow leopard ?

kind of irritating. i consider my computer now a defective product that cost a lot of money. planned obsolescence is one thing but my air is brand new 2011.

(pic is with a million in the queue)

PreviewAttachmentSize
Screen Shot 2011-07-22 at 10.26.45 AM.png
Screen Shot 2011-07-22 at 10.26.45 AM.png2.24 MB

gtoledo3's picture
Re: parallel painting (Composition by dust)

Are you using GL Textures? Try running it without and see if it picks up. OpenCL can be supported without GL->CL Texture conversion being supported.

gtoledo3's picture
Re: parallel painting (Composition by dust)

dust wrote:
what happens if you queue up just 10,000 instead of a million ?

im getting 30+fps @ HD 1080 screen size with a million in the queue on a 9600M.

maybe your card is not supported in snow leopard. i thought all new macs should support open CL.

here is a list for lion..

NVIDIA GeForce 320M, GeForce GT 330M, GeForce 9400M, GeForce 9600M GT, GeForce 8600M GT, GeForce GT 120, GeForce GT 130, GeForce GTX 285, GeForce 8800 GT, GeForce 8800 GS, Quadro FX 4800, Quadro FX5600 ATI Radeon HD 4670, ATI Radeon HD 4850, Radeon HD 4870, ATI Radeon HD 5670, ATI Radeon HD 5750, ATI Radeon HD 5770, ATI Radeon HD 5870 AMD Radeon HD 6750M, AMD Radeon HD 6770M, AMD Radeon HD 6970M

looks like your card isn't supported. only AMD 6750M.

can you run the new final cut ?

if you ask me thats f#%^&* up. how can apple sell a "PRO" machine in 2011 that doesn't support CL. what if you bought that computer specifically to run a pro app like final cut ?

i'm bummed my 320M is on the supported list but doesn't work in lion ? it did work in snow leopard ?

kind of irritating. i consider my computer now a defective product that cost a lot of money. planned obsolescence is one thing but my air is brand new 2011.

(pic is with a million in the queue)

Does the new Final Cut use OpenCL in any way?

I've done a lot of OpenCL stuff, and I consider it really niche and sketchy in support, though potentially useful. I wouldn't want to make a commercial app that uses it for Mac that had to run OK across the Mac line, because the support is totally fair-weather and inconsistent. Consider that there wasn't even notation of known language change/breakage in Read Me notes.

M.Oostrik's picture
Re: parallel painting (Composition by dust)

Good stuff Dust! I'll start up my hackinbeast to take a dive into the code

dust wrote:
here is a list for lion..

NVIDIA GeForce 320M, GeForce GT 330M, GeForce 9400M, GeForce 9600M GT, GeForce 8600M GT, GeForce GT 120, GeForce GT 130, GeForce GTX 285, GeForce 8800 GT, GeForce 8800 GS, Quadro FX 4800, Quadro FX5600 ATI Radeon HD 4670, ATI Radeon HD 4850, Radeon HD 4870, ATI Radeon HD 5670, ATI Radeon HD 5750, ATI Radeon HD 5770, ATI Radeon HD 5870 AMD Radeon HD 6750M, AMD Radeon HD 6770M, AMD Radeon HD 6970M

Anyone tested CL on Ati Cards for Lion? I'm was hoping so much Lion would mean improved stability for Ati + CL...

dust's picture
Re: parallel painting (Composition by dust)

i don't have fcpX but according to khronos it has been rebuilt from the ground up to extensively take advantage of open cl.

http://www.khronos.org/news/permalink/final-cut-pro-x-offers-opencl-support

dust's picture
Re: parallel painting (Composition by dust)

Ties I should have gone bigger with a hackinbeast instead of going small to accommodate the little guys. live and learn