Last visit was: It is currently Thu Dec 05, 2024 10:30 am


All times are UTC-05:00




Post new topic Reply to topic  [9 posts ] 
    Author Message
     Post subject:Vertex Array Tutorial *EDIT* Now with VBOs!
    PostPosted:Mon Sep 06, 2010 7:44 pm 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    After adding vertex array (and VBO) support to Cerberus, I figured I knew enough to write a tutorial. Now, everything is nice and clear to me. Check out the tutorial here: Ditching Immediate Mode: OpenGL Vertex Arrays

    Is prophile happy yet?

    EDIT:

    I also posted a VBO tutorial, which can be found here: Ditching Immediate Mode: OpenGL Vertex Buffer Objects

    Reddit it pl0x.

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Last edited by eddieringle on Tue Sep 07, 2010 12:56 pm, edited 1 time in total.

    Top
    Offline  
     Post subject:Re: Vertex Array Tutorial
    PostPosted:Mon Sep 06, 2010 10:55 pm 
    Literally Nine
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:1263
    Quote:
    Is prophile happy yet?
    Is he ever?


    Top
    Offline  
     Post subject:Re: Vertex Array Tutorial
    PostPosted:Tue Sep 07, 2010 4:52 am 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    Quote:
    Quote:
    Is prophile happy yet?
    Is he ever?
    No. :|

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Vertex Array Tutorial
    PostPosted:Tue Sep 07, 2010 8:17 am 
    Connoisseur of the Godawful
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:456
    ICQ:286315965
    Website:http://rabidtinker.mine.nu/
    Yahoo Messenger:alistair_lynn
    AOL:Agent_Vast@mac.com
    Location:127.0.0.1
    Pfft, vertex arrays without VBOs are deprecated.






    Actually, I think that tutorial's rather good, bravo.

    _________________
    Alastair Lynn / Alumnus / Onlink Team


    Top
    Offline  
     Post subject:Re: Vertex Array Tutorial
    PostPosted:Tue Sep 07, 2010 10:10 am 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    Quote:
    Pfft, vertex arrays without VBOs are deprecated.






    Actually, I think that tutorial's rather good, bravo.
    Thanks. I'm working on a VBO tutorial, too, since I realized how similar they are to vertex arrays.

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Vertex Array Tutorial *EDIT* Now with VBOs!
    PostPosted:Tue Sep 07, 2010 12:56 pm 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    Check the original post, there's a link to my VBO tutorial now. Criticism welcome.

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Vertex Array Tutorial *EDIT* Now with VBOs!
    PostPosted:Fri Sep 10, 2010 7:32 pm 
    Connoisseur of the Godawful
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:456
    ICQ:286315965
    Website:http://rabidtinker.mine.nu/
    Yahoo Messenger:alistair_lynn
    AOL:Agent_Vast@mac.com
    Location:127.0.0.1
    glBufferSubData isn't strongly recommended.

    glMapBuffer is a better route for dynamic data, and for static data you're better off uploading all your data in the glBufferData call.

    Also, it's generally a good idea to separate your different attributes into different VBOs: meaning, have a "vertex" VBO, a "tex coord" VBO, a "colour" VBO for each mesh.

    _________________
    Alastair Lynn / Alumnus / Onlink Team


    Top
    Offline  
     Post subject:Re: Vertex Array Tutorial *EDIT* Now with VBOs!
    PostPosted:Sat Sep 11, 2010 12:01 pm 
    User avatar
     

    Joined:Sun Feb 12, 2006 8:56 pm
    Posts:1019
    Website:http://eddieringle.com
    Location:Detroit, MI
    Quote:
    glBufferSubData isn't strongly recommended.

    glMapBuffer is a better route for dynamic data, and for static data you're better off uploading all your data in the glBufferData call.
    Why isn't it recommended?
    Quote:
    Also, it's generally a good idea to separate your different attributes into different VBOs: meaning, have a "vertex" VBO, a "tex coord" VBO, a "colour" VBO for each mesh.
    Yeah, wasn't sure which was the right way to go prior to writing the tutorial. My common sense told me that more VBOs == more overhead so I stayed away from it. However, I suppose using multiple VBOs is inevitable because it's required when using indices.

    _________________
    -- Eddie Ringle

    Check out Elysian Shadows and consider backing us on Kickstarter!

    ====================================

    Image


    Top
    Offline  
     Post subject:Re: Vertex Array Tutorial *EDIT* Now with VBOs!
    PostPosted:Sat Sep 11, 2010 2:26 pm 
    Connoisseur of the Godawful
    User avatar
     

    Joined:Tue Mar 01, 2005 9:00 am
    Posts:456
    ICQ:286315965
    Website:http://rabidtinker.mine.nu/
    Yahoo Messenger:alistair_lynn
    AOL:Agent_Vast@mac.com
    Location:127.0.0.1
    Quote:
    Why isn't it recommended?
    Speed.

    If you want to know what's fast and what's not, go on ##OpenGL on irc.freenode.net and talk to a guy who goes by several names, some of which are "glYoda", "feelgood" and "RTFM_FTW". He knows everything.

    _________________
    Alastair Lynn / Alumnus / Onlink Team


    Top
    Offline  
    Display posts from previous: Sort by 
    Post new topic Reply to topic

      All times are UTC-05:00


      Who is online

      Users browsing this forum: No registered users and 1 guest


      You cannot post new topics in this forum
      You cannot reply to topics in this forum
      You cannot edit your posts in this forum
      You cannot delete your posts in this forum
      You cannot post attachments in this forum

      Search for:
      Jump to:  
      cron
      Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
      Theme created by Miah with assistance from hyprnova