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

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. There is an alternative you could try. Assign a...

    There is an alternative you could try.
    Assign a 4th vertex value to each vertex to assign a lookup ID.
    Each lookup ID would be treated as an integer (0,1,2,3) and would correspond to the texture...
  2. respecify the texture parameters after each...

    respecify the texture parameters after each texture bind


    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);...
  3. Replies
    1
    Views
    628

    Surely the only person who can answer your...

    Surely the only person who can answer your question is you!
    Only you know what is required for a level editor for your own game! I suspect you'd use the same tools for the editor that you used for...
  4. The answer is "it depends". It depends upon your...

    The answer is "it depends".
    It depends upon your hardware and drivers as to whether it supports 16-bit stencil buffers. Typically, AMD and nVidia only support 8-bit stencil buffers.
    You select the...
  5. Replies
    2
    Views
    631

    This is messed up, for sure. What is:...

    This is messed up, for sure. What is:
    glPopAttrib();
    glPopMatrix();
    doing between glBegin and glEnd ?
    Similarly for your other two tringles and quads.
    Your normal calulation depends on whether...
  6. Replies
    2
    Views
    1,549

    if the complier is complaining about sdl.h, then...

    if the complier is complaining about sdl.h, then it seems that you need to alter the project options to include the location of the sdl.h file so that it can be linked.
  7. You do realise that this is a public forum, yes. ...

    You do realise that this is a public forum, yes. It's not part of your university. Go and seek advice from your teachers.
  8. I think you're going to have to supply more...

    I think you're going to have to supply more detail than " it does not work". What do you see ?
    Post your vertex array setup code and draw code.
    Perhaps even read the posting guidelines?
  9. Replies
    2
    Views
    703

    I don't think you need to redine the VAO if...

    I don't think you need to redine the VAO if you're just going to fill up the same buffer objects with new data.
    If that's what you are doing, then you may want to reconsider the GL_STATIC_DRAW hint...
  10. Replies
    5
    Views
    1,177

    I had similar issues with odd releases of AMD...

    I had similar issues with odd releases of AMD drivers too!
    Using the Set8087CW($133F); trick worked for me when I initialied the OpenGL context.
  11. The flexible programming you are after can be...

    The flexible programming you are after can be done with the combination of ARB_Stencil_Export and ARB_stencil_texturing extensions.
    The latter extension (if I understand correctly) allows you to...
  12. You need to get the .M specification from the...

    You need to get the .M specification from the university and convert the data you loaded into OpenGL into that format.
  13. Replies
    2
    Views
    1,543

    er... the screen should be refreshed every cycle....

    er... the screen should be refreshed every cycle. It's the animation/movement computations which should be increamented according to the time delta since the last animation.
  14. Replies
    4
    Views
    1,947

    There are many things wrong with the information...

    There are many things wrong with the information you have posted and it's not clear what you are trying to say. Please slow down and discuss one item at a time, clearly describing (with code) the...
  15. Replies
    9
    Views
    2,657

    then post your draw loop and let's see. More than...

    then post your draw loop and let's see. More than likely you are not preserving the current state of the modelview matrix between draw calls.
    When you post, statements like are not helpful and...
  16. Replies
    2
    Views
    910

    I always thought the goal of UBOs was to share...

    I always thought the goal of UBOs was to share uniform resources across multiple shaders. If you are not accessing the UBO from more and one or two shaders, then you're wasting your time codeing this...
  17. Replies
    5
    Views
    3,196

    No need. Just attach a depth texture to your...

    No need. Just attach a depth texture to your framebuffer object. Job done.
  18. Probably because the GPU memory allocated to...

    Probably because the GPU memory allocated to buffer objects is not as fast as memory allocated to uniform storage, thus the write and read would be quicker for the single usage glLoadMatrix case....
  19. Replies
    5
    Views
    3,196

    There is a stencil_export extension (possbily...

    There is a stencil_export extension (possbily created by AMD) that allows a shader to modify the stencil buffer directly. Therefore, if you can access that, you just need to create another frame...
  20. Replies
    5
    Views
    1,762

    Do you actually have a handle for the preview...

    Do you actually have a handle for the preview window? Does that Window have a GL Context?
    Instead of rendering a white texture as a proof of concept (there are many ways to get a white window...
  21. You are not specifying the correct matrix before...

    You are not specifying the correct matrix before using this, are you?
    glMatrixMode (GL_PROJECTION);

    For the blit functionality, you need to be checking for ARB_FRAMEBUFFER_OBJECT and then...
  22. Replies
    10
    Views
    2,225

    Quite easy. The simplest thing to do is query the...

    Quite easy. The simplest thing to do is query the OpenGl version once you have requested the context - use glGetString(GL_VERSION).
    Let's say for arguments sake you fully support GL 3.3 and GL...
  23. Replies
    2
    Views
    1,793

    I think you'll have to give more information than...

    I think you'll have to give more information than that.
    What's your laptop/desktop make and model?
    What graphics card/chipset does it have?
    Which version of Windows are you running?
    Which driver...
  24. Replies
    1
    Views
    1,836

    Start with something simple to fully test your...

    Start with something simple to fully test your particle code/engine without being bogged down by OpenGL drawing.
    Perhaps something like GL_POINTS and use glDrawArrays is enough just to plot each...
  25. Replies
    1
    Views
    1,012

    You are on the right track by using glTranslatef...

    You are on the right track by using glTranslatef (0.0, 0.0, -1.0); However, for up/down motion you want to translate on the Y axis glTranslatef (0.0, Y, 0.0);
    Use Sin or Cos to simulate the wave...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4