Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
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 4781 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: 10
Projects: 4

David Aaron Muhar

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

My Projects
Games, Webcam chat, Video screencast, PDF tools. with chat room
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  
You cannot reply to this message, because it is very, very old.

BurntPizza (13 views)
2015-10-07 17:15:53

BurntPizza (25 views)
2015-10-07 02:11:23

KaiHH (25 views)
2015-10-06 20:22:20

KaiHH (12 views)
2015-10-06 19:41:59

BurntPizza (26 views)
2015-10-06 19:04:48

basil_ (44 views)
2015-09-30 17:04:40

shadowstryker (22 views)
2015-09-29 15:55:06

TheSpaceHedgehog (28 views)
2015-09-29 01:58:48

GamerC4 (54 views)
2015-09-24 21:10:38

GamerC4 (71 views)
2015-09-24 21:09:48
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 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!