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.02 seconds.

  1. I don't recommend you do a draw function inside...

    I don't recommend you do a draw function inside your mouse event. Just use the glutPostRedisplay function to request a redraw event
  2. There is no down side to buffer storage except...

    There is no down side to buffer storage except that it only works on newer hardware (infact nVidia highly recommend it); however you should only use it if you need to stream data because it is still...
  3. You cannot beat going through the basic tutorials...

    You cannot beat going through the basic tutorials they cover what you are asking
  4. Replies
    3
    Views
    164

    Sorry, I was looking at the OPENGL_WAY and...

    Sorry, I was looking at the OPENGL_WAY and thought all the code after MFC-WAY was removed.
  5. Thread: Batching

    by tonyo_au
    Replies
    1
    Views
    119

    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
    ...
  6. Replies
    3
    Views
    164

    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] -...
  7. Replies
    1
    Views
    116

    try this ...

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

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

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

    You don't show that code that calls Draw4Angle

    You don't show that code that calls Draw4Angle
  10. Replies
    4
    Views
    226

    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...
  11. Thread: Smudge Effect

    by tonyo_au
    Replies
    3
    Views
    350

    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...
  12. Replies
    2
    Views
    179

    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.
  13. Replies
    2
    Views
    135

    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...
  14. Replies
    4
    Views
    226

    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...
  15. Thread: Smudge Effect

    by tonyo_au
    Replies
    3
    Views
    350

    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.
  16. You need to setup a perspective projection matrix...

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

    I use GL_TEXTURE_2D_ARRAY not GL_TEXTURE_3D

    I use GL_TEXTURE_2D_ARRAY not GL_TEXTURE_3D
  18. 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...
  19. 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
  20. fo you have backface cull enabled?

    fo you have backface cull enabled?
  21. Replies
    2
    Views
    250

    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
  22. 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
  23. 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...
  24. Replies
    6
    Views
    448

    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.
  25. Replies
    3
    Views
    315

    You can't without using a geometry shader

    You can't without using a geometry shader
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4