Search:

Type: Posts; User: toneburst

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,421

    Casting int2, float2

    Stupid question, probably, but, why does

    float2 charSizef = (float2)(charSize.x, charSize.y);
    work, whereas

    float2 charSizef = (float2)charSize;
    Doesn't, where charSize is an int2 input to my...
  2. Thread: Work Item

    by toneburst
    Replies
    2
    Views
    1,110

    Re: Work Item

    Hi David,

    thanks for getting back to me.
    I've sorted it now. I must admit, as an enthusiastic but non-professional coder, I do have a hard time getting my head around the basic concepts of...
  3. Thread: Work Item

    by toneburst
    Replies
    2
    Views
    1,110

    Work Item

    Hi,

    sorry if this is a really stupid question, but I'm writing a really simple CL kernel to take an array of vertices as input, and offset the Y-position of each vertex based on a value read from...
  4. Re: Marching Cubes - Outputting Variable-Size Array

    Thanks for that dbs2. I'll have another look at the CUDA version on the NVIDIA site. I did have a look through the code, but it looked a bit over my head, to be honest. It's obviously built for...
  5. Marching Cubes - Outputting Variable-Size Array

    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...
  6. Replies
    1
    Views
    2,689

    Arrays of Variable Length

    I'm working on a port of Paul Bourke's Marching Cubes
    http://local.wasp.uwa.edu.au/~pbourke/g ... olygonise/
    code to OpenCL, but I'm now wondering if I might be about to hit an insurmountable...
  7. Replies
    2
    Views
    2,123

    Re: Doubles/Floats

    Sorry, just realised I made some typos in the code above.


    mu = isolevel - valp1) / (valp2 - valp1;

    should of course have been


    mu = (isolevel - valp1) / (valp2 - valp1);
  8. Replies
    2
    Views
    2,123

    Doubles/Floats

    Quick query.

    in the following code;


    float4 VertexInterp(isolevel, p1, p2, valp1, valp2)
    double isolevel, valp1, valp2;
    float4 p1, p2;
    {
    float mu;
  9. Replies
    0
    Views
    1,731

    structs and function-declaration

    If I declare a couple of c-style structs like so:

    struct TRIANGLE {
    float4 p[3];
    };
    struct GRIDCELL {
    float4 p[8];
    double val[8];
    };
    and then attempt to use an input/output variable of...
  10. Replies
    3
    Views
    3,823

    Re: Single float2 Output from OpenCL Kernel

    Thanks for the reply.

    I'm writing OpenCL kernels in Apple's Quartz Composer, so don't have full access to the way OpenCL is setup in the background. I'll try and find out more from the QC devlist....
  11. Replies
    3
    Views
    3,823

    Single float2 Output from OpenCL Kernel

    Is it possible to have an OpenCL kernel output a single (float2, float4 etc. ) value based on an analysis of an image?
    I must admit to being confused by how to specify input and output values for...
  12. Replies
    6
    Views
    4,570

    Re: Multiple Image Inputs to OpenCL Kernel

    Great, thanks, got it working now.

    Cheers,

    a|x
    http://machinesdontcare.wordpress.com
  13. Replies
    6
    Views
    4,570

    Re: Multiple Image Inputs to OpenCL Kernel

    Ah, great, thank you.
    Sampler1 and 2 can be defined in the kernel itself, rather than passed in, presumably...

    Thanks a lot, I will experiment.

    a|x
  14. Replies
    6
    Views
    4,570

    Re: Multiple Image Inputs to OpenCL Kernel

    I see, thanks for getting back to me.

    Sorry if this is a really basic question, but how would I declare the second image input, and sample from it?

    I'm having problems finding documentation on...
  15. Replies
    6
    Views
    4,570

    Multiple Image Inputs to OpenCL Kernel

    How do I get multiple image inputs to an OpenCL kernel program?
    I want to convert pixels of one image into a vertex array, and sample color information from another image to create an array of...
  16. Replies
    2
    Views
    1,888

    Re: Function Question

    Sorry to have wasted your time guys- it was a typo....
    :oops:

    I was thinking 'css' meant something other than a mistyping of 'cos'

    a|x
  17. Replies
    2
    Views
    1,888

    Function Question

    Hi,

    this is probably a really stupid question, but I'm having problems with a simple function-call in an OpenCL Kernel.

    Here's the code:

    const float PI = 3.14159265359;
    const float TWOPI =...
  18. Replies
    1
    Views
    1,900

    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
Results 1 to 18 of 18