Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (686)
Games in Android Showcase (198)
games submitted by our members
Games in WIP (758)
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 1232 times)
0 Members and 1 Guest are viewing this topic.
Offline kingroka123

JGO Kernel

Medals: 111
Projects: 9
Exp: 3 years

Gamer's Helmet

« 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

JGO Kernel

Medals: 111
Projects: 9
Exp: 3 years

Gamer's Helmet

« 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: 51

« 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  
You cannot reply to this message, because it is very, very old.

roseslayer (423 views)
2016-08-06 11:43:29

roseslayer (383 views)
2016-08-06 09:43:11

xTheGamerCodes (460 views)
2016-08-04 15:40:59

xTheGamerCodes (454 views)
2016-08-04 15:40:24

orrenravid (803 views)
2016-07-16 03:57:23

theagentd (879 views)
2016-07-11 14:28:54

Hydroque (975 views)
2016-07-06 05:56:57

Hydroque (995 views)
2016-07-03 08:52:54

GrandCastle (807 views)
2016-07-01 09:13:47

GrandCastle (638 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42 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!