opengl

OpenGL application not picking up 64bit Mesa OpenGL32.dll

I'm trying to get a 64bit OpenGL application running with MESA compiled in 64 bit. When compiling both in 32bit it works perfect putting the opengl32.dll and talloc.dll in the same directory as the executable, however, in 64bit the mesa opengl32.dll driver seems to simply pass on the my hardware driver. If I change the opengl32.dll to a...

Is it possible to use custom mipmap sizes?

Hi everybody, i am currently working on some kind of virtual texture implementation. The mipmap levels are used as a level of detail controlling structure. (Every texel in the virtual texture relates to a block of data in the 'real' texture.) The data exists in several detail levels which result in different block counts in the virtual...

Is there a library that offers OpenGL fonts but via modern buffer methods?

As the title implies. I noticed FTGL, the main available, is via deprecated wasteful methods. ...

Installing openGL and openAL in ubuntu

Hi, Please tell me how to install openGL (with GLUT) and openAL (with ALUT) in ubuntu lucid lynx. I tried installing Mesa 7.8.2 using configure and make (the method told in www.mesa3d.org), but it is not installing anything. X.org's X is installed in my system, but there is no /usr/X11R6 directory. Is that a problem? Please help me soon....

OpenGL headers for OS X & Linux

I'd like to have both the includes for OS X as well as linux in my opengl program (C++) how can I set my program to use one if the other is not available? Here's what i'm currently doing: if(!FileExists(OpenGL/gl.h)) #include <GL/glut.h> //linux lib else { #include <OpenGL/gl.h> //OS x libs #include <OpenGL/glu.h> #incl...

User input custom control (text editor)

I am developing a CAD like application. This application is cross platform in the sense that I have a main window which is native to the platform it is running on (Linux, Windows and Apple). Within this window I have an OpenGL context and there I do all my rendering. The application in question does not really rely on common controls (ra...

using OpenGL with JNI crashes

I'm using a third party c++ library that uses OpenGL and I'm having problems integrating it with my Java application. More specifically, my program crashes every time I delete the opengl window. I can create the opengl window and display it fine, but when I try to delete it and clean up the resources my program crashes. I've verified ...

Playing with OpenGL and input from separate threads

Hi, I'm using GLFW for creating OpenGL context and capturing user's input and I wanted to capture whole input actions from other thread than OpenGL context was initially created. Am I able to achieve this by using GLFW, SDL or similar library or need I, for example, use different libraray for each task? And if so, which library would yo...

Compiling GLUI library, VS2010 gives me a weird namespace error

I've got an OpenGL project for a class I'm in, and it's based on GLUI. The provided GLUI library won't work which is why I'm trying to compile it myself. So, I downloaded the source code from SourceForge and try to compile the _glui library. It gives me this, and I can't find any information on it: 1>ClCompile: 1> algebra3.cpp 1> arcb...

Changing the openGL coordinate system.

Right now, my openGL window scales from -1 to 1 on both the X and Y axis. How would I change this, to say, -2 and 2? ...

How to ask OpenGL for graphics device Capabilities (texture2DArray, supported anti-aliasing modes).

We are using OpenTK, C# and visual studio 2010. We need to ask the graphics device if it supports texture2DArray's, and what anti-aliasing modes it may support. Any help will be appreciated. ...

GLSL Shader multi-texture lookup with different texCoord (iPad)

I'm in GLSL texture hell: I load 4 different textures of the same size in uniform sampler2D variables in my fragment shader and try to access them with different texture coordinates: uniform sampler2D image0, image1, image2, image3; varying highp vec2 texCoord; void main() { highp vec2 tc = vec2(texCoord.x, mod(1.0-texCoord.y, 0.2) ...

C# opengl texture

Hi everyone... I want to use textures in opengl on my C# application. I'm using the Tao Framework and I used this code http://www.gamedev.net/community/for...opic_id=405453 (post #2) But I got this runtime error: An unhandled exception of type 'System.DllNotFoundException' occurred in WindowsFormsApplication1.exe Additional informat...

Where can I download original OpenGL SDK (not GLUT) for WindowsXP?

Where can I download original OpenGL SDK (not GLUT) for WindowsXP? I don't have any extra graphics accelerator card installed on my PC. I have just a built-in card. ...

What is the best way to detect mouse-location/clicks on object in OpenGL?

I am creating a simple 2D OpenGL game, and I need to know when the player clicks or mouses over an OpenGL primitive. (For example, on a GL_QUADS that serves as one of the tiles...) There doesn't seems to be a simple way to do this beyond brute force or opengl.org's suggestion of using a unique color for every one of my primitives, which ...

OpenGL: Translate object to origin

I have a car model with different parts of the car described in vertex groups. I want to rotate the tires. The origin of the model is in the middle of the car. Want I'm thinking I need to do is translate the tires to the origin, rotate the tires, then translate them back to their original position. My problems if the translating to the ...

Finding a suitable 2D graphics API

We are in the first stages of making a 2D game at the moment, which will focus on destructible environments and objects. However, we have already encountered serious problems with the choice of the right graphics API At the moment, we use SDL - but the problem we see with it is that it isn't really performant, and has no hardware-accel...

Aggravating OpenGL Texture Issue

I'm having issues trying to get a texture loaded into VRAM. I'm using OpenGL on Mac OS X. I have geometry that I've successfully renderer by passing a color into my fragment shader. However, as soon as I try to load a texture, no geometry gets rendered and I can only see the background color. Here's my texture loading code: char ima...

OpenGL: Accurate textures possible?

This is for a 2D game with OpenGL: Is it with using OpenGL possible to display a texture absolutely unfiltered, not streched or blurred? So that when I have a BMP and convert it into an OpenGL texture, and then retrieve that texture and convert it back, I have no modifications or quality / data loss? ...

SFML window resizing events blocking the main thread

I just started using the SFML library and its fantastic. However when resizing a window by dragging the corner with my mouse i don't get the resize events until i release the mouse. This means i can't update my graphics until the mouse is released (game loop is on the gui thread) and is also causing a massive flood of events to come thro...