I’ve been working on a port of Paul Bourke’s Marching-Cubes implementation
http://local.wasp.uwa.edu.au/~pbourke/g … olygonise/
trying to make an OpenCL version. I’m now wondering if this is in fact going to be possible, though.
I envisage the stumbling-block being the fact that the kernel needs to return an array containing a variable number of vertices, depending on the input texture (the plan is to use it to render slabs of consecutive pairs of slices through a 3D volume).
I know OpenCL is sensitive about memory-management, so I suspect the answer may be ‘no’, but can anyone tell me definitively if this would in fact be possible? I know I’ve posted on this before, so apologies if you’ve read a similar cry for help in the past, but I never got a definitive answer.
I’ve seen code for a CUDA marching-cubes implementation, incidentally. I don’t know if the fact it works in CUDA makes it necessarily more likely to be possible in OpenCL…