Tagged Questions
2
votes
1answer
277 views
OpenGL Fast-Object Instancing Error
I have some code that loops through a set of objects and renders instances of those objects. The list of objects that needs to be rendered is stored as a std::map>, where an object of class ...
0
votes
1answer
187 views
Drawing the same scene with perspective then orthographic projections
I have a scene that I'm rendering first with a perspective matrix. I then want to rerender it in a different viewport using an orthographic matrix for a top-down 2D view of the scene. I think I may be ...
2
votes
0answers
65 views
How do I calculate the points of a brush from a Source engine VMF?
I'm trying to render the brushes from a Source engine .vmf file in C++, using OpenGL.
The .vmf stores solid brushes as a series of planes which I would like to use to calculate the points for each ...
2
votes
0answers
282 views
AlphaToCoverage + Alpha Blending = Artifacts
I'm experiencing a strange problem using OpenGL SampleAlphaToCoverage mode. There are rendering artifacts when using alpha-blending on pixels that have been rendered using alpha-to-coverage - and I ...
1
vote
0answers
69 views
Rendering text with stb_font results in glitches
I'm trying to render text with OpenGL and an "inline"-font taken from the stb_fonts
The relevant code for initializing the font & rendering:
LabelFactory::LabelFactory() {
static unsigned ...
0
votes
0answers
84 views
(SOLVED) Problems Rendering Text in OpenGL Using FreeType
I've been following both the FreeType2 tutorial and the WikiBooks tuorial, trying to combine things from them both in order to load and render fonts using the FreeType library. I used the font loading ...
0
votes
0answers
214 views
Android OpenGL ES 2.0 gameloop problems
I implemented a gameloop found here: http://www.koonsolo.com/news/dewitters-gameloop/ into my OpenGL ES 2.0 Android game. The tutorial was written with the canvas API in mind, not OpenGL so I made a ...
0
votes
0answers
248 views
Optimal OpenGL 2D Sprite Batching (Best Practice)
I am working on simple 2D engine using OpenGL (3.3+) for rendering and was wondering what the optimal method of sprite batching would be. I plan to put all sprites into one (or fewer) texture atlases. ...