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

Search: Search took 0.00 seconds.

  1. Problem solved ;) I had to disable lighting and...

    Problem solved ;)
    I had to disable lighting and lights.
  2. glColorPointer() not painting vertex color in interleaved VBO

    I am using (Python and PyOpenGL) interleaved VBO (vertex, normal, color) in the form:


    Vx1, Vy1, Vz1, Nx1, Ny1, Nz1, R1, G1, B1, A1, Vx2...

    VBO is generated with:


    self.vbo_id =...
  3. Replies
    4
    Views
    1,260

    Thanks for the answer. :)

    Thanks for the answer. :)
  4. Replies
    4
    Views
    1,260

    Thanks for reply. I am planing to use interleaved...

    Thanks for reply. I am planing to use interleaved VBOs (vertex, normal, color) and hope this will work for me. Just one thing; if I use interleaved VBOs (vertex, normal, color) I can achive painting...
  5. Replies
    4
    Views
    1,260

    VBO vertices colors using shaders

    I am displaying a geometry (file format: .stl) with OpenGL (PyOpenGL and Python). Geometry data has the form and is assembled from triangles. I save to VBO data of; vertices, normals and colors. As...
  6. That solved the problem. Thanks for the help. And...

    That solved the problem. Thanks for the help. And sorry for the late reply.
  7. Replies
    8
    Views
    1,839

    I would like to ask a question about how do...

    I would like to ask a question about how do display a color of each vertex. VBO is created with:


    def geometry(self):
    # generate a new VBO and get the associated vbo_id
    _id = 1...
  8. I fixed the problem. The solution is to remove: ...

    I fixed the problem. The solution is to remove:


    glEnable(GL_VERTEX_ARRAY)

    in the upper (main) code :)
  9. Thanks for the help and clear explanations. I...

    Thanks for the help and clear explanations. I would like to ask another question more related to OpenGL version(s) (than GL_ELEMENT_ARRAY_BUFFER or GL_ARRAY_BUFFER). The code I am working on runs w/o...
  10. Replies
    8
    Views
    1,839

    Thanks for the help! Now it is much easier, when...

    Thanks for the help! Now it is much easier, when I know what to look for, as OpenGL has quite a lot functions, especially for a beginner with OpenGL:)
  11. You are right. I tried once again and it is...

    You are right. I tried once again and it is working. If I understand correctly you suggested to change the code:


    glEnableClientState(GL_VERTEX_ARRAY)
    glVertexPointer(3, GL_FLOAT, 0, vertices)...
  12. Replies
    8
    Views
    1,839

    No. If it will be possible I plan to avoid using...

    No. If it will be possible I plan to avoid using shaders, as the visualisation engine is just for viewing the results of the dynamics (physics) engine that is the main focus. The visualisation engine...
  13. Replies
    8
    Views
    1,839

    If I understand correctly; each body will have...

    If I understand correctly; each body will have several (two or three) BOs:
    1. VBO to store vertex data
    2. BO to store normals data for each triangle (GL_TRIANGLES)
    3. BO to store one color vector?...
  14. Replies
    8
    Views
    1,839

    add color to VBOs - best practices

    I am working on a visualisation engine (with python and pyopengl bindings) that will display and animate up to 10-20 bodies simultaneously. I am using VBO data object to store vertex data and to...
  15. Thanks for the help. They are seen on the...

    Thanks for the help. They are seen on the display, because I displayed the same data (format) but without the VBO with the following code:


    glEnableClientState(GL_VERTEX_ARRAY)...
  16. How to use glDrawArrays() with VBO - Vertex Buffer Object to display .stl geometry

    I am working in Python with PyOpenGL bindings for OpenGL. I have a geometry data in .stl file and I read the file and create a data vertices that has the form:

    vertices = [ -0.8528478 4.046846 ...
  17. Thanks for the clear answers to all.

    Thanks for the clear answers to all.
  18. Almost what I need. As I see it it uses...

    Almost what I need. As I see it it uses perspective projection gluPerspective(win.field_of_view_angle, ratio, win.z_near, win.z_far). What I would like to know (see) is how do display (and pan,...
  19. MatrixMode, glLoadIdentity, glTranslate, glRotate remvoved from OpenGL new versions?

    One said that the functions like MatrixMode glLoadIdentity glTranslate glRotate will be removed from newer versions of OpenGL. I would like to know if this is true? As I am just begining to use...
  20. How to pan, rotate, zoom object in 3D in glOrtho() view?

    I am having some problems with how to solve the problem of mouse interaction for pan, rotate, zoom an object in 3D with OpenGL. As I need to create a simple CAD geometry viewer which use orthogonal...
Results 1 to 20 of 20