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

    You may want to look at this...

    You may want to look at this
  2. Replies
    2
    Views
    41

    I only use GS in 2 cases. 1) rendering various...

    I only use GS in 2 cases.

    1) rendering various icons for points like diamond/square/plus/cross but I notice the speed hit and am thinking of changing it to do the work in the vertex shader using...
  3. Replies
    1
    Views
    56

    Sharing is always good:)

    Sharing is always good:)
  4. I hadn't thought about doing this[/COLOR]

    I hadn't thought about doing this[/COLOR]
  5. Replies
    3
    Views
    224

    I was having a bad day - no I could not open the...

    I was having a bad day - no I could not open the attachment
  6. You do not have to keep binding and unbinding the...

    You do not have to keep binding and unbinding the buffer across draw calls or alternatively create new buffers prior to each draw call; both of these are more expensive to using an immutable storage...
  7. c++ has a random number generator with the rand...

    c++ has a random number generator with the rand() function and various time functions
  8. Replies
    3
    Views
    224

    You are using GL_TRIANGLES so there vertices must...

    You are using GL_TRIANGLES so there vertices must be in multiples of 3. Do you mean to use GL_TRIANGLES_STRIP
  9. 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
  10. 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...
  11. You cannot beat going through the basic tutorials...

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

    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.
  13. Thread: Batching

    by tonyo_au
    Replies
    1
    Views
    177

    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
    ...
  14. Replies
    3
    Views
    250

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

    try this ...

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

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

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

    You don't show that code that calls Draw4Angle

    You don't show that code that calls Draw4Angle
  18. Replies
    4
    Views
    253

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

    by tonyo_au
    Replies
    3
    Views
    416

    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...
  20. Replies
    6
    Views
    287

    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.
  21. Replies
    2
    Views
    155

    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...
  22. Replies
    4
    Views
    253

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

    by tonyo_au
    Replies
    3
    Views
    416

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

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

    I use GL_TEXTURE_2D_ARRAY not GL_TEXTURE_3D

    I use GL_TEXTURE_2D_ARRAY not GL_TEXTURE_3D
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4