Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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 Struggling with VBO's  (Read 1740 times)
0 Members and 1 Guest are viewing this topic.
Offline richm

Junior Newbie





« Posted 2012-11-28 23:12:34 »

Hey,

I've been trying to learn OpenGL and after learning some of the fixed functionality stuff, I'm trying to learn the newer versions of OpenGL. 
I'm following this tutorial here on the LWJGL Wiki.

The code works fine if I copy paste it into Eclipse, but the code I've written is spread out over more classes. 

No errors are being printed out, but nothing is being rendered to the screen. 
I've posted my code in a pastebin, I was hoping someone might be able to point out where I've gone wrong.

Pastebin: http://www.java-gaming.org/index.php?action=pastebin&hex=5fd164b2f3e

Thanks,

Rich
Offline theagentd
« Reply #1 - Posted 2012-11-29 00:26:44 »

That's way too much code to go through, sorry. Try something simpler like just rendering a single triangle or something. It's a big step to just get something on the screen with OGL3. Otherwise I'd recommend that you try to find where everything is going wrong.

Myomyomyo.
Offline masteryoom

JGO Coder


Medals: 5
Projects: 2


If you look closely, you might see it turning...


« Reply #2 - Posted 2012-11-29 09:51:08 »

Did you import LWJGL and why are you using OGL3? I think you could maybe do it with GL11 wthout much problems. Grin

Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline theagentd
« Reply #3 - Posted 2012-11-29 13:37:29 »

Did you import LWJGL and why are you using OGL3? I think you could maybe do it with GL11 wthout much problems. Grin
Why use OpenGL at all? He could probably use something even more deprecated.

+1 to OGL3.

Myomyomyo.
Offline ra4king

JGO Kernel


Medals: 347
Projects: 3
Exp: 5 years


I'm the King!


« Reply #4 - Posted 2012-12-06 03:46:40 »

Did you import LWJGL and why are you using OGL3? I think you could maybe do it with GL11 wthout much problems. Grin
Why use OpenGL at all? He could probably use something even more deprecated.

+1 to OGL3.
Yeah! Le'ts use......Microsoft GL!

Offline matheus23

JGO Kernel


Medals: 108
Projects: 3


You think about my Avatar right now!


« Reply #5 - Posted 2012-12-06 16:58:14 »

Did you import LWJGL and why are you using OGL3? I think you could maybe do it with GL11 wthout much problems. Grin
Why use OpenGL at all? He could probably use something even more deprecated.

+1 to OGL3.
Yeah! Le'ts use......Microsoft GL!
What? Microsoft GL? (I don't think that exists... )
We use an Arduino with one little LED!

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline RobinB

JGO Ninja


Medals: 44
Projects: 1
Exp: 3 years


Spacegame in progress


« Reply #6 - Posted 2012-12-06 17:40:06 »

Did you import LWJGL and why are you using OGL3? I think you could maybe do it with GL11 wthout much problems. Grin
Why use OpenGL at all? He could probably use something even more deprecated.

+1 to OGL3.
Yeah! Le'ts use......Microsoft GL!
What? Microsoft GL? (I don't think that exists... )
We use an Arduino with one little LED!

To hard, just connect the led to an push button Smiley
Offline theagentd
« Reply #7 - Posted 2012-12-06 18:33:41 »

The LED is redundant. If you're a good programmer, you should be able to calculate that if the button is pressed the LED is supposed to be on, so there's no need for it.

Myomyomyo.
Offline sproingie

JGO Kernel


Medals: 202



« Reply #8 - Posted 2012-12-07 03:29:05 »

If you're a real programmer, you've already statically proven whether the light is on or off, so there's no need to actually do it.
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.

Pippogeek (38 views)
2014-09-24 16:13:29

Pippogeek (29 views)
2014-09-24 16:12:22

Pippogeek (18 views)
2014-09-24 16:12:06

Grunnt (42 views)
2014-09-23 14:38:19

radar3301 (24 views)
2014-09-21 23:33:17

BurntPizza (61 views)
2014-09-21 02:42:18

BurntPizza (31 views)
2014-09-21 01:30:30

moogie (36 views)
2014-09-21 00:26:15

UprightPath (49 views)
2014-09-20 20:14:06

BurntPizza (53 views)
2014-09-19 03:14:18
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!