Tagged Questions
0
votes
1answer
55 views
Image loaded from TGA texture isn't displayed correctly
I have a TGA texture containing this image:
The texture is 256x256.
So I'm trying to load it and map it to a cube:
#import <OpenGL/OpenGL.h>
#import <GLUT/GLUT.h>
#import ...
0
votes
0answers
106 views
Is there an alternative to SDL 1.3 for a C++ game that should run on iOS and Android?
I've used SDL for many desktop games, always as the cross-platform glue for:
Creating a window
Processing input
Rendering images
Rendering fonts
Playing sounds/music
It has never disappointed me ...
1
vote
2answers
2k views
Creating an OpenGL FPS camera: I have the position and orientation vectors, now what?
I have been struggling to create a first person camera in OpenGL ES 2.0 without using gluLookAt(). I grab the camera's orientation vectors (the way it's looking) from the current modelview matrix, and ...
0
votes
1answer
246 views
OpenGL 2.1+ Render with data returned form assimp library
I have just readed this tutorial about load a 3D model file: http://www.lighthouse3d.com/cg-topics/code-samples/importing-3d-models-with-assimp/. Its render routine uses a recursive_render function to ...
-1
votes
1answer
218 views
How to fix OpenGL Co-ordinate System in SFML?
My OpenGL setup is somehow configured to work like so:
(-1, 1) (0, 1) (1, 1)
(-1, 0) (0, 0) (1, 0)
(-1, -1) (0, -1) (1, -1)
How do I configure it so that it works like so:
(0, 0) (SW/2, 0) (SW, 0)
...
2
votes
1answer
206 views
Fog with Blend in OpenGL
I want to add fog in my scene which contain transparent textures made by Blend ,
when i enable the fog the transparent textures appear white From a distance but when i disable it the textures ...
-2
votes
1answer
105 views
Adding VBO to current project [closed]
Learning some GLUT, I implemented my own set of geometric objects, each on its own procedure, doing glPushMatrix() and glPopMatrix() in between. This allows for reuse on other demos.
Yesterday, I ...
1
vote
1answer
409 views
Translating local to global coordinates in ARToolkit / OpenGL
Ok, so I've tried reading over the other questions and something's just not clicking for me. I am working on an augmented reality application using ARToolkit, however it should just be straight ...
0
votes
1answer
398 views
glBlendFunc transparency in cocos2d?
GL_ONE, GL_ONE
This makes the flamingoes transparent on:
http://www.andersriggelsen.dk/glblendfunc.php
but not in cocos2d using:
sprite.blendFunc = (ccBlendFunc){GL_ONE, GL_ONE}
How can I achieve ...
1
vote
2answers
422 views
Trying to implement Render to Texture
I'm having trouble implementing render to texture with OpenGL 3.
My issue is that after rendering to the frame buffer, it appears the rendered object becomes deformed, which may imply a bad ...
-5
votes
2answers
394 views
Is it possible to use OpenGL purely with C instead of C++?
Is it possible to use OpenGL purely with C instead of C++? I am wanting to make sure there won't be any problems with my using C and not C++. OpenGL does not depend on any C++ libraries right?
0
votes
2answers
398 views
CubeRealm OpenGL rotation problems, need help. :\
I'm totally new to OpenGL and I'm working on a Sandbox game called CubeRealm. My problem you see is rotation. I've got it in my head that to rotate the 'camera' I just rotate all the scene by the ...
1
vote
3answers
917 views
Walkin on terrain - Opengl
i wanna walk to terrain...
first i created the terrain
void desenha_terreno(float px, float pz){
for (int z = 0; z < iwidth-1; z++)
{
glBegin(GL_TRIANGLE_STRIP);
for (int x = 0; x < ...
1
vote
3answers
296 views
How to find the bottleneck of the graphical pipeline
I've been wondering about this issue for a while. How to find the bottleneck of the graphical pipeline. Recently I've been using a program to draw massive amount of polygons in a simple scene with ...
3
votes
2answers
2k views
How do games make fire and smoke effects?
I was wondering around, searching internet about particle system and fire effects but I haven't found any good answers. On some games I have realized that some sort of movie is being shown as the ...