Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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 824 times)
0 Members and 1 Guest are viewing this topic.
Offline richm

Junior Newbie





« Posted 2012-11-29 00: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 01: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: 3


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


« Reply #2 - Posted 2012-11-29 10: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!
Play the free demo of Revenge of the Titans!
Offline theagentd
« Reply #3 - Posted 2012-11-29 14: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: 264
Projects: 2


I'm the King!


« Reply #4 - Posted 2012-12-06 04: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!

Online matheus23

JGO Wizard


Medals: 72
Projects: 3


You think about my Avatar right now!


« Reply #5 - Posted 2012-12-06 17: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
« Reply #6 - Posted 2012-12-06 18: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 19: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
« Reply #8 - Posted 2012-12-07 04: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  
 
 

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (76 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (119 views)
2013-05-16 00:53:38

gouessej (113 views)
2013-05-16 00:17:58

theagentd (125 views)
2013-05-15 15:01:13

theagentd (112 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (178 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.087 seconds with 21 queries.