Search:

Type: Posts; User: VinceGL

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,607

    Re: gl.Frustr...ATION

    Never.

    You have to do it yourself (calcule the matrix, send it to your projection mat).

    function glFrustum(left, right, bottom, top, near, far) {
    var rl = right-left, tb = top-bottom, fn =...
  2. Replies
    6
    Views
    5,849

    Re: WebGl/WebCL and “IP“ protection

    Web is open. If you want to do some closed source code use Flash/Java/Unity3D/etc.

    All you can do is "hidding" your javascript code (obfuscate, use web worker or packing it on a custom format and...
  3. Replies
    1
    Views
    2,181

    Re: Billboard issue

    No one ?

    I find this topic related to the same problem, but even if I understand the way to process I'm not able to do this Maths stuff alone (I'm not enough familiarize with 3D maths). And I...
  4. Replies
    1
    Views
    2,181

    Billboard issue

    Hi !

    I'm currently working on billboard in my webgl game.
    I'm using the spherical method in lightouse3D

    And having the correct result:...
  5. Replies
    3
    Views
    2,056

    Re: Transparent textures issue

    Well, I find a solution:

    In the fragment shader:
    if ( texture.a ) discard;
    I don't think it's the better way to do this, but it work.

    I'm allways open for other ways.
  6. Replies
    3
    Views
    2,056

    Re: Transparent textures issue

    Hi, thank you for the answer :)

    I tested with the following code :

    var textures = this.MODELS.textures;
    for ( var i in textures ) {
    if ( textures[i].alpha ) {
    gl.colorMask(true, true,...
  7. Replies
    3
    Views
    2,056

    Transparent textures issue

    Hi, I currently have some problems with transparent textures, when I render the scene they hide some of my models and unit.

    I think it's the same problem than here : viewtopic.php?f=43&t=3368
    ...
Results 1 to 7 of 10