Search:

Type: Posts; User: xman84

Search: Search took 0.00 seconds.

  1. What is the precision of a uniform mat4's float values?

    Are the floats 32 bits, since that is what I provide it, or are they the precision of a highp float?
  2. How to send 4x4 matrices in a texture to the vertex shader?

    How do I send a many 4x4 matrices to the vertex shader using textures in WebGL? I would like to do this for skeletal transformations. Doing this all in the cpu kills my frame rate.
  3. Replies
    1
    Views
    1,626

    how to create a menu with text

    How would I go about creating a menu system with fonts in WebGL? I want to make a dungeon crawler and will need a menu for inventory and stats for the weapons. I can draw a world made out of blocks...
  4. Re: Has anyone used a texture atlas and used it in Chrome?

    FYI - incase anyone runs into similar issues as me. In Chrome anti-aliasing is enabled by default when the Webgl context is created. In javascript you can pass options to disable it. That fixed...
  5. Re: Has anyone used a texture atlas and used it in Chrome?

    I am and have been using Nearest for mag and min filtering because I liked the look. Should I not be doing that? Lol.
  6. Re: Has anyone used a texture atlas and used it in Chrome?

    Steve,

    Would it better for me to do something like suggested here? Specifically the third pic from the top.
    http://www.ogre3d.org/forums/viewtopic.php?f=4&t=61602

    Which I think is what you...
  7. Re: Has anyone used a texture atlas and used it in Chrome?

    Wow thank you for the helpful advice. I have a lot to digest as I do this as a hobby and have been teaching myself WebGL/OpenGL for the past 6 months outside of work. There are some things...
  8. Re: Has anyone used a texture atlas and used it in Chrome?

    texture:
    http://i.imgur.com/04rQQ.png
  9. Re: Has anyone used a texture atlas and used it in Chrome?

    Another angle:
    http://i.imgur.com/farRG.png
  10. Re: Has anyone used a texture atlas and used it in Chrome?

    vertex shader:

    attribute vec3 aVertexPosition;
    attribute vec3 aVertexNormal;
    attribute vec2 aTextureCoord;
    attribute float aInShade;
    attribute vec4 aVertexColor;
    uniform mat4 uMVMatrix;...
  11. Has anyone used a texture atlas and used it in Chrome?

    I created a texture atlas and in Chrome there is some white on the edges of the cubes. However in Firefox it displays just fine. When I use colors there are not white edges either in Chrome or...
  12. Re: Texturing a png so alpha channel part is transparent?

    Using the above shader and adding these two lines of code got parts of my sprite to be transparent exactly as I wanted.

    gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
    gl.enable(gl.BLEND);
    ...
  13. Re: Texturing a png so alpha channel part is transparent?

    Thanks for the reply. I do not have blend enabled. I will do that.

    My shader looks like this:

    #ifdef GL_ES
    precision highp float;
    #endif
    varying vec2 vTextureCoord;
    uniform sampler2D...
  14. Texturing a png so alpha channel part is transparent?

    Hello I have a PNG with an alpha channel I would like it so the transparent parts of the image
    are transparent when I texture to a quad. Right now they just show up as white. Considering the...
  15. Replies
    0
    Views
    1,788

    drawelements for many identical objects

    I would like to draw many cubes however when I get to around 100 it starts to slow the frame rate down. Is there a way I can make a single draw call to open gl to draw them instead of making a...
Results 1 to 15 of 17