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
0 answers

Problem with glOrtho: the curve disappears from the scene

I have curve, a parable (y=x*x) for x in [0, 10]. I have used: glOrtho(-10 - 3, 10 + 3, -(y(10)+ 3) * (GLfloat) h / (GLfloat) w, (y(10) + 3) * (GLfloat) h / (GLfloat) w, -1, 1); a part on top is clipped. Moreover if I…
willie
  • 39
  • 1
  • 5
0
votes
1 answer

gluLookAt doesn't work with some parameters

I'm trying to move the camera along the XYZ axes. To do this, I change the third parameter in the glulookat function and it behaves strangely. Here is my entire…
mrjbom2
  • 345
  • 3
  • 10
0
votes
1 answer

python gluLookAt for first person camera

i'm new to openGL and i'm trying to move the camera as a first person shooter game. i want to use gluLookAt for movement and looking around the scene, but i can't figure out the camera…
Omar Alhussani
  • 162
  • 1
  • 12
0
votes
1 answer

In C, how do I install GL/glx.h , GL/gl.h and GL/glu.h on Mac OS

I have some code which includes the headers GL/glx.h , GL/gl.h and GL/glu.h . I do not even know what these are, and Google is not a lot of help because there is so much noise in the search results. So (optionally) what are they, but more…
Peter B
  • 453
  • 4
  • 15
0
votes
1 answer

gluLookAt issues - how to make a curve like movement?

So basically, by using left, right, up and down keys I need to achieve this animation probably using gluLookAt. I have tried everything but I can't get it to move exactly like this. Do you have any tips? Here is my current function for camera…
me995
  • 59
  • 1
  • 6
0
votes
1 answer

How to draw different colored line strips with Legacy OpenGL?

So, I have a matrix of pairs of x and y coordinates, each line in the matrix represents a route, which I would like to represent as a GL_LINE_STRIP in OpenGL. The thing is I would like to draw the lines with different colors each time. I thought my…
0
votes
0 answers

Issue with getting proper un-projected touch coordinates using GLES20 on Android

I am trying to develop a simple game app for Android using OpenGL as my base. So far, I have a very basic setup with some shapes and an object class that instantiates a square. The camera can be panned by touching and dragging, and zoomed using two…
0
votes
2 answers

How can I make an Exact sphere using glu NURBS?

I'm working on a program that slices up the surface of a sphere using great/small circles. I've got all the math done. The circles on the surface intersect, make arcs, recognize compact regions, and recognize repeated regions. Now the only thing…
Tyler Fox
  • 170
  • 1
  • 12
0
votes
0 answers

Getting error when i call OpenGl in python

when i try to import Opengl to my python code i get an error. this is the error message: from OpenGL.GLU.projection import * File…
harounbest
  • 61
  • 1
  • 13
0
votes
0 answers

Follow object on negative Y axis with gluLookAt()?

I want to follow a object in negative Y-axis. Here is my look-at function: gluLookAt(0,Y,0, 0,0,0, 0,0,1); I am increasing the value by pressing pageUp key which is also increasing the translating value of my object in negative Y-axis. Y's…
0
votes
0 answers

QT This application failed caused by OpenGL

I have a question about programming in QT under Linux 16.04LTS and CUDA. I am trying to develop an OpenGL application and I'm struggling when I'm trying to build app. It gives me this error: This application failed to start because it could not…
Andy
  • 61
  • 1
  • 6
0
votes
1 answer

How to check window is open via openGL or Glut

I have seen a method in SFML called isOpen which checks if the window is open. Is there any similar equivalent in openGL or GLUT which checks if the window is open?
ar2015
  • 5,558
  • 8
  • 53
  • 110
0
votes
1 answer

Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE ""

I'm trying to compile cryptonotecoinwallet repo using CMake with VS2010 compiler (according to the comments I got for this question) I tried to add the below line to the CMake file and the cache file, but no luck. set (CMAKE_PREFIX_PATH…
Praneeth Peiris
  • 2,008
  • 20
  • 40
0
votes
2 answers

Change parameters of gluPerspective() dynamically?

In order to understand how gluPerspective() works, I would like to change its parameters(the first one which is the angle) dynamically with the arrows of the keyboard. How can I make it work and is it a problem when matrix mode is set in a callback…
yooo123
  • 67
  • 1
  • 1
  • 11
0
votes
1 answer

undefined symbol: gluUnProject while running QT application on Ubuntu

I am using Qt 5.7.1 and my application have 3 plug-ins. While running one plug-in which have graphics its crashing immediately by giving error the following error: libSamplePluginD.so.1.0.0: undefined symbol: gluUnProject What may be the problem,…
Sijith
  • 3,740
  • 17
  • 61
  • 101