Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OpenGL triangles are wron positioned

OpenGL triangles are wron positioned

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 269 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • QT-static-prgmQ Offline
    QT-static-prgmQ Offline
    QT-static-prgm
    wrote on last edited by
    #1

    Hello,

    i have a problem with my OpenGL project.
    Source code: https://git.rwth-aachen.de/carstenf/OpenGL/tree/master/QtMeshViewer

    About the problem:
    The project base on the cube example from Qt. As you can see here i added an own function to load the data. The hard coded data works fine. But the imported does not. I read the data from the debugger and i cannot see any problems with them. Here the data:

    Vertex:
    -4 -4 -4
    -4 +4 -4
    +4 +4 -4
    +4 -4 -4
    -4 -4 -4
    +4 -4 -4
    +4 -4 +4
    -4 -4 +4
    -4 -4 -4
    -4 -4 +4
    -4 +4 +4
    -4 +4 -4
    +4 -4 -4
    +4 +4 -4
    +4 +4 +4
    +4 -4 +4
    -4 +4 -4
    -4 +4 +4
    +4 +4 +4
    +4 +4 -4
    -4 -4 +4
    +4 -4 +4
    +4 +4 +4
    -4 +4 +4
    -4 -4 -4

    indices:
    0,2,3
    4,6,7
    8,10,11
    12,14,15
    16,18,19
    20,22,23
    1,2,24
    5,6,4
    9,10,8
    13,14,12
    17,18,16
    21,22,20

    As far as i see they are all ccw. is that a problem?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved