Open Graphics Library - API for 2D and 3D computer graphics

learn more… | top users | synonyms

0
votes
0answers
43 views

OpenGL difference between gluPerspective, glFrustum and glOrtho [on hold]

These three OpenGL and glu calls all seem to take very similar arguments and all seem to describe a similar usage,ie: declare a three dimensional space in which to draw ones objects. I substituted ...
0
votes
0answers
56 views

2D Game Data Structure in OpenGL ES 2.0

I'm trying to come up with some data structures for rendering my map on OpenGL. It is going to be ~ 100x100 blocks(squares) total, with each block being around 100 pixels. However, the screen will ...
0
votes
0answers
10 views

Compiling opengl code using gcc through the command line [migrated]

I do not want to use visual studio express because microsoft just wants your cc and they are trying to kill opengl so there is no point to use their compiler. So I want to use Dev C++ gcc from the ...
7
votes
3answers
2k views

What is the relationship between OpenGL, GLX, DRI, and Mesa3D?

I am starting out doing some low-level 3D programming in Linux. I have a lot of experience using the higher level graphics API OpenInventor. I know it is not strictly necessary to be aware of how ...
2
votes
2answers
91 views

Working with shader code

I am starting my first project in OpenGL/GLSL and I was wondering, how do you work with code of shaders? Because it needs to be const char and syntax higlighting shows everything in the same color ...
28
votes
1answer
1k views

Why have hardware-accelerated vector graphics not taken off?

I'm working on an app that involves real-time manipulation of vector paths at 60fps, and I'm very surprised by how little information there is on the subject. At first, I tried to implement my idea ...
2
votes
1answer
116 views

Using a “spherical frustum” for 3D projection

I am currently writing a transformation from model space to clip space for use in OpenGL. From what i have seen, programmers typically use a traditional rectangular frustum to define the clipping ...
1
vote
2answers
175 views

OpenGL extension vs OpenGL core

I was doubting: I'm writing a cross-platform engine OpenGL C++, I figured out windows forces the developers to access OpenGL features above 1.1 through extensions. Now the thing is, on Linux, I know ...
1
vote
2answers
905 views

What is OpenCL? [closed]

I've been looking around, but I'm still not sure on the what OpenCL is. Other than multi processor stuff... Is it another graphics API like OpenGL and DirectX? Or something that works alongside ...
36
votes
14answers
16k views

Why does DirectX use a left-handed coordinate system?

I considered posting on Stack Overflow, but the question strikes me as being far too subjective since I can't think of a reasonable technical explanation for Microsoft's choice in this matter. ...
1
vote
5answers
913 views

Starting with 3D programming [closed]

I will be working on a 3D project and i need to learn c++ and opengl fast. as i have heard it is the best combination to do graphics. I would also like your recommendation on this book I came ...
3
votes
1answer
193 views

OpenGL Image Load-Store Atomics Applications

I originally asked this on plain old stack but it was closed for being too open-ended. (Which was a good call as this is a better place for such questions.) Original Link: ...
2
votes
1answer
598 views

3d point cloud render from x,y,z 2d array with texture

Need some direction on 3d point cloud display using OpenGL in c++ (vs2008). I am brand new to OpenGL and trying to do a 3d point cloud display with a texture. I have 3 2D arrays (each same size ...
1
vote
2answers
638 views

What is the best way to plot 3D/2D plots with real time data? [closed]

First of all, I like to use Python, because it is easy to work with. I am not a programmer, so I prefer anything that is easy to use and understand. I understand that it might be faster to program 3D ...
1
vote
1answer
301 views

Simulating a projector in openGL

I wish to simulate a projector screen in OpenGL, where an image is truly being projected onto the wall in real time. By this I mean if an object were to get in between the projector and the wall, that ...
-1
votes
3answers
990 views

Study Doom 3 Source Code [duplicate]

Possible Duplicate: How do you dive into large code bases? I want to study the source code of a large project (for example, the Doom 3 source code) and I would like some help determining ...
15
votes
5answers
2k views

Why don't modern libraries use OOP

I'm a beginner-level C++ programmer, but I understand the concepts of the language fairly well. When I began to learn external C++ libraries, like SDL, OpenGL (maybe something else too), to my great ...
-1
votes
1answer
405 views

How to move a car around an environment with hills in C++?

I don't have any code for this since I don't know how I am meant to do this. I have a car and I am able to move it around on a flat plane and I have that working correctly. However, I want it to also ...
1
vote
1answer
885 views

OpenGL programming vs Blender Software, which is better for custom video creation?

I am learning OpenGL API bit by bit and also develop my own C++ framework library for effectively using them. Recently came across Blender software which is used for graphics creation and is in turn ...
2
votes
1answer
745 views

Use Android NDK for portability with iOS?

I am currently planning to implement a little painting app using OpenGL ES 1.1. I believe this question applies to any OpenGL ES project. I am starting development on Android and I would like to ...
5
votes
2answers
236 views

Data structures for storing finger/stylus movements in drawing application?

I have a general question about creating a drawing application, the language could be C++ or ObjectiveC with OpenGL. I would like to hear what are the best methods and practices for storing strokes ...
1
vote
1answer
900 views

Using a texture as an integer array (OpenGL 3.3, shader version 3.3) [closed]

I'm trying to have something like an integer array uniform for my fragment shader (I only need read access). Since it's a fairly large chunk of data (not so large that uploading it in every frame ...
9
votes
3answers
2k views

Android, OpenGL and extending GLSurfaceView?

This question is part-technical, part-meta, part-subjective and very specific: I'm an indie game dev working on android, and for the past 6 months I've struggled and finally succeeded in making my ...
2
votes
4answers
3k views

3d point cloud reconstruction using in c++

I've got a project which involves 3D reconstruction if point clouds from a 3D scanner. Being relatively new to the computer vision field I'm in the dark. The objective of the project is to implement ...
1
vote
1answer
324 views

Compiling OpenGL Assembly Language (ARB) assembly code

I have two questions to ask. If I want to code in ARB, what are the prerequisites I need to write the code? I have been using OpenGL and DirectX lately. I want to compile and run the ARB code. What ...
3
votes
2answers
473 views

What are the advantages of GLSL's compilation model?

GLSL is fundamentally different from other shader solutions because the server (GPU driver) is responsible for shader compilation. Cg and HLSL are (afaik) generally compiled a priori and sent to the ...
3
votes
2answers
493 views

Linux OpenGL programming, should I use GLX or any other?

I'm new to OpenGL and found that there are a lot of libraries to do that in C, and I also found that glx is most friendly with Linux X Server, I just want to do basic stuff, and I cannot find any ...
1
vote
1answer
138 views

Advice sought: highly technical app idea - do I employ someone or do it myself? [closed]

I'm a TV producer in London but also an enthusiastic amateur coder and web designer. I started with VB6 and then moved onto C/PHP/Obj-C. I've got a couple apps in the app store, I mess around a lot ...
2
votes
2answers
179 views

How much harder is it to learn Open GL ES 2.0 than 1.x

I have to learn open GL and get a basic open GL app built. Is it easier to learn open GL 1.x ES as apposed to 2.0 which uses shader language? Also is it advisable to learn 1.x before 2.0?
0
votes
1answer
486 views

How to render a terrain using height maps and getting basic collision detection on top of the terrain and camera (moving on the terrain)

I have loaded a .RAW file into a 2x2 array in my class. The way I am rendering it works fine but I am struggling to get the camera to move on top of the terrain. The terrain renders from 0,0,0 (x,y,z) ...
13
votes
3answers
4k views

OpenGL CPU vs. GPU

So I've always been under the impression that doing work on the GPU is always faster than on the CPU. Because of this, in OpenGL, I usually try to do intensive tasks in shaders so they get the speed ...
0
votes
1answer
456 views

Win32 and Win64 programming in C sources? [closed]

I'm learning OpenGL with C and that makes me include the windows.h file in my project. I'd like to look at some more specific windows functions and I wonder if you can cite some good sources for ...
3
votes
3answers
226 views

Global Texture Container

For my first large-ish endevor in Open-GL I'm making a simulator of sorts. I've got much of the basic functionality working, but recently ran into a problem. As I've since realized, I originally ...
4
votes
1answer
1k views

(How can I / Am I allowed to) Use Google Maps as a Texture on an OpenGL object?

Note: I asked a very similar question on StackOverflow but did not get much attention, so was directed to http://programmers.stackexchange.com as licensing issues seem to have more interest here... I ...
1
vote
3answers
1k views

How to import an image using openGL [closed]

I am new to openGL C++ and what I wanted to know is if there was a pre-existing function in the OpenGL library that would allow me to import a 3d or 2d model? For example, if I make a 3d image ...
6
votes
2answers
895 views

Best approach to selecting programming languages and 3D graphics API for simulating physics experiments

I am starting a research project and need to nail down a programming language and 3D graphics API where I will be creating an environment in the field of molecular cell biology where I will be ...
2
votes
2answers
383 views

How would you design a generic layer for OpenGL windowing that does not care how the program underneath actually looks like?

The kind of OpenGL windowing that I refer to is like GLFW, GLUT, SDL, etc. Imagine three C++ programs: (ignore syntax) Game A: class Game resize() keyEvent() Game B: resize() keyEvent() ...
0
votes
1answer
248 views

Adaptative interface with Open GL and machine learning in C#

For my Semester project I have to go for any Adaptative Interface Design. My language is C# and I have to Use OpenTK (wrapper for OpenGL). I have an idea that I should show two points and some ...
2
votes
4answers
761 views

Do sites like goanimate, xtranormal, and animoto use Flash + ActionScript, OpenGL, or other technology?

What technology is used by sites like goanimate, xtranormal, and animoto? Especially the video compilation engine in the backend of animoto? Could HTML5 be used to do everything that's there?
1
vote
5answers
962 views

GUI-Development with QT for OpenGL/C++/MAC

I am a complete newbie considering QT. Would you say it is recommendable to use. I would like to build a GUI for my programm. I need about 10 buttons.(Maybe more) It would also be nice to have a ...
2
votes
3answers
721 views

How to start with 2d or 3d modeling?

My goal is that i can show fractals either into a plane or an space... I thought opengl is the best beggining, but which is the best book oriented to "maths" and "maths graphics"? Red book? ...
13
votes
2answers
1k views

Suggestions for a GUI library in Haskell [closed]

As the Haskell Wiki itself states: There is a large number of GUI libraries for Haskell. Unfortunately there is no standard one and all are more or less incomplete. In general, low-level veneers ...
2
votes
8answers
2k views

Is OpenGL after C++ job oriented? [closed]

First, my regards to all programmers out there who have put their endless efforts in learning and becoming expert, wise, efficient and best. Let me describe my situation. I have just graduated from ...
3
votes
1answer
313 views

Recommendation for an introductory OpenGl Book [closed]

I've been dabbling with c++/SDL and I'm quite keen on learning OpenGL. So my question being - what are some good introductory books/guides to OpenGl?. I know about NEHE but I would prefer to stay ...