Thread: OpenGL is a nub

Results 1 to 9 of 9
  1. #1
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy

    OpenGL is a nub

    No matter what 3d object I make, pyramid, cube, Tetrahedron, octahedron, Only the first 2 faces are "solid", Even though all the code is the same for each face, just changed xyz coords. so when i rotate and the other faces go infront of the "solid" face, they become transparent and I see the backside of the "solid" faces
    Last edited by Auxilium; 08-02-2011 at 02:11 PM.

  2. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    are you sure its not just you (and your code)? x)

  3. #3
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Quote Originally Posted by freedompeace View Post
    are you sure its not just you (and your code)? x)
    The code is the same as the solid faces, just different coords.

  4. #4
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    OpenGL requires the vertices to be in clockwise order, if they're not then it won't render.
    Ah we-a blaze the fyah, make it bun dem!

  5. #5
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Quote Originally Posted by Hell_Demon View Post
    OpenGL requires the vertices to be in clockwise order, if they're not then it won't render.
    The problem is that they are rendered when not passing infront of other faces。
    I'm Am doing them clockwise.

  6. #6
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    Post code or GTFO.
    "I don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov

  7. #7
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Quote Originally Posted by wtfiwantthatname View Post
    Post code or GTFO.
    Don't have the code with me, just formatted and didn't bother saving my failures, I remember I checked my code several times.

    I even followed the order of which faces to draw first from NeHe, Same problem.

  8. #8
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by Hell_Demon View Post
    OpenGL requires the vertices to be in clockwise order, if they're not then it won't render.
    Isn't it always like that? (Unless you turn culling off, that is)

  9. #9
    Tekkn0logik's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    37
    Reputation
    12
    Thanks
    52
    My Mood
    Amused
    glDisable(GL_CULL_FACE);

Similar Threads

  1. gourav GET ON MSN NUB
    By SATANICAT in forum Spammers Corner
    Replies: 10
    Last Post: 07-12-2007, 06:15 PM
  2. Nub Help, tuts, trainers, advice.
    By shadowsecret in forum WarRock - International Hacks
    Replies: 7
    Last Post: 04-24-2007, 07:57 AM
  3. All you nubs here you go
    By shadowsecret in forum WarRock - International Hacks
    Replies: 6
    Last Post: 04-08-2007, 04:42 PM
  4. LAWL k nubs
    By SATANICAT in forum General
    Replies: 9
    Last Post: 12-25-2006, 12:45 AM
  5. Photo shop Nub sigs chek um
    By wardo1926 in forum Art & Graphic Design
    Replies: 4
    Last Post: 12-31-2005, 09:39 AM