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  
  Nehe tutorials ported to jogl 2.0 (1-13 so far)  (Read 2377 times)
0 Members and 1 Guest are viewing this topic.
Offline Grand Poeba

Junior Member





« Posted 2011-11-02 10:52:07 »

Hi everyone,

Recently I decided to pick up on java and opengl again using JOGL.
I was only used to 1.1 version so I decided to port the Nehe tutorials to Jogl 2.0.
However I ran into some trouble with tutorial 9 and 10.

Tutorial 9: No matter what color I specify before drawing the squares/stars they are always white/grayish

I have attached the code from all current Tutorials i have converted (first 10). I also made a selection menu so u can easy run each
different tutorial.

If anyone has any idea I would like to hear em. Remarks on the current converted code are also welcome.
I will also try and convert eventualy all tutorials and if people are interested in all tutorialcode let me know and I might upload them

Thx

EDIT updated link to lessons 13 : File name: tutorials.zip File size: 417.38 KB
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #1 - Posted 2011-11-02 11:16:34 »

Hi

Can you tell me which version of JOGL 2.0 you use? Which build exactly? Can you rather put a ZIP? I cannot open RAR files. Some tutorials for JOGL are always welcome. Thanks.

Offline Grand Poeba

Junior Member





« Reply #2 - Posted 2011-11-02 12:32:48 »

Hi

Can you tell me which version of JOGL 2.0 you use? Which build exactly? Can you rather put a ZIP? I cannot open RAR files. Some tutorials for JOGL are always welcome. Thanks.

I used version 2.0-b41-20110916 and I uploaded the archive as zip now
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #3 - Posted 2011-11-03 22:33:52 »

Hi

Can you tell me which version of JOGL 2.0 you use? Which build exactly? Can you rather put a ZIP? I cannot open RAR files. Some tutorials for JOGL are always welcome. Thanks.
Why can't you open RAR files? There are lots of excellent free open source programs that can open RAR files, like 7-zip Smiley

Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #4 - Posted 2011-11-04 15:54:23 »

Hi

Can you tell me which version of JOGL 2.0 you use? Which build exactly? Can you rather put a ZIP? I cannot open RAR files. Some tutorials for JOGL are always welcome. Thanks.
Why can't you open RAR files? There are lots of excellent free open source programs that can open RAR files, like 7-zip Smiley
I was at work when I wrote that. I have a root access only on my machines at home. I know 7-zip and I already use it.

@Sebastiaan Rather use GLProfile.getMaxFixedFunc() because the default profile might be the highest forward compatible programmable profile in the future on some graphics cards. I haven't found why your tutorial 9 was not working.

Offline Grand Poeba

Junior Member





« Reply #5 - Posted 2011-11-07 14:23:19 »

I uploaded the new code to include tutorials 11 to 13.

I solved the problem in tutorial 10 with the textures by adjusting the original nehe world.txt to something more suitable
In tutorial 13 however i dont see the text being printed on the screen.
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #6 - Posted 2011-11-07 15:04:08 »

I uploaded the new code to include tutorials 11 to 13.

I solved the problem in tutorial 10 with the textures by adjusting the original nehe world.txt to something more suitable
In tutorial 13 however i dont see the text being printed on the screen.

Maybe ask some help on the official JOGL forum (JogAmp.org). You should ask Michael Bien (bienator here) to add your tutorials to our wiki.

Offline Grand Poeba

Junior Member





« Reply #7 - Posted 2011-11-08 10:03:26 »

I uploaded the new code to include tutorials 11 to 13.

I solved the problem in tutorial 10 with the textures by adjusting the original nehe world.txt to something more suitable
In tutorial 13 however i dont see the text being printed on the screen.

Maybe ask some help on the official JOGL forum (JogAmp.org). You should ask Michael Bien (bienator here) to add your tutorials to our wiki.

I made topic there too, I solved the tutorial 13 problem by adjusting the translate position
In tutorial 12 however it seems for every triangle it draws and extra black sqaure/triangle that interferes with the cubes rendered thus making it look like corners of the cubes are missing
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks 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 (84 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (187 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.076 seconds with 22 queries.