Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
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 574 times)
0 Members and 1 Guest are viewing this topic.
Offline kingroka123

JGO Ninja


Medals: 41
Projects: 6
Exp: 1 year


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 opiop65

JGO Kernel


Medals: 159
Projects: 7
Exp: 3 years


JumpButton Studios


« 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 Ninja


Medals: 41
Projects: 6
Exp: 1 year


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 Coder


Medals: 31



« 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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (29 views)
2014-11-22 12:13:56

xFryIx (71 views)
2014-11-13 12:34:49

digdugdiggy (50 views)
2014-11-12 21:11:50

digdugdiggy (44 views)
2014-11-12 21:10:15

digdugdiggy (38 views)
2014-11-12 21:09:33

kovacsa (62 views)
2014-11-07 19:57:14

TehJavaDev (67 views)
2014-11-03 22:04:50

BurntPizza (65 views)
2014-11-03 18:54:52

moogie (80 views)
2014-11-03 06:22:04

CopyableCougar4 (80 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!