Search:

Type: Posts; User: Jens1

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    2,641

    Re: readPixels on framebuffer problem

    I solved the problem.
    Textures need 2^n * 2^m size.
    So i tried 2048*1024 texture(and renderbuffer) resolution and it worked. :D

    PS: Lower resolutions work too, if you decrease the viewport,...
  2. Replies
    1
    Views
    1,614

    Re: readPixels returning undefined

    pixel needs to be an allocated array-object:

    var pixel = new Uint8Array(4);
    that should work
  3. Replies
    2
    Views
    2,641

    readPixels on framebuffer problem

    Hi
    i'm working on my colorpicking implementation and don't know where i'm mistaken.
    It works fine as long as i render to the default framebuffer.

    function clickHandler(e){
    var x = e.clientX...
Results 1 to 3 of 4