OpenGL is a graphics standard and API which targets the desktop and workstation markets. It is designed to be easy to accelerate with dedicated computer hardware, and hence most implementations give greatly improved performance over traditional software rendering. Currently, OpenGL is used for ...
-1
votes
0answers
26 views
steamy window effect
I am looking for implementing steamy glass effect. If anybody has any resources, please kindly link it. I want to implement it on android, but any thing can help.
thanks,
2
votes
1answer
46 views
deferred rendering and point light radius
I use a common attenuation equation for point lights:
attenuation = 1 / kc + kl * d + kq * d^2.
I use deferred rendering so I need to know a light radius. An example light has following intensity: ...
-2
votes
0answers
75 views
Qt 5.0 - Is it a viable option for 3D game / application development
I recently noticed that there is a new release of Qt. I don’t have any personal experience developing games or applications with it, but I’m looking for an API or framework that will simplify ...
-1
votes
0answers
20 views
mini project on coconut shuffle game
am trying to do my mini project for my undergraduate degree. Basically am trying to do a simple game as am restricted to code purely in OpenGL, so am planing to make some 3d coconuts from blender. My ...
1
vote
0answers
41 views
How do you display non-cutout transparent 2D textures with a depth buffer? (OpenGL)
I've been able to get my 2D renderer to display transparent cutout textures by testing the alpha of a fragment and discarding if it is less than 1 (or any fraction really). The problem is I want to ...
-1
votes
0answers
68 views
Creating games with either Haskell or OCaml [closed]
I would really like to use a functional language to create games in the future. I decided to either learn Haskell or OCaml for that. However, I am not exactly sure which of these two is better suited ...
2
votes
3answers
239 views
Voxel engine artifacts
There are white little dots between blocks at random places, mainly at very near blocks. They disappear when I move the mouse and change the view direction.
I use Vertex Arrays with ...
-3
votes
0answers
51 views
beginner in opengl. tron problem [closed]
i'm trying to make a tron game using opengl c++ for a school proj. but i'm having trouble in making the light or wall that appears at the end of the bike as it moves. As of now i only have two bikes ...
0
votes
2answers
46 views
Translate camera position toward camera orientation
I have a camera position (Vec3) and camera horizontal/vertical angle. Now I want to translate my camera position toward the current camera orientation - what is the best way to do that? I am sure it's ...
1
vote
1answer
78 views
OpenGL VBO Additional Attributes
If I have a buffer with my vertices, normals and texture coordinates, and I use glDrawArrays to draw the VBO to the screen, how can I send attributes per vertex that I placed in an array to the shader ...
2
votes
0answers
21 views
Rotate an image and get back to its original position - opengles glkit
I need to rotate an image in opengles GLkit and get it back to its original position in GLkit.
rotation += 5;
_modelViewMatrix = GLKMatrix4Rotate( _modelViewMatrix, GLKMathDegreesToRadians(5), 1, 0, ...
-1
votes
0answers
17 views
Load a two texture for a single image at a regular interval of time - GLkit openglES
I used the below code to load the texture on a object.
- (void)ldText:(UIImage *)Image
{
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
...
3
votes
2answers
142 views
Do opengl games tend to use multiple shaders? [duplicate]
For any given object that you want to render, there may be a whole bunch of things that need to be considered for rendering (Material, Texture, Lighting, Blending etc). But, you may also have some ...
2
votes
1answer
44 views
LWJGL Eclipse Resource Deployment
I'm still experimenting with some OpenGL in LWJGL, and as I get to know more and more about OpenGL, I start to do more complicated things like multi texturing, shadowmapping and more. Now, right now ...
-2
votes
0answers
46 views
Scene Graph implementation in C [closed]
I want to make a simple 2D game engine in pure C (I meant no C++ and stuff) and OpenGL/SDL libs. My question is about, that why I need scenegraph implementation (or need not) and how can I achieve ...
3
votes
1answer
232 views
Should I learn OpenGL 1.5? [closed]
I want to start learning OpenGL with a book I have since a long time ago (Beginning openGL Game Programming) and it uses OpenGL 1.5 so my question is, should I learn OpenGL using this book and then ...
-1
votes
2answers
70 views
lemniscate of Bernoulli [closed]
I am trying to learn and teach myself openGL and I wanted to draw a figure 8 in a 3D setting but I'm having a problem. Please forgive me, I am very new at this but I'll attempt to explain what I have ...
0
votes
0answers
86 views
How to do collision detection in 3D using bounding boxes?
I am using c++ in visual studio 2010 with opengl. I am trying to make a programme that has 2 boxes that are able to be stacked on top of each other but I am having some trouble with the collision ...
0
votes
1answer
51 views
Setting Up GLEW with VS2012 [closed]
I'm trying to set up GLEW with Visual Studio 2012 and I'm having some trouble with it.
I downloaded the GLEW binary from http://glew.sourceforge.net/ and moved the contents from it's lib folder to ...
1
vote
1answer
57 views
OpenGL ES screen to world coordinate
I am currently attempting to convert my screen coordinates to world coordinates, to be able to interact with objects. I am using glm and unProject to try and achieve this, so far this is my code:
...
3
votes
1answer
109 views
When do I use VBO?
My drawing code currently draws by calling glVertex3f(x, y, z) for each of my object's vertexes, and I've been suggested to use VBO as it'd enhance the performance of my drawing code.
After checking ...
0
votes
0answers
61 views
Loading and displaying a BMP file C++/Opengl
When I run the following code, it just shows a plain color, like Pink or Orange. The picture which I'm trying to load is a 24-bit BMP which should work 100%. (Size 256x256)
BmpLoader.h
#ifndef ...
0
votes
1answer
69 views
Exit() redefinition while using Opengl
I am using Visual C++ 2010 and I get the following errors:
1>d:\visual c++\vc\include\stdlib.h(353): error C2381: 'exit' : redefinition; __declspec(noreturn) differs
...
0
votes
1answer
102 views
OpenGL accepted image formats
I am just starting out with OpenGL, so I need a little help understanding how textures are loaded. When I look at the OpenGL manual, it gives a list of accepted image formats, e.g.
...
3
votes
1answer
87 views
Cut a translucent square in a texture
How to remove (cut-out) a transparent rectangle in a Texture, so that the hole will be translucent.
On Android I would use the Xfermodes approach:
...
0
votes
1answer
41 views
Ways to “invert Z-axis” in shader-based core-profile OpenGL?
In my hobbyist shader-based (non-FFP) GL (3.2+ core) "engine", everything in world-space and model-space is by design "left-handed" (and to stay that way), so X-axis goes from -1 ("left") to 1 ...
8
votes
4answers
314 views
OpenGL: why do I have to set a normal with glNormal?
I'm learning some basics of OpenGL but I'm wondering why there is a call glNormal to set the normal of vertices.
If I create a simple triangle like this:
glBegin(GL_TRIANGLES);
...
2
votes
0answers
54 views
How do I improve terrain rendering batch counts using DirectX?
We have determined that our terrain rendering system needs some work to minimize the number of batches being transferred to the GPU in order to improve performance. I'm looking for suggestions on how ...
0
votes
0answers
38 views
Radar approach to Frustum Culling… fail at first simple test. What's the problem?
Trying to get at least the very simple part 1 of the Lighthouse3D Radar Frustum Culling tutorial to work... and am absolutely baffled that I can't even make that part work in my renderer.
So the ...
-3
votes
0answers
59 views
openGL a game design way for osx [closed]
My target is a game, which will be working on MacOS and iOS later as well.
A first way are using GLUT inside main loop:
int main ( int argc, char * argv [] )
{
// ...
1
vote
1answer
101 views
Obj Blender Export Recommendation for OpenGL C++
I have been modelling some objects inside blender, like a light bulb.
I finished the light bulb, and I got a question at the time of export it.
I want to export the light bulb in the wavefront format ...
3
votes
2answers
68 views
Calculating transform of arrow model pointing at some point in 3D space
I'm working on a 3D flight game and I'd like to implement a simple "navigation arrow" pointing at the next waypoint in world which the player has to fly to.
I have position of both airplane (=camera) ...
8
votes
2answers
223 views
Are there still advantages to using gl_quads?
OK, I understand that gl_quads are deprecated, and thus we're not 'supposed' to use them anymore. I also understand that a modern PC when running a game using gl_quads is actually drawing two ...
4
votes
2answers
159 views
Defining an OpenGL unit
I have read that you can define your OpenGL unit by using glViewport.
As far as I understood if you use something like glViewport(0,0,600,600) then 1 OpenGL unit = 600 pixels. Now my problem is what ...
0
votes
1answer
116 views
Stars coming out of screen [closed]
I am pretty new to Graphics Programming. I am currently using OpenGL.
I have got some hands-on in last few days. I have knowledge of Texture Mapping, Cubemap, Multitexturing. But somehow I am not able ...
2
votes
0answers
76 views
Where and how to smooth a voxel-based terrain surface?
I want to smooth the blocky terrain in a Minecraft-like world. The smoothing affects visual appearance and physics but not the logic of placing and picking blocks. I have my mathematical formula to ...
0
votes
0answers
40 views
Rendering OpenGL to a specific scale [closed]
So I'm making a 2D game that I want to be able to change the window size. I plan on having the game being 4:3 and border any unused edges. Now the problem comes in that I need to take the current ...
0
votes
1answer
36 views
Problems projecting a point to screen
In my game I'm trying to implement an equivalent of gluProject, my problem is that the code only seems to work if the camera has no rotation. Even turning left and right affects the vertical position ...
0
votes
1answer
61 views
Using compressed(ETC1) textures in LibGDX
I use standard android tool for compressing PNG texture and archiving it with gzip:
/android-sdks/tools/etc1tool texture.png --encodeNoHeader
gzip texture.pkm
Then I try to load it:
FileHandle ...
3
votes
1answer
227 views
creating a UI menu in c++
Im currently working on a 2D Game where the users can interact with specific nodes and are able to edit certain bits of information and I also plan for the users to be able to click buttons to set ...
1
vote
0answers
67 views
HDR / Tone Mapping - choosing parameters
I implement HDR in my graphics engine (deferred rendering) based on this document: link I save a luminance in a texture (RGBA16F) this way:
const float delta = 1.0;
vec3 color = texture(texture0, ...
0
votes
0answers
59 views
Program created with glCreateProgram is not identified as a valid OpenGL program outside [closed]
I've starting programming in OpenGL and I decided to create my own class to manage shader objects.
In the class constructor I create a new program calling glCreateProgram, and I'm able to print its ...
1
vote
1answer
40 views
Finding Surface of Inner Voulme mesh
I am working on the generation of Hexhedral mesh generation using octree based discretization. what I want I have volume mesh (Hexhedrals), Now using isomorphism I need project the outter most surface ...
0
votes
0answers
25 views
iOS billboard rendering performance
What is the fastest way to render semi-transparent billboards (for a particle system) on iOS? I'm currently using GLES1, but if required for performance I can switch to GLES2.
Does sorting the quads ...
3
votes
2answers
211 views
C++/OpenGL Game - How to Make it Compatible with Screen Recorders?
I'm developing a 3D tower defense-like game in C++/OpenGL on Windows.
The problem I'm having isn't about the game itself (the game runs fine), but it's about using screen recording software to record ...
1
vote
0answers
62 views
Sketchy results from ray-plane intersection code
I've set up a demo with simple first-person controls using C++ and OpenGL, and it seems to work reasonably well. My goal is this: when the player looks at a plane and clicks the left mouse button, ...
2
votes
2answers
234 views
Does my 2D OpenGL renderer need optimized?
I've started a game engine for learning purposes. I have successfully gotten an opengl renderer working and I can draw textures of varying sizes to the screen. The way I have done this is by creating ...
2
votes
1answer
100 views
glsl 150 struct in uniform buffer object
Can I do this in opengl 3.2 / glsl 150?
glsl shader:
struct LightSource {
vec4 ambient;
vec4 diffuse;
vec4 specular;
vec4 position;
vec4 direction;
};
...
layout(std140) uniform ...
0
votes
0answers
65 views
Using OpenGL3.3 and GLSL, texturing is not working [closed]
I am having troubles getting texturing working in my OpenTK/OpenGL 3.3 code. I am sure it is something simple that I am missing, but I just can't seem to get a texture on the square I am rendering. ...
5
votes
1answer
231 views
Is a 10 meg 2048x2048 bitmap too big a size texture to use in an OpenGL game?
This is a speed question, I have a texture, which is 2048 per 2048, the texture is designed to run in big resolutions (1920x1080 for example).
The problem is, that the texture have a size of 10MB in ...