Incorporation of structs in jocl

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Incorporation of structs in jocl

joedizzle
First of all I want to congratulate the jogamp team for an excellent job, especially jogl, jocl and the new website.

I've been slowly following the development of jogl and especially jocl. For now I know U know the hype surrounding GPU programming with development of GPU accelerated path tracers like octane, arion, iray and luxrender(GPU version). I'm very interested in creating one but the hurdle I've noticed is that jocl doesn't support structs officially. The only implementation I've seen is http://www.jocl.org/utilities/utilities.html

I don't know if it's under consideration in future implementation in jocl since it can be helpful in path tracing. I can create an accelerated structure like an octree made of hierarchical bounding boxes, align them in an array and pass them to the GPU. The implementation of bounding box is well suitable with structs. Is the implementation of structs in jocl under consideration?

Thank you,

Joe.
Reply | Threaded
Open this post in threaded view
|

Re: Incorporation of structs in jocl

Michael Bien
Hi (hey) Joe, ;)

On 06/29/2010 08:25 AM, Joe Mwangi [via jogamp] wrote:
First of all I want to congratulate the jogamp team for an excellent job, especially jogl, jocl and the new website.

I've been slowly following the development of jogl and especially jocl. For now I know U know the hype surrounding GPU programming with development of GPU accelerated path tracers like octane, arion, iray and luxrender(GPU version). I'm very interested in creating one but the hurdle I've noticed is that jocl doesn't support structs officially. The only implementation I've seen is http://www.jocl.org/utilities/utilities.html
well, jocl supports structs. We even have an annotation driven binding called superglue project which automatically generates struct-objects from header files for this purpose.

But I had no time so far to improve this area... its still experimental. But look at the samples. Some of them are using structs (julia3d is a good candidate).



I don't know if it's under consideration in future implementation in jocl since it can be helpful in path tracing. I can create an accelerated structure like an octree made of hierarchical bounding boxes, align them in an array and pass them to the GPU. The implementation of bounding box is well suitable with structs. Is the implementation of structs in jocl under consideration?

Thank you,
no problem,


-michael


Joe.


View message @ http://jogamp.762907.n3.nabble.com/Incorporation-of-structs-in-jocl-tp929939p929939.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.


Reply | Threaded
Open this post in threaded view
|

Re: Incorporation of structs in jocl

Michael Bien
In reply to this post by joedizzle
e.g generated struct bindings:
http://github.com/mbien/jocl-demos/tree/master/src/com/jogamp/opencl/demos/julia3d/structs/
for this header:
http://github.com/mbien/jocl-demos/blob/master/src/com/jogamp/opencl/demos/julia3d/config.h

(works but will be improved in future)

-michael

On 06/29/2010 08:25 AM, Joe Mwangi [via jogamp] wrote:
First of all I want to congratulate the jogamp team for an excellent job, especially jogl, jocl and the new website.

I've been slowly following the development of jogl and especially jocl. For now I know U know the hype surrounding GPU programming with development of GPU accelerated path tracers like octane, arion, iray and luxrender(GPU version). I'm very interested in creating one but the hurdle I've noticed is that jocl doesn't support structs officially. The only implementation I've seen is http://www.jocl.org/utilities/utilities.html

I don't know if it's under consideration in future implementation in jocl since it can be helpful in path tracing. I can create an accelerated structure like an octree made of hierarchical bounding boxes, align them in an array and pass them to the GPU. The implementation of bounding box is well suitable with structs. Is the implementation of structs in jocl under consideration?

Thank you,

Joe.


View message @ http://jogamp.762907.n3.nabble.com/Incorporation-of-structs-in-jocl-tp929939p929939.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.