How do I extend the distance the mouse can move in an OpenGL window?
What I wish to achieve is an fps like interface where the cursor is hidden and camera rotations are not limited by the mouse having to remain inside the window boundaries.
...
I need to calculate a rotation vector out of the data i get from Sensor.TYPE_ORIENTATION.
The sensor data is defined like this:
the values have to be recalculated to become a correct 3d position: values[0]: Azimuth, angle between the magnetic north direction and the Y axis, around the Z axis (0 to 359). 0=North, 90=East, 180=South, 27...
what is the best way to create a gradient for a 2D polygon in OpenGL, (Linear, and Radial)?
Thanks
How can you generate textures for radial gradients on the fly?
...
Hey all,
I need to know how can I make the skybox appears as it's in the infinity??
I know that it's something related to depth, but I don't know the exact thing to disable or to enable??
Any one can help??
...
I have a problem with lighting in my OpenGL application. When one of the vertices of a drawn polygon goes outside the front clip plane (or has z<0, I'm not sure which), the polygon stops being lighted properly.
This however happens on only one machine I tested, with Intel GMA950 card. On nVidia and ATI cards everything looks fine.
I gu...
How to clip rendering in OpenGL (simple rectangle area)?
Please post a C++ example.
...
Hi
I am trying to display HUD over my 3D game. For starters, I am just trying to display "Hello World", but I haven't had any success yet! The scene freezes / flickers once I am done.
I am using Qt/C++ and QGLWdiget / QPainter to get this done. I have used overpainting example as my reference to get started. Here is what I do:
overri...
I have a situation where I am trying to draw a semi-transparent rectangle over a background that is not using openGL and so I can not use blending. I decided to use polygon stippling for a 'screen door transparency' effect as recommended by some. It works fine on my machine and some others, but on some machines with slightly old Intel ...
Hello, I'm using OpenGL with gluPerspective, what would I need to do to make it use an axis-system which the origin is top left instead of bottom left?
...
Hi
I am trying to load some 3ds objects to a simpleopenglcontrol (Tao framework) but I can't find a loader supports a multi-texture 3ds.
I found a one in C++ but I still having problems with adding a c++ loader to a c# project.
is there a loader in c# can do what I want ? or if there isn't , what is the way to use the c++ loader in a c# ...
Hey guys
Lets say i have a scene with four cubes. How do I say rotate/translate only two of these cubes in OpenGL without changing the others using glrotatef anf gltranslate? I dont wanna define my own homogeneous co-ordinates.
...
Hey guys.
I'm trying to calculate a lookat matrix myself, instead of using gluLookAt().
My problem is that my matrix doesn't work. using the same parameters on gluLookAt does work however.
my way of creating a lookat matrix:
Vector3 Eye, At, Up; //these should be parameters =)
Vector3 zaxis = At - Eye; zaxis.Normalize();
Ve...
Besides Qt, GTK, wxWidgets... What are the recommendations for a cross platform, open source GUI framework library that works with OpenGL?
...
basically I have a texture. I also have a lets say octagon (or any polygon). I find that octagon's bounding box. Let's say my texture is the size of the octagon's bounding box. How could I figure out the texture coordinates so that the texture maps to it. To clarify, lets say you had a square of tin foil and cut the octagon out you'd be ...
Summary: exporting pixel data from NSOpenGLView to some file formats gives incorrect colours
I am developing an application to visualise some experimental data. One of its functions is to render the data in an NSOpenGLView subclass, and allow the resulting image to be exported to a file or copied to the clipboard.
The view exports the ...
can somebody explain please, what exactly glutMainLoop does? and is the order of the functions in main important or not?
int main(int argc, char *argv[])
{
glutInit(&argc, argv);
glutInitWindowSize(400, 300);
glutInitWindowPosition(100, 100);
glutInitDisplayMode(GLUT_RGB);
glutCreateWindow("First Game"...
Hi all,
ok what I want to do is to draw a quad in the scene that lays on a plane parallel to the view. So it should appear flat.
More in particular, I think I didn't get very well how the mechanism of gluLookAt works in comparison with the functions glTranslate and glRotate:
If I position the view "manually" using the functions glTran...
Hello can anyone please let me know a function for 3D printing in OpenGL. I had to print a string and was using glutBitmapCharacter() but this is not printing it.
Thankx in advance. :)
...
Hello all,
I need to use Mesa3D for a cross platform application(windows and Mac only) which uses only offline software rendering. The reason I wanted to use Mesa3D is because it has the same Drawing calls as OpenGL and they are really easy. Now I know that Apple itself has a software implementation (which I heard is flaky), but I prefe...
Hello.
Whenever I close OpenGL window it makes ghci console from which the app was started to immediately disappear. Is there a way to prevent this behaviour? A sample app.
Thanks.
...