Open GL ES 1.1 and 2.0
I recently stared messing around with the simple sample app from the WebOS pdk a bit, trying to draw with vertex buffers and so on. I had a few problems, since the sample app used Open GL ES 2 …
Yeah, I really liked minecraft back in the day. For some reason I wanted to make a minecraft inspired shooter, though.
If I recall correctly this idea originated on a Gymnasium (think highschool) orchestra retreat that I (kind of secretly) brought my notebook to. I used every free minute to code those minecraft graphics. What a passionate musician I was!
Highly ambitious project, since I wanted to make it multiplayer and what not, but actually just wanted to focus on OpenGL development, which was super fun. I always liked the idea of working on something that may not go to waste (apart from the learned skills), only rarely a project got finished back in those days.
I recently stared messing around with the simple sample app from the WebOS pdk a bit, trying to draw with vertex buffers and so on. I had a few problems, since the sample app used Open GL ES 2 …
I somehow feel happy about finally being able to render Text ;)
I’m using the Freetype Library and OpenGL. I thought about using SDL TTF, but somehow I ended up deciding on this :)
This post was im …
Okay, here are a few bugs in order of appearance:
It wouldn’t bother if you could only look at the world from above, but… imagine a mountain looking like this! (I also like how you can see the differ …
One of my last posts was about back face culling. This was because of my performance problem while trying to render 130 000 blocks smoothly. I also said I was going to optimize the world data a lit …
I recently found a tutorial on back-face culling. It means telling OpenGL not to draw invisible faces (faces on the back side ;) ) of a mesh, which does speed up the rendering a lot.
I was looking for something …
Okay, here is some code for mouselook with SDL…
struct { int x, y; //In this case: the position where the mouse is held at bool trap; //flag for holding mouse at one place } mouse; void MouseMotion(){ /* Set x and y to the current mouse position */ int x, y; SDL_GetMouseState(&x …
After spending hours trying to figure out why my mouselook function didn’t work with SDL, I finally got a solution.
The problem was that I didn’t use SDL_PumpEvents() before calling SDL_GetMouseState(). But if …
Almost done with rewriting Mineshooter to work with the Simple DirectMedia Layer Library. Still have a few problems with the mouselook, but I should be able to work out a solution very soon.
SDL is quite sim …