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

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    146

    Problem regarding line drawing

    Hello I have been struggling lately to overcome some difficulties regarding drawing lines. My final goal is to use lines to represent edges of a skeleton. Since I will later use the following class...
  2. If the rendering part is using the old buffers...

    If the rendering part is using the old buffers shouldn't I see the undeformed model?
    My draw function is simply:


    void Draw()
    {
    glBindVertexArray(VAO);
    glDrawElements(GL_TRIANGLES,...
  3. Updating opengl buffers after changing attributes of a mesh

    I am using opengl in order to visualize geometric deformations on 3d meshes. I am using a vao to draw the mesh. This is the code I use to setup the buffers and the vao

    void setupDrawingBuffers()
    ...
  4. Replies
    19
    Views
    5,130

    Just wanted to say thanks for the assistance. The...

    Just wanted to say thanks for the assistance. The problem was solved using in GLWidget::modelWasChosen the command makeCurrent() before I load the mesh as you suggested.

    Best regards,
    Iason
  5. Replies
    19
    Views
    5,130

    The behaviour of my code depends on whether...

    The behaviour of my code depends on whether MyPolyhedron::Draw() calls glGenVertexArrays. If I call it meshes are being rendered on screen and if I don't I get a black screen.
    So consider the case...
  6. Replies
    19
    Views
    5,130

    The need of an OpenGL debugger is obvious.. I am...

    The need of an OpenGL debugger is obvious.. I am on Linux and I tried to install Bugle and Vogl but I had no luck with that..


    Do you know if I have to do that manually ,namely setting a...
  7. Replies
    19
    Views
    5,130

    So for 1) i modified the setupDrawingBuffers()...

    So for 1) i modified the setupDrawingBuffers() to:


    void setupDrawingBuffers()
    {
    std::cout<<"Entering setupBuffers().."<<std::endl;

    glGenVertexArrays(1,&VAO);
    ...
  8. Replies
    19
    Views
    5,130

    Hello again! I was wondering why we don't use...

    Hello again!
    I was wondering why we don't use ival :doh: .
    So you were right something is modifying the VAO..
    Thats the output I get:

    Loading...
  9. Replies
    19
    Views
    5,130

    Yes thats right. This works: void Draw() { ...

    Yes thats right.
    This works:

    void Draw()
    {
    glGenVertexArrays(1,&VAO);

    glBindBuffer(GL_ARRAY_BUFFER,VBO);
    glBindBuffer(GL_ELEMENT_ARRAY_BUFFER,EBO);
  10. Replies
    19
    Views
    5,130

    Thanks for your response! Following your advice I...

    Thanks for your response! Following your advice I found out that the problem is that I have to call glGenVertexArrays(1,&VAO); at each draw call. The following draw function works:
    void Draw()
    ...
  11. Replies
    19
    Views
    5,130

    Thanks for your answer :) What GPU drivers are...

    Thanks for your answer :)

    What GPU drivers are you using? (e.g. query and print GL_VERSION, GL_RENDERER, and GL_VENDOR)

    I get the following outputs:
    version:4.1 (Core Profile) Mesa...
  12. Replies
    19
    Views
    5,130

    Difficulties rendering a 3D mesh

    Hello everyone I am pretty much a newbie and I would appreciate your assistance.

    I have made a simple OpenGL application which reads an .obj file and renders it.

    I read the file and put the...
Results 1 to 12 of 13