Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: biller23

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    6,668

    Did anyone encounter a performance benefit using...

    Did anyone encounter a performance benefit using a separate VBO for only positions (ex. for depth pass, shadow mapping pass)?
  2. Replies
    15
    Views
    41,080

    Re: GLSL Shadow Map code sample.

    OMG you're right. I accidentally changed some piece of my spaghetti code, and.. tahdah.. it works! I can see the Moiré pattern!

    Thanks anyway.
  3. Replies
    15
    Views
    41,080

    Re: GLSL Shadow Map code sample.

    I have some trouble with the simple shadow mapping.
    I'm using textureProj() with sampler2DShadow.

    Maybe i put the wrong TextureMatrix.

    Proj-Light --> perspective projection of the light...
  4. Replies
    58
    Views
    70,703

    Re: Official feedback on OpenGL 4.2 thread

    This makes sense in the spec, but he's talking about the quick reference card. Why are these functions displayed there?
  5. Replies
    3
    Views
    674

    Re: Light in openGL

    Have you tried to set the vertex color calling glColor()? The vertex color needs to be different than the default black, becouse it will be multiplied with the texture color.
  6. Replies
    3
    Views
    674

    Re: Light in openGL

    With the fixed-functions pipeline, simply disable the lights.
    With shaders, simply use your diffuse color (from vertex or texture) directly as output of the fragment shader.
  7. Replies
    14
    Views
    2,038

    Re: Is my ortho projection correct

    He actually answered your question.

    With the command glScalef and so on, you're changing the projection setted by glOrtho. Switch to Modelview matrix before these commands or your projection...
  8. Replies
    2
    Views
    696

    Re: orthographics projection problem

    Just multiply "left" and "right" with aspect = screen_width/screen_heigth.

    BTW: no search engine works with "glOrtho aspect ratio"?
  9. Re: Orbit Rotation to Unit Directional Vector

    I'm not sure I've understood correctly what you have asked.

    Which directional versor?
    The forward direction of the camera? In this case it's simple. You can extract this vector easily from the...
  10. Replies
    9
    Views
    5,383

    Re: GLSL and discard? problem

    1) A scalar Boolean expression is expected.
    2) This is not a boolean operation.

    Try this:


    bvec3 bv = equal(color.xyz, vec3(1.0f, 0.0f, 0.0f));
    if ( bv.x && bv.y && bv.z)...
  11. Replies
    9
    Views
    2,985

    Re: Basic Movement on the Screen

    To achieve a "movement", you need to add an offset value to the current position. Suppose that the object is in the point 'p' = (x, y), and the change of position is 'offset' = (-2, 0), then the new...
  12. Replies
    9
    Views
    4,534

    Re: Local to World rotation angles.

    What do you mean with "local space"?
    To do a local space transformation (ex. rotation), you need to have three arbitrary orthonormal axes, and you must build a rotation matrix relative to these axes...
  13. Thread: Matrices math

    by biller23
    Replies
    2
    Views
    600

    Re: Matrices math

    I do not tested your code but the angles are in radians. Do not forget to convert them back.

    BTW: why have you decided to allocate memory in the heap during matrix multiplication?
  14. Replies
    7
    Views
    2,507

    Re: Regarding Projective Geometry

    What represents a Mat4 (m16]) if the elements of index [3], [7], [11] are not zero?
    (i know that perspective projection matrix has -1 on [7] elements, if i recall correct..)

    What happens if a...
Results 1 to 14 of 14