Tagged Questions
0
votes
1answer
18 views
pygame pyopengl resizing problem (under linux) [closed]
In test setup, i use no matrix transformations (screen coord space, -1.0 to 1.0)
The shader is simply gl_Position = position.
After resize i get correctly scaled render, but viewport is cropped into ...
-1
votes
1answer
109 views
OpenGL/SDL2 window stopped rendering [closed]
I have been working on a game engine for a couple of days now and I've had it rendering a colourful cube and playing sounds in OGG format, but, after refactoring my code-base to make things easier; it ...
-1
votes
1answer
86 views
SDL Access Violation
I've created a SDL game project and this window popped up while trying to compile:
First-chance exception at 0x00000000 in SDL_Game.exe: 0xC0000005:
Access violation executing location 0x00000000.
...
0
votes
1answer
101 views
SDL_Image and typical SDL BMP loading fails completely
been messing with OpenGL and SDL for a pair of weeks.
The thing is quite weird. I have been loading a texture from a BMP and using a really easy shader to make it work, and so far it has worked very ...
-2
votes
1answer
127 views
SDL_BlitSurface does not works
I have an issue with the SDL_BlitSurface...
When I blit (SDL_BlitSurface) in a transparent (background) surface, it does not blits, actually I tried all the existants functions ...
-4
votes
1answer
220 views
Game in c++ using opengl and sdl [closed]
My problem is next:
For my school project for the last year of study i have decided to make a game. My game is played in labyrinth, game for four players. I decided i am going to make it using sdl ...
-2
votes
2answers
474 views
making a game in 2D(C++). SDL or openGL? Or, why not both? [closed]
I'm trying to make a platform game in 2D and I want to know what tool should I use to make it happen. I understand that I can use SDL with openGL. However, if I want to make a solid 2D platform game, ...
0
votes
1answer
319 views
Does SFML render it's graphics using OpenGL internally?
By that, I mean that SFML has an abstraction for OpenGL? Sort of like SDL's blit functions, but using OpenGL internally?
"Yes SFML uses OpenGL for all the graphical stuff. "
Received this comment ...
1
vote
3answers
1k views
How to draw 2D images using OpenGL, in SDL?
After everything, I managed to find a simple piece of code that shows how to draw a 2D image with openGL:
#include "SDL/SDL.h"
#include "SDL/SDL_opengl.h"
#include "SDL/SDL_image.h"
...
0
votes
2answers
428 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
0answers
246 views
How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
I am making a simple game engine for a simple RTS game and would like to be able to pick a cube and move it around with the mouse coordinates. The problem is that my camera is rotated 60 degrees just ...
2
votes
1answer
389 views
Bad FPS for smaller size (OpenGL ES with SDL)
If you saw my other question, well, there is still a little problem:
Click here to watch on youtube
Basically, the frame rate is very bad on the actual device, where for some reason the animation is ...
1
vote
3answers
168 views
SDL_image & OpenGL Problem
i've been following tutorials online to load textures using SDL and display them on a opengl quad. but ive been getting weird results that no one else on the internet seems to be getting...
so when i ...
7
votes
1answer
1k views
SDL2 with OpenGL — weird results, what's wrong?
I'm porting an app to iOS, and therefore need to upgrade it to SDL2 from SDL1.2 (so far I'm testing it as an on OS X desktop app only). However, when running the code with SDL2, I'm getting weird ...
10
votes
2answers
571 views
What should I worry about when changing OpenGL origin to upper left of screen?
For self education, I'm writing a 2D platformer engine in C++ using SDL / OpenGL. I initially began with pure SDL using the tutorials on sdltutorials.com and lazyfoo.net, but I'm now using SDL to ...
2
votes
2answers
285 views
Can't get simple OpenGL texture working using SDL2 and FreeImage3
I created a simple OpenGL program that display a quad with texture, but it doesn't seem to be working as it only displays a white quad. What could possibly be wrong? I checked everything I could think ...
2
votes
1answer
1k views
Does Macbook Air 2012 (Intel HD4000) support GLSL 1.3+?
I'm using SDL2 and GLEW on OSX Mountain Lion (2012 Macbook Air) to create an OpenGL context. Querying for the GLSL version, it reports GLSL version 1.2. I'm curious if this is a limitation of the ...
0
votes
3answers
238 views
Dynamic Sprite Scaling in SDL?
I was wondering if I could get a player sprite effect similar to the one in this video using SDL (without openGL). If not, does anyone know how I might achieve that effect using SDL/OpenGL?
2
votes
3answers
372 views
Should I dedicate a single thread to each player in a split-screen game?
I was thinking about making multiplayer version of a game I am making with SDL and OpenGL. It would be a split-screen game.
Do you think it would be a good idea to have each part of the screen (game ...
-1
votes
2answers
185 views
FreeType2 Crash on FT_Init_FreeType
I'm currently trying to learn how to use the FreeType2 library for drawing fonts with OpenGL. However, when I start the program it immediately crashes with the following error: "(Can't correctly start ...
1
vote
2answers
2k views
SDL for 3D game programming?
I have been studying SDL for a few weeks and I have succeeded in making a 2D Ping-Pong game, but I want to get started in 3D development, and I'd like to know if SDL is capable (and suitable) for 3D ...
2
votes
3answers
853 views
OpenGL & SDL textures… game shuts down
I'm going to create a game in C++ with SDL & openGL but adding textures won't work.
the code is in some different classes.
here's the main file
...
0
votes
1answer
1k views
SDL, SFML, OpenGL, or just move to Java [closed]
I recently started a new project, and I'm wondering if I should change the technology now before it's too late.
I'm using SDL with C++, I have around 6 classes, and the game is going alright, but I ...
2
votes
1answer
526 views
SDL and OpenGL resize window event question
So basically my question is im making a 2D game with openGL and SDL.
So what im trying to do is resize the game and have the openGL quad scale to the size my window becomes.
void CApp::OnResize(int ...
0
votes
1answer
479 views
What's wrong my code to create a GL texture from an SDL_Surface?
I have an issue here with converting an existing SDL_Surface into an OpenGL texture.
The texture gets created, but it's a plain white texture, below is a screenshot of the result:
It seems to me ...
3
votes
1answer
503 views
What are the performance implications of multiple windows with indivdual OpenGL contexts?
For an engine I'm developing I've decided to allow users to set up multiple windows showing differing views of the same "world." This is being developed using OpenGL (hopefully aiming for 3.2 core ...
0
votes
1answer
494 views
Will using OpenGL for rendering with SDL make my 2D game run smoother?
I've been working on a 2D game using SDL. I've noticed the objects look blurry and glitchy when they're moving, so I was thinking about using OpenGL to render the graphics. Would this help? What ...
1
vote
0answers
76 views
reflection not being drawn [closed]
I am using stencil buffer to render reflections in my scene.I am using SDL and opengl and am using the Ubuntu environment.I get a value of 8 when I try to get the buffer size for stencil buffer so it ...
0
votes
0answers
195 views
sdl stencil buffer [closed]
I am trying to use the stencil buffer for rendering reflection and am working with SDL and OpenGL.
When I give the command SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,8),I get a return value of 0 ...
3
votes
1answer
399 views
OpenGL textures loaded with SDL_Image display with no alpha
I am making a game using OpenGL, with SDL_Image employed to load the textures. When drawn on screen, there's no alpha -- in an exact square around the opaque contents of the texture, black is drawn; ...
2
votes
2answers
836 views
Problem With Smooth Animation In C++/SDL/OpenGL
I been working in the animation of a 2D platformer game in C++/SDL/OpenGL, and my team and I reach the point where we need to establish that every animation of the player (Walking, Running, etc..) ...
4
votes
2answers
1k views
Integrate LibRocket With SDL And OpenGL
I been currently involved in a game project and we reach the point we're want to added the GUI for menus and other stuff but the time that we maybe spent developing our own system could cost us a bit ...
2
votes
1answer
629 views
Question About Scrolling A Tilemap In C++/SDL/OpenGL
I been working with scrolling this week but I recently encounter a problem that I don't understand why it's happening.
In a 2D scroller I want to scroll a tilemap pixel per pixel which gives a smooth ...
2
votes
3answers
1k views
Question About An Implementation Of Parallax Scrolling In C++/SDL/OpenGL
I been working in a project with a team for a Software Engineering class and we think that using the parallax scrolling will help our game to look really nice but we are not really sure if our idea ...
-1
votes
1answer
1k views
What is the best engine for my first serious 2d game? [closed]
What game engine/graphics engine should I use for my first indie game?
I'd like to add that this is not my first game, I've previously used Allegro for 2d development (pong, chess and stuff).
I am ...
3
votes
1answer
1k views
Setting up OpenGL 3.3 in SDL 1.2
I've been using SDL 1.2.14 for awhile without using many of the features from newer OpenGL versions. I'm now interested working only with the 3.3 API (not using the deprecated functions, etc... that's ...
2
votes
1answer
872 views
SDL (or OpenGL), HTML5, Gecko and vector movies
I'm writing a platform game which uses SDL for the main graphics code. There is a chance that I may be using OpenGL for the rendering at a later stage, so answers could relate to either.
I'm needing ...
5
votes
4answers
7k views
Wavefront *.obj loader in C++
I'm creating a game using OpenGL (via SDL) and C++ (via Visual Studios 2010 Professional). During the game, I will be using 3D character animation. I'd like to use wavefront *.obj files for all the 3D ...
2
votes
2answers
191 views
Working towards going 3D
I am a beginner-intermediate C++/Java programmer and my long term goal is to be a game programmer.
I have decided to start off with 2D and work my way towards 3D.
I would like to use SDL to start ...
3
votes
7answers
3k views
OpenGL Insanely Slow
I'm learning C++, and I'm writing my first OpenGL program. Unfortunately, it seems to be defaulting to Software Rendering (CPU uses bounces, GPU uses stays at 1%). I'm using SDL as the Windowing ...
8
votes
1answer
806 views
Getting OpenGL hardware acceleration with SDL on Linux
I'm trying to use SDL + OpenGL but I don't believe hardware acceleration is working because the framerate for around 18000 polys is about 24fps on a quad core machine but is a hopeless 1-2fps on an ...
1
vote
5answers
901 views
OpenGL Performance Questions
This subject, as with any optimisation problem, gets hit on a lot, but I just couldn't find what I (think) I want.
A lot of tutorials, and even SO questions have similar tips; generally covering:
...
8
votes
2answers
605 views
How to deal with OpenGL and Fullscreen on OS X
I do most of my development on OS X and for my current game project this is my target environment. However when I play games I play on Windows. As a windows gamer I am used to Alt+Tab switching from ...
5
votes
4answers
2k views
2D Platformer Collision Handling
I am trying to create a 2D platformer (Mario-type) game and I am some having some issues with handling collisions properly. I am writing this game in C++, using SDL for input, image loading, font ...
7
votes
3answers
632 views
What is the contents of the buffer *after* a call to glSwapBuffers()?
(SDL_GL_SwapBuffers() in particular)
When you have drawn a scene, and you call swap-buffers, it is routine to then glClear() the scene before drawing anything; if you don't clear, what is the ...
