Search:

Type: Posts; User: pjcozzi

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    2,154

    Re: Context sharing and lifetime

    Just an update: both Firefox and Chrome are now quite stable with my unit tests creating and destroying hundreds of canvas elements.

    I made a small test, like the html code shown below, and...
  2. Replies
    3
    Views
    2,861

    Re: drawing polylines in bulk

    Actually that is a very good approach. In OpenGL 3, there is a feature called primitive restart, which allows you to assign an index value that terminates a primitive and starts a new one. This...
  3. Replies
    8
    Views
    5,033

    Re: Uniform arrays in Chrome / Firefox

    Just to follow up, uniform arrays are working perfectly fine in Chrome and Firefox. I am embarrassed to say that I was not even calling glUniform2fv() in the vec2 case. Shame on me.

    Patrick
  4. Replies
    7
    Views
    4,498

    Re: best forum for javascript questions?

    We have been using Aptana, which has the great feature of having JSLint built-in so it catches things like undeclared variables immediately.

    I'm curious to hear your thoughts on JavaScript IDEs in...
  5. Replies
    2
    Views
    3,266

    Re: drawElements with one point

    Looks like I got my cards mixed up. It works with the Radeon, but does not work with an NVIDIA GeFoce 8800 GTS (with updated drivers). I'll see about filing a bug.

    Thanks,
    Patrick
  6. Replies
    2
    Views
    3,266

    drawElements with one point

    I tried to write a unit test that draws a single point with drawElements (obviously, this is not production), and have found that a count of at least 2, not 1, is required for it to render. I see...
  7. Replies
    8
    Views
    5,033

    Re: Uniform arrays in Chrome / Firefox

    I thought the problem was I am not including an attribute input, e.g., attribute vec4 position, but I can't find anything in the GLSL spec that says one is required. I tried to add it anyway and it...
  8. Replies
    8
    Views
    5,033

    Re: Uniform arrays in Chrome / Firefox

    Hi Steve,

    Nice job with your game. The following shader using an array uniform compiles and links in Chrome:


    uniform vec2 u_vec2[2];
    void main()
    {
    gl_Position = vec4(u_vec2[0], 0.0,...
  9. Replies
    8
    Views
    5,033

    Re: Uniform arrays in Chrome / Firefox

    Sorry, I forgot to mention that I am running Vista 64 with an ATI Radeon HD 5870.

    Patrick
  10. Replies
    8
    Views
    5,033

    Uniform arrays in Chrome / Firefox

    Hi,

    Do uniform arrays work in Chrome or Firefox? A shader with a uniform array of floats, e.g.,


    uniform float u_float[2];
    Works ok in both browsers, but a uniform array of vec2, e.g.,

    ...
  11. Replies
    1
    Views
    2,154

    Context sharing and lifetime

    Hi,

    Is it possible to share GL contexts among multiple canvas elements on the same page? If so, how - is it done by default?

    Also, what approach do you recommond for unit testing where each...
Results 1 to 11 of 11