opengl

API General Questions and Choices

I've decided to start making graphical games. My language of choice is C++ and the only game I've made so far was a text based game based on Hunt the Wumpus which taught me fundamentals of game loops and robust error handling. I now think I'm going to move onto a version of Tetris. Obviously moving from text-based to graphical programmi...

GLUT for newbies/ help whit refacoring

I had need on making PC emulator for developing monochrome LCD. After googling I found forum (can not remeber where) and sample code using GLUT. Current emulator look like this. //mine .h source #include "defines.h" #include "displayemu.h" TDisplayBuffer displaybuffer[SIZEOFDISPLAYX*SIZEOFDISPLAYY/8+1]; //usual hacks #include <window...

Where can I find 3D model files?

I wanted to know whether a 3D model library exists which is built upon opengl which i can use in my c/c++ code. for eg ,is there a library where there are ready models of viz.apple,fan,football which i can directly draw using c/c++? ...

How to convert OpenGL code to JOGL?

I have an application using OpenGL code. Now I want to convert it into JOGL code. Is it possible to convert OpenGL code to JOGL? What are the changes we have to do? ...

Particle System Design ?

Hello, I'm designing my own particle System engine, this is for learning purposes, I don't really want to use an existing engine. Right now I generated beautiful particles, but I want to layout the engine to make it easier to work with them. I have been thinking on a Class "Particle System", that class would contain the following refe...

OpenGL/Java Learning Curve

We are looking at speeding up a project with new developers. How long is a typical Java + OpenGl learning curve if anyone has any experience ? The core work is on detailed globe visualization. ...

TrueType font antialiased? Bitmap fonts

I'm using this tutorial, but the font isn't antialiased. The font size is big, so it should antialiased it, but it doesn't. Do I need to enable something in openGL to make it antialiased? ...

Programmatically block screen saver in Mac OSX

Is it possible to programatically ask Mac OS X not to turn on the screen saver while your application is active? ...

Strange Clipping Issue in OpenGL

Hey all, I am very very new to OpenGL, so please bear with me. :) I'm working through NeHe's OpenGL tutorials, and I have developed my own version of Lesson 5, in which you rotate a 3D shape around the origin. I'm not sure what I did wrong, I copied the code nearly line-for-line, but I'm seeing strange overlaps in my surfaces. Does anyo...

find out instantiating object in the constructor of a class

How can i get hold of the instantiating object from a constructor in java? I want to store reference to the parent object for some GUI classes to simulate event bubbling - calling parents handlers - but i dont wanna change all the existing code. ...

Fragment shader rendering to off-screen frame buffer

Hi! In a Qt based application I want to execute a fragment shader on two textures (both 1000x1000 pixels). I draw a rectangle and the fragment shader works fine. But, now I want to renderer the output into GL_AUX0 frame buffer to let the result read back and save to a file. Unfortunately if the window size is less than 1000x1000 pixel...

How do I use Vertex Buffer Objects to render many different circles?

I'm trying to write a game that deals with many circles (well, Triangle Fans, but you get the idea). Each circle will have an x position, a y position, and a mass property. Every circle's mass property will be different. Also, I want to color some groups of circles different, while keeping a transparent circle center, and fading to opaqu...

I want to make a simple 3D game using openGL, where should I start?

I find that I learn best by example. Is there a good website or codebase that shows how event handling, collision detection, modeling, and basic 3D drawing works? The game I'm trying to begin with is a simple racing game where the user controls a small space ship and navigates through channels, asteroid fields, space colonies, and vario...

How to detect if an OpenGL debugger is being used?

Is there any way of detecting from my Windows OpenGL application if a debugger (such as gDEBugger) is being used to catch OpenGL calls? I'd like to be able to detect this and terminate my application if a debugger is found, to avoid shader code and textures from being ripped. The application is developed in C++ Builder 6. ...

My app closes without any warning or error message.

Hi. I'm programming an puzzle game for iPhone using openGL. There Is one very weird "bug" ( I'm not sure what It is)... whenever I touch the screen a great number of times in a short period of time my app closes, without giving a warning or error. What could be the cause ?, I guess It has something to do with the memory, but I would...

How do I create a custom page curl Core Animation?

Hi! I'm trying to create a "page curl" animation of an image in my iPhone application. I t UIViewAnimationTransitionCurlUp, and it's undocumented Core Animation siblings, however the image I need to animate is a transparent PNG, with "uneven" (some alpha pixels) outlines. When using the aforementioned pre-made transition, those alpha pi...

3D graphics in Delphi/Native TForm GUIs

What is the easiest way to do accelerated 3D graphics inside a TForm in Delphi? ...

OpenGL - to use or not to use ? why - iPhone application dev

I have to develop an application "Behavior like an Tetris game". I have never used "OpenGL" for the iPhone application developement. Application is something like this Red / green / blue square boxes drop from top Red + Red + Red = Points & boxes disappears same way user has to make combination & get points Different levels are ther...

OpenGL / C++ - How do you fill an area surrounding a point on a mouse click?

Hi all, I've got the mouseclick handler correctly set up. I have a drawing with some shapes. Is there any way for me to fill the surrounding part of a point until it hits a polygon boundary. Something like Microsoft Paint's "fill" command. Thanks! ...

Having trouble with ear clipping

The problem I have is coming up because I can't identify a a caved in triangle vs an ear that should actually be chopped off. How can I tell the difference between a convex and a concave triangle? ...