Questions tagged [glu]

The OpenGL Utility Library

The OpenGL Utility Library (GLU) provides a number of higher level drawing routines and utility functions on top of OpenGL. As such it provides functionality for:

  • Mipmapping,
  • Matrix manipulation
  • Polygon tessellation
  • Quadrics
  • NURBS
  • Error handling

Version 1.3 of the GLU specification can be found on the OpenGL website (PDF).

Resources:

229 questions
0
votes
1 answer

Computer Graphics Coordinates with glu (OpenGL)

I am having difficulty figuring out how the coordinate system in glu works, several problems to solve. GLJPanel canvas = new GLJPanel(); frame.setSize(400,600); // Size in pixels of the frame we draw…
Javaturtle
  • 329
  • 1
  • 2
  • 13
0
votes
2 answers

My code for rendering random polgons is not working properly

I'm working on opengl c++ and tried to make a code for rendering random polygons on an terminal. I'm using CodeBlocks 13.12. int width=800; int height=600; void RandomPolygons() { glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); GLint…
Fnu Avi
  • 13
  • 1
  • 6
0
votes
1 answer

Why would GLU crash at this spot?

I have found that my application crashes with a null reference exception right here in sweep.c in GLU source code: static void ConnectLeftVertex( GLUtesselator *tess, GLUvertex *vEvent ) /* * Purpose: connect a "left" vertex (one where both edges…
jmasterx
  • 52,639
  • 96
  • 311
  • 557
0
votes
2 answers

A way of debugging GLU with Visual Studio?

I'm using GLUTess to tesselate polygons. Sometimes it crashes with a null pointer issue and I have no way of knowing why since I just link to glu32.lib . Is there a way to see the source and get the exact line it crashes on? Thanks
jmasterx
  • 52,639
  • 96
  • 311
  • 557
0
votes
1 answer

What modelView do I use in gluUnproject?

I have three cubes rotating in my 3D scene. What I'm trying to achieve is calculating which one (if any) of the cubes that has been pressed. I think I understand how gluUnproject works, I simply have to run gluUnproject twice, once for the near…
Abu Hassan
  • 39
  • 6
0
votes
1 answer

Iphone opengl es - glu, glPushName

Using Iphone and Objective C Im trying to find what plane has been clicked/touched in my opengl view. Typically i would use glPushName/ flPopName but this function doesn't seem to be implemented in the sdk or defined in . Does anyone know where to…
yeahdixon
  • 6,647
  • 1
  • 41
  • 43
0
votes
1 answer

Android OpenGL: Moving the centroid of one object to a specific point on another complex object

I'm developing a medical app that involves android OpenGL for some data visualization. In my app, I have a complex brain object (with some 80000 vertices) and a small sphere. I'm trying to figure out a way where I can move the centroid of that…
brohan322
  • 358
  • 1
  • 12
0
votes
1 answer

Picking in OpenGL using glRenderMode(GL_SELECT) and glReadPixels

I'm trying to do selection in opengl but it is not working. I draw objects I receive from a .obj file (v, vn, f, o and such indices). Each object consists from "groups" and each group is a group of GL_POLYGON. Here is the draw function: void…
Javi
  • 889
  • 1
  • 16
  • 41
0
votes
1 answer

GluPerspective acting strange

I'm trying to change the field of view in my scene when touching F2 and F3. For this I have in my specialKey function this: void specialKey(int key, int x, int y) { switch (key) { case GLUT_KEY_F2: changeFOV = true; fovScale…
Javi
  • 889
  • 1
  • 16
  • 41
0
votes
2 answers

gluCylinder vs glutSolidCylinder

Though I know gluCylinder is somewhat old(and glu too) and glut is still there(through freeglut) but I saw those two and wondering what's the difference ? besides that gluCylinder requires that you define a Quadric, and what's faster ? .
niceman
  • 2,653
  • 29
  • 57
0
votes
0 answers

Inverting projection and modelview matrices to transform mouse click coordinates to world coordinates intersecting the z=0 plane

BACKGROUND Using kivy with openGL and GLU style functions, I have gotten modelview and projection matrices working. The model matrix is not used, so the modelview matrix is just really a transform based upon the location of the camera. # cx,cy,cz…
weemattisnot
  • 889
  • 5
  • 16
0
votes
1 answer

GLUquadricObj How do get the position.. Is there a class definition somwhere?

Is there a way to get the current location of a GLUquadricObj object? I've tried things like obj->getX() and such. Does anyone know how to do this?
segFault42
  • 17
  • 5
0
votes
1 answer

Linker can't find existing library

I'm working on an OpenGL project recently and decided to move to 64 bit, so i changed the compiler to g++ 4.9.2 which supports 64bit. I changed the other libraries to 64bit too, but only the system provided libs, Glu32 and OpenGL32, can't be found…
Matze
  • 533
  • 7
  • 16
0
votes
2 answers

UnProjected mouse coordinates are between 0-1

I'm trying to create a ray from my mouse location out into 3D space, and apparently in order to do that I need to "UnProject()" it. Doing so will give me a value between 0 & 1 for each axis. This can't be right for drawing a "Ray" or a line from…
Yattabyte
  • 1,280
  • 14
  • 28
0
votes
0 answers

How flexible is OpenGL's quadric functionality and transformation matrices?

To give you an idea of where I'm coming from, this started as a teaching exercise to get a 12-year-old video game addict into coding. The 2D games, I did in SDL with him and that was fine because I wasn't planning on going into 3D. Yeah, right! So…
Mike
  • 2,721
  • 1
  • 15
  • 20