Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
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  
  [SOLVED] Problems with gluBuild2DMipmaps in JOGL 2  (Read 6966 times)
0 Members and 1 Guest are viewing this topic.
Offline eddiebro3

Senior Newbie

« Posted 2009-07-13 21:01:02 »

Hi people! I'm having problems porting applications that uses texture mapping with gluBuild2DMipmaps in JOGL 2. Anyone has the same problem or know how to solve?

Offline lhkbob

JGO Knight

Medals: 32

« Reply #1 - Posted 2009-07-13 21:10:49 »

What problems are you having?

Offline eddiebro3

Senior Newbie

« Reply #2 - Posted 2009-07-13 21:20:24 »

I'm trying to migrating the codes from to JOGL 2, all examples(for example Lesson 7) that using the gluBuild2DMipmaps to mapping textures aren't working.

Any Help will appreciated...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Orangy Tang

JGO Kernel

Medals: 57
Projects: 11

Monkey for a head

« Reply #3 - Posted 2009-07-14 08:46:17 »

See here.

[ - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline eddiebro3

Senior Newbie

« Reply #4 - Posted 2009-07-14 17:04:27 »

Excuse me for the previous explanation of my problem. I will try to explain better Wink. I tried to migrate the examples of Nehe OpenGL tutorial available on site for the new version of JOGL2. The examples:


uses the function gluBuild2DMipmaps that causes the following exception:

Caused by: not implemented
        at demos.nehe.lesson22.Renderer.loadGLTextures(
        at demos.nehe.lesson22.Renderer.init(
        at demos.common.GLDisplay$MyHelpOverlayGLEventListener.init(
        at com.sun.opengl.impl.GLDrawableHelper.init(
        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(
        at java.awt.event.InvocationEvent.dispatch(
        at java.awt.EventQueue.dispatchEvent(
        at java.awt.EventDispatchThread.pumpOneEventForFilters(
        at java.awt.EventDispatchThread.pumpEventsForFilter(
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(
        at java.awt.EventDispatchThread.pumpEvents(
        at java.awt.EventDispatchThread.pumpEvents(

In this address(, I'm providing the source code to OpenGL Nehe Tutorial Moved to JOGL2.

So, anyone know the causes of that exception?

Please help...
Offline bienator

Senior Devvie


« Reply #5 - Posted 2009-07-14 17:40:24 »

looks like it isn't implemented yet Wink

Offline bobjob

JGO Knight

Medals: 12
Projects: 4

David A M

« Reply #6 - Posted 2009-07-15 01:59:05 »

Jogl contains support for the GLU (OpenGL Utility Library) version 1.3. Jogl originally supported GLU by wrapping the C version of the APIs, but over time, and thanks to the contributions of several individuals, it now uses a pure-Java version of SGI's GLU library. The pure Java port is enabled by default, and addresses stability issues on certain Linux distributions as well as the lack of native GLU 1.3 support on the Windows platform. In case of problems with the Java port, the C version of the GLU library may be used by specifying the system property -Djogl.glu.nojava on the command line. All of the same functionality is exposed with both the Java and C versions of the GLU library; currently NURBS support is the only missing feature on both sides. If you run into problems with the Java port of the GLU library please file a bug using the Issue Tracker on the Jogl home page.

To use the GLU, simply instantiate a GLU object via new GLU() at the beginning of your program. The methods on the GLU object may be called at any point when an OpenGL context is current. Because the GLU implementation is not thread-safe, one GLU object should be created for each GLEventListener or other entity performing OpenGL rendering in a given thread.
Offline eddiebro3

Senior Newbie

« Reply #7 - Posted 2009-07-17 15:26:20 »

Inserting -Djogl.glu.nojava in the command line don't work.
Offline eddiebro3

Senior Newbie

« Reply #8 - Posted 2009-07-17 15:27:59 »

looks like it isn't implemented yet Wink

I think u are right it's a bug.

Offline jiapei100

Junior Devvie

« Reply #9 - Posted 2009-08-11 15:27:47 »

Yes, this is definitely a bug.

Hehe... Lesson 7,8,10,15,16,18,22,29 ...

Why there is no nehe Leeson 35, 38, 41, 43, 46 in JOGL, but in C++?


Welcome to Vision Open
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline sgoethel

Junior Devvie

keep the source alive

« Reply #10 - Posted 2009-08-12 13:59:58 »

Thank you for finding this bug ..

Hopefully I have time to fix it this weekend.
However, feel free to send me a git repo / pull offer with a fix Smiley
I guess the native GL2 GLU version is buggy here.

Cheers, Sven

JogAmp [ GlueGen, JOAL, JOGL, JOCL, ..]
Offline cegoes

Senior Newbie

« Reply #11 - Posted 2009-09-09 13:52:40 »

I found the problem, to fix the Lessons 7,8,10,15,16,18,22 and 29 of nehe just change:

GLU glu = new GLU();


GLUgl2 glu = new GLUgl2();

The call to the method glu.gluBuild2DMipmaps in JOGL 2 will work fine now!

Well it appear not a bug but a change need object.

I fixed the source code and release here:

Best Regards
Claudio Eduardo Goes
Offline rsantina

Junior Devvie

« Reply #12 - Posted 2009-09-23 06:26:09 »

Is the java version faster than the c version (with binding) ?
Pages: [1]
  ignore  |  Print  

nelsongames (19 views)
2018-04-24 18:15:36

nelsongames (17 views)
2018-04-24 18:14:32

ivj94 (608 views)
2018-03-24 14:47:39

ivj94 (53 views)
2018-03-24 14:46:31

ivj94 (402 views)
2018-03-24 14:43:53

Solater (66 views)
2018-03-17 05:04:08

nelsongames (111 views)
2018-03-05 17:56:34

Gornova (176 views)
2018-03-02 22:15:33

buddyBro (747 views)
2018-02-28 16:59:18

buddyBro (94 views)
2018-02-28 16:45:17
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!