Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  LWJGL Quad VS VBO  (Read 2221 times)
0 Members and 1 Guest are viewing this topic.
Offline kingroka123
« Posted 2013-12-03 01:34:00 »

Hey, I've started using lwjgl and I've figured out two things about it:
    1. I have almost no idea what VBOs are and what their benefits are.
    2. Long paragraphs with complicated looking code (may not actually be complicated but long paragraphs exaggerates complication of the code) make me lose focus very quickly.

So, while I'm trying to piece things together please tell me which I should be spending most of my effort towards. I don't want to spend three days learning Quads and company while I could sped five days learning VBOs and get a better result.

P.S: I understand Quads
P.P.S: Thanks for any replies
Offline Opiop
« Reply #1 - Posted 2013-12-03 02:06:28 »

First off, there's no such thing as a quad in LWJGL. A quad is short for quadrilateral, and is just a geometric shape. You may be looking for the term immediate mode, or something like that.

VBOs are beneficial when pushing large amounts of static geometry to be rendered, as all the data is stored in GPU memory (I think, someone can confirm this?). I believe they are beneficial for static geometry because physics and the such are performed on the CPU, but since static never moves (or rarely moves), we don't need to calculate anything on the CPU, so we just send the data straight over the bus to the GPU. As for their actual use, they are far speedier than immediate mode/display lists, and are the modern way of doing things.

If you want a good tutorial on them, search for SHC on this forum and look up his Vertex Buffer Object tutorial. As a side note, VBOs aren't actually a thing in OpenGL as a Buffer Object is simply a way to hold data. So be prepared if people yell at you for calling them vertex buffer objects! They are simply buffer objects. 
Offline kingroka123
« Reply #2 - Posted 2013-12-03 02:24:29 »

Wow I knew that I was lost but I didn't know that I was THAT lost. Thanks for setting me straight. Undecided please forgive my lack of knowledge.

I got "quad" from this tutorial on the lwjgl website. The tutorial is called "the Quad" so I just assumed.

Thanks for reply though, I will go with VBOs or just Buffer Objects for my rendering
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline quew8

JGO Knight

Medals: 53

« Reply #3 - Posted 2013-12-03 22:51:11 »

@Opiop65 You are right.

Although I've never heard people yell for calling an OpenGL buffer used for storing vertex info a VBO, you raise an interesting point. Namely why are VBOs called VBOs when there is no reference to that anywhere in the documentation. They are OpenGL buffers and their target is GL_ARRAY_BUFFER. No mention of vertices anywhere and yet everyone calls them VBOs. I'm actually quite interested. If anyone knows, please do reply.

@Kingroka123 You shouldn't ask for forgiveness for lack of knowledge. If everyone knew everything then the world would be a very boring place - seriously imagine what that would be like. Scary. 
Offline SHC
« Reply #4 - Posted 2013-12-05 17:15:54 »

If you want a good tutorial on them, search for SHC on this forum and look up his Vertex Buffer Object tutorial.

Thank you for mentioning my tutorial.

Pages: [1]
  ignore  |  Print  

EgonOlsen (58 views)
2018-06-10 19:43:48

EgonOlsen (40 views)
2018-06-10 19:43:44

EgonOlsen (60 views)
2018-06-10 19:43:20

DesertCoockie (225 views)
2018-05-13 18:23:11

nelsongames (141 views)
2018-04-24 18:15:36

nelsongames (140 views)
2018-04-24 18:14:32

ivj94 (882 views)
2018-03-24 14:47:39

ivj94 (143 views)
2018-03-24 14:46:31

ivj94 (794 views)
2018-03-24 14:43:53

Solater (158 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!