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: Godlike

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. There is a video with the presentation. It didn't...

    There is a video with the presentation. It didn't help clear things

    http://www.youtube.com/watch?feature=player_embedded&v=btNVfUygvio
  2. VAOs slower than glVertexAttribPointer on all implementations

    I was reading Valve/nVidia presentation on the lessons learned when Valve ported Source game engine to OpenGL...
  3. Replies
    3
    Views
    566

    The driver can do some fancy optimizations inside...

    The driver can do some fancy optimizations inside glMultiDrawElements. For example it can create a new index buffer and issue a single draw call. The worst that can happen is do multiple calls of...
  4. Replies
    3
    Views
    566

    I think the rationale behind glMultiDraw is the...

    I think the rationale behind glMultiDraw is the following. If someone disagrees please correct me

    Imagine that you have a single VAO that contains:
    - a big VBO with the geometry of your 3 objects...
  5. Replies
    12
    Views
    1,844

    And what I am trying to say is that by using one...

    And what I am trying to say is that by using one buffer you are not using OpenGL with an optimal way. The sequence you describe has read/write dependency problems because every update to the buffer...
  6. Replies
    12
    Views
    1,844

    I may have an idea on what is wrong. The draw...

    I may have an idea on what is wrong.

    The draw calls are not executed the time you send them. In most implementations they are stacked in a command buffer and the driver decides when to send for...
  7. Replies
    12
    Views
    1,844

    One last question that actually matters. Do you...

    One last question that actually matters. Do you use a single UBO for all the meshes or one per mesh?

    One UBO for all meshes looks like this I guess:


    for mesh in meshes do
    update UBO 0
    ...
  8. Replies
    12
    Views
    1,844

    What do you mean by "Now I switched to a constant...

    What do you mean by "Now I switched to a constant buffer"? Do you have a single buffer with 625 matrices?

    I've done some benches myself on UBOs and I found them slower that glUniform* for these...
  9. Replies
    4
    Views
    822

    From what I remember you don't need to protect...

    From what I remember you don't need to protect the shared resources. The implementation should do that for you. Nevertheless there are other things you should worry about (at least on GLES 3.0) like:...
  10. It a bit difficult to root the performance...

    It a bit difficult to root the performance problem but from what you describe you may have this situation:

    1. Render to texture 0
    2. Switch to another FBO and readpixels from texture 0

    The (2)...
  11. One thing you can do is use instancing for...

    One thing you can do is use instancing for batched lights. This may improve things a bit. One bad thing with this implementation of deferred shading is that you speak allot with the API, also you...
  12. Replies
    3
    Views
    1,211

    A few ideas that are based 3 things (1) minimize...

    A few ideas that are based 3 things (1) minimize GL calls (2) minimize state switching (3) better caching:

    Using UBO will be better especially if you have many uniforms per program. You save the...
  13. Re: why does SwapBuffers take up so much cpu time?

    It's _probably_ because allot of synchronization stuff happen when you swap buffers. I'm not sure though, maybe someone has a more concrete answer than mine.
  14. Replies
    7
    Views
    2,886

    Re: Transform Feedback problem

    You need to inform the shader about the transform feedback varyings _prior_ linking it. In GL 3.x you glTransformFeedbackVaryings and then you link.
  15. Replies
    4
    Views
    1,392

    Re: Create second context

    I've made some tests with SDL but nothing's conclusive at the moment. When I have a solution I will post it here.
  16. Replies
    4
    Views
    1,392

    Create second context

    Im using SDL 1.3 to create a window and a rendering context for that window (see this tutorial)

    I want to create a second context for texture loading in a separate thread (according to OGL 3.3...
  17. Replies
    1
    Views
    1,320

    Re: FBO depth map almost completely washed out

    The depth buffer keeps values from 0.0 to 1.0 but not in linear manner but in exponential. This practically means that if you visualize it it will be black in pixels very very close to the camera.
    ...
  18. Replies
    15
    Views
    3,832

    Re: Manual mipmap loading

    According to http://www.opengl.org/wiki/Texture#Mipmap_range we round up.
  19. Replies
    15
    Views
    3,832

    Re: Manual mipmap loading

    You write "8x2, 4x1, 2,1" you mean "8x2, 4x1, 2x1"??

    What is the condition to stop generating mipmaps? Actually, what is the algorithm that calculates the width and height for every level?
    ...
  20. Replies
    15
    Views
    3,832

    Re: Manual mipmap loading

    First of all sorry for the late update, due to lack of time I've tested it yesterday.

    I've tried to specify the textures for every mipmap level using glTexImage2D. I didnt create any mipmaps with...
  21. Replies
    15
    Views
    3,832

    Re: Manual mipmap loading

    That seems to be exactly what Godlike is trying to do.

    Godlike, you properly removed/commented the glGenerateMipmap call from your code in your manual mipmap loading attempt, right? [/QUOTE]
    ...
  22. Replies
    15
    Views
    3,832

    Re: Manual mipmap loading

    Thanks for the reply but I dont believe that GENERATE_MIPMAP is part of opengl 3.3 core. I forgot to mention that I'm working on 3.3 core.
  23. Replies
    15
    Views
    3,832

    Manual mipmap loading

    The general idea is that I have an image and its n precalculated mipmaps in files in disk, what I want is to create an empty texture and manualy copy the mipmaps in this texture.

    What I currently...
  24. Replies
    2
    Views
    1,597

    Re: GL 3.3 core profile: Drawing w/hout VAO/VBOs

    Im pretty adept with OpenGL. I use VBOs (but no VAOs) almost everywhere and in some simple cases I use old school vertex arrays (eg for quad draw in the screen). I'm trying to port my engine to...
  25. Re: Need help with 3D models: recomended formats?

    Practically you need: vert positions, triangles, texture coords, vertex weights and the skeleton. You can achieve "soft folds" around joints using vertex weights (If I understand correctly what you...
Results 1 to 25 of 62
Page 1 of 3 1 2 3