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

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Batching

    by tonyo_au
    Replies
    1
    Views
    30

    From what I remember from a nVidia presentation -...

    From what I remember from a nVidia presentation -
    most costly -> least costly

    setup FBO - shader program - textures - vertex buffer - uniforms
    ...
  2. Replies
    2
    Views
    65

    m_fTraslation_X += m_vPosMouse[0] -...

    m_fTraslation_X += m_vPosMouse[0] - m_vPosMouse_ult[0];

    Are you sure you want to keep adding

    I would have thought you want

    m_fTranslation_X = original_x+(
    m_vPosMouse[0] -...
  3. Replies
    1
    Views
    57

    try this ...

    try this for loading textures and this for obj's - remember Google is your friend
  4. Replies
    1
    Views
    60

    I suggest you write some basic OpenGL before you...

    I suggest you write some basic OpenGL before you worry about these things.
  5. Replies
    2
    Views
    113

    You don't show that code that calls Draw4Angle

    You don't show that code that calls Draw4Angle
  6. Replies
    4
    Views
    205

    Unless you are copying time to timebase, this...

    Unless you are copying time to timebase, this code should show you the cross for 3 sec, the filled column for 2 sec, the unfilled col for 5 sec then the filled column from then on.

    I am not sure...
  7. Thread: Smudge Effect

    by tonyo_au
    Replies
    3
    Views
    318

    With compute shaders or OpenCL or CUDA you do not...

    With compute shaders or OpenCL or CUDA you do not need to render texture to manipulate them. There are just buffers you attach to the program. For image processing I would look at the way a program...
  8. Replies
    2
    Views
    156

    You are missing includes. Try to find how to...

    You are missing includes. Try to find how to setup a basic program setup for OpenGL on a Apple system.
  9. Replies
    2
    Views
    125

    I assume you mean you wand to draw a ribbon in a...

    I assume you mean you wand to draw a ribbon in a spiral. This is much more complex than what you have coded. First look at creating a ribbon in a straight line.

    |\ |\ |
    | \| \|

    now look at...
  10. Replies
    4
    Views
    205

    You could split your display function into 2...

    You could split your display function into 2 procedures - one to draw the cross and one to draw the column. Based on a flag call one or the other procedure.
    If you need to display one for a certain...
  11. Thread: Smudge Effect

    by tonyo_au
    Replies
    3
    Views
    318

    I would look at a compute shader to do a smudge...

    I would look at a compute shader to do a smudge since you need to access surrounding pixels in the texture.
  12. You need to setup a perspective projection matrix...

    You need to setup a perspective projection matrix with gluPerspective rather than the identity matrix
  13. Replies
    3
    Views
    294

    I use GL_TEXTURE_2D_ARRAY not GL_TEXTURE_3D

    I use GL_TEXTURE_2D_ARRAY not GL_TEXTURE_3D
  14. Having many meshes does not stop you from putting...

    Having many meshes does not stop you from putting them all in the same VBO so glMultiDrawElementsBaseVertex works well for this. You could put a unique index into the vertex structure that you can...
  15. You might like to look at ARB_sparse_texture -...

    You might like to look at ARB_sparse_texture - although it is not available on all hardware
  16. fo you have backface cull enabled?

    fo you have backface cull enabled?
  17. Replies
    2
    Views
    246

    Not a lot changes except the input is an array of...

    Not a lot changes except the input is an array of all the patch vertices and you have to decide which input colour to use as an output for an output vertex - it may even be a computed colour
  18. Note Carmine's technique does not work if you...

    Note Carmine's technique does not work if you draw with alpha blending - then you have to pre-calculate the edge extrusions which gets ugly in 3D but not to bad in 2D
  19. vertex buffer will not necessarily gain you speed...

    vertex buffer will not necessarily gain you speed if you are constantly changing your data - in fact they could easily be worse. There benefit is mostly from having static data. You should look at...
  20. Replies
    6
    Views
    443

    You need to ask questions about a specific...

    You need to ask questions about a specific problem to get an answer here not just a general question.
  21. Replies
    3
    Views
    311

    You can't without using a geometry shader

    You can't without using a geometry shader
  22. Replies
    2
    Views
    263

    [/COLOR] OpenGL and OpenGL ES are for different...

    [/COLOR]
    OpenGL and OpenGL ES are for different platforms. A shader written for OpenGL ES may compile as an OpenGL shader but that is not "running on top".
  23. I will try to test this on a AMD machine but the...

    I will try to test this on a AMD machine but the code worked fine on nVidia driver 331.82
  24. You say your vertices range from -20 - +20 but I...

    You say your vertices range from -20 - +20 but I do not see where your set a model-view matrix(and use in the shader). If you are not using one, the vertices x,y,z must be in the range -1 - +1.
  25. Replies
    1
    Views
    196

    We will need a bit more detail. Are you moving...

    We will need a bit more detail. Are you moving the camera around the view? If so, you might have a backfaces being culled with the obj.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4