Search:

Type: Posts; User: Coolcat

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    3,152

    Re: Drawing a triangle

    Check your error messages (*):


    You can't draw directly from an array. You will have to create an VertexBufferObject (VBO) first.

    (*) e.g. in Firefox/Minefield: Tools -> Error Console
  2. Replies
    2
    Views
    4,408

    Re: Framebuffers and Renderbuffers

    Maybe your problem is related with the following part of the spec? However, I have only tried to render into an FBO and use it's data as texture. I have not used readPixels, yet.
  3. Replies
    5
    Views
    3,847

    Re: readPixels right with small accuracy?

    That might work on normal OpenGL, but not on WebGL because it would require a high color resolution.


    That's not a problem if Blending is disabled an you do render into a framebufferobject (FBO)....
  4. Replies
    5
    Views
    3,847

    Re: readPixels right with small accuracy?

    You can use RGBA color, so you have 2^32 = 4.2 billion possible colors. How many triangles/objects do you want to render?

    Once you got the exact triangle you just have to intersect the cursor ray...
  5. Replies
    11
    Views
    10,472

    Re: gl_PointSize problem

    Yes, I was successful rendering point sprites. That glEnable-thing is not required. However, point sprites can only have a size of 1 pixel, which makes them useless.

    For WGT I'm using a static VBO...
  6. Thread: How to start

    by Coolcat
    Replies
    8
    Views
    5,949

    Re: How to start

    You need to create it ;)
  7. Thread: How to start

    by Coolcat
    Replies
    8
    Views
    5,949

    Re: How to start

    You need graphics hardware that does support WebGL / OpenGL ES 2.0. For example your graphics card (and driver!) needs to support ShaderModel 2.0 (GLSL).

    However, on Windows/Firefox you might...
  8. Replies
    3
    Views
    3,941

    Re: Timeline for WebGL

    As far as I know: Firefox 3.7 was canceled. Probably we will have to wait unitl FF 4.0
  9. Replies
    2
    Views
    4,624

    Re: Minefield: set is not a function. wtf?

    For some reason Array-Access does now work:

    wglArray[i] = value;
    That's nice, but does this work in Chrome, too? Minefield people don't care about the spec, which defines set/get only? Is there a...
  10. Replies
    2
    Views
    4,624

    Minefield: set is not a function. wtf?

    Minefield does no longer support WebGLFloatArray.set?
    My old application which worked before does throw now an error "set is not a function".

    WTF? :shock:
  11. Replies
    10
    Views
    15,047

    Re: WebGL Module for GoogleWebToolkit

    Ok, I have created an project at sourceforge:
    https://sourceforge.net/projects/wgt/files/

    GIT repository:
    git://wgt.git.sourceforge.net/gitroot/wgt/wgt
  12. Replies
    10
    Views
    15,047

    Re: WebGL Module for GoogleWebToolkit

    Thanks :)
    I think I will create an public GIT repo as soon as I find time to do that.


    I can work on UC/WGT only in my sparse free time, so I can't guarantee it will stay alive, especially...
  13. Replies
    2
    Views
    3,407

    Re: DEPTH BASED SHADOWS?

    There was a bug with FBOs on Firefox in the past. This was fixed some time ago. You should update to the latest nightly.

    I was able to render successfully into the following FBO. However, I didn't...
  14. Replies
    10
    Views
    15,047

    Re: WebGL Module for GoogleWebToolkit

    Correctly, float arrays are part of the GLSL ES spec. If have switched in that version to an new/better/faster blur shader used for the glow effect.


    I have switched from using simple TAR-balls...
  15. Replies
    5
    Views
    4,227

    Re: Chrome rendering

    Maybe your hardware does not support non-power-of-2 textures? I have no problems on my Geforce 9800 GT.
  16. Replies
    2
    Views
    4,502

    Re: 5+ Texture in Firefox

    Firefox does throw an exception "An invalid or illegal string was specified" on

    gl.activeTexture(gl.TEXTURE0 + 4);
    I don't see where a string is involved there and...
  17. Replies
    3
    Views
    4,465

    Re: Strange viewport on Chrome

    Ok, there is no bug. You simply have to use the current nightly:
    http://build.chromium.org/buildbot/snapshots/

    I used the current Dev-Channel version, which is obviously something else...
  18. Replies
    3
    Views
    4,465

    Re: Strange viewport on Chrome

    Since WGT is really complex I have created a smaller application and was able to reproduce the problem. I have tracked it down to this call:

    gl.bindFramebuffer(gl.FRAMEBUFFER, null);
    Using 0...
  19. Replies
    3
    Views
    4,465

    Strange viewport on Chrome

    I tried my WGT module on Chrome/Vista64 with strange results:

    http://img97.imageshack.us/img97/2860/wgt.th.jpg

    The canvas has correct size (full window), but at the top is a mirrored region and...
  20. Replies
    10
    Views
    15,047

    Re: WebGL Module for GoogleWebToolkit

    Sorry, "STRG" key is "CTRL" in english. :roll:
    For some reason it is not possible to edit posts here... :?
  21. Replies
    34
    Views
    16,690

    Re: Low fps even on empty canvas.

    You can disable alpha when creating the context. According to spec you can pass a WebGLContextAttributes object to the getContext() method. However, I didn't try it yet.
  22. Replies
    10
    Views
    15,047

    WebGL Module for GoogleWebToolkit

    When using GoogleWebToolkit (GWT) you can code you WebGL application in Java! GWT does compile your code to JavaScript, so end users will not notice a difference. You gain things like type-safety,...
  23. Replies
    3
    Views
    6,241

    Re: Firefox: bindFramebuffer?

    Seems like FBOs are working on Firefox now.
  24. Replies
    3
    Views
    3,860

    Re: addition to standard

    Sorry, I forgot to mention: The above code is Java code, not JavaScript. The GoogleWebToolkit does compile Java-Code to JavaScript.
  25. Replies
    3
    Views
    3,860

    Re: addition to standard

    In my GoogleWebToolkit-Module for WebGL (I'm calling it WebGLToolkit) the WebGLFloatArray overlay does currently look like this:

    package com.delphigl.wgt.overlay;

    import...
Results 1 to 25 of 75
Page 1 of 3 1 2 3