Category Archives: Technology
Happy New Year’s Eve! Not much time today to work on the game, just made a couple of shaders and fixed some minor things… I’m almost calling the OpenGL renderer done (although it still has some work with optimization, since it’s quite slower than the DirectX one). I’m having some trouble with the last shader, […]
I can smell it already! It’s actually cool (after all the pain) to have a game running on two separate renderers and trying to spot the differences… There’s not much work remaining to be done on the OpenGL renderer, besides testing… I’m finally seeing the end of the road on this one, so much that […]
A couple more bugs down, a few dozens to go! Today was rather productive… Fixed the sampling system (didn’t notice there was a sampler object in OpenGL that kind of makes it more similar to DirectX in terms of sampling properties), fixed the 2d render accuracy (needed to offset the coordinates a bit to make […]
One more small step! This one was hard… Some geometry wasn’t being drawn, and I thought it was something to do with the bounding box (would be silly), but symptoms were similar to that sort of issues… It ended up because I didn’t know that glVertexAttribPointer has to be called after the buffer in question […]
And back to normal programming… Not much, but some! Got some more stuff working on the OpenGL renderer… This time, I found out that I can’t set vertex/pixel constants before I actually set the program! This is the current status, getting closer to an actual working renderer! There’s a screwup somewhere on the lightning (obviously), […]
Finally, got the first decent screenshot for the OpenGL renderer: The biggest problems was I was using glBindAttribLocation in the wrong place, after the shader linkage was done… No error was returned, but the bind wasn’t being made… I just don’t know how the UVs were being displayed properly… The 3d part is still a […]
Well, I promised no more screenshots of just my development environment… Sorry… This is the first run of the OpenGL port… All code is in, but (obviously enough) it’s not working properly… If I had Pix, I could just go in and see what variable is badly set, or what’s the state of the vertex […]
Almost, but not quite there… Basically, only one thing remaining: finding out what are the vertex/pixel constants required for the shader in question… I should be able to iterate them with glGetProgramiv(program_id,GL_ACTIVE_UNIFORMS…), but this always returns 1, which can’t be… After I solve this one, I’m golden! Then it’s debug time to know why the […]
I swear I’m almost done with the development environment screenshots! Today I did a lot of progress on the OpenGL porting, hopefully tomorrow I’ll be able to finally display something on the screen beyond the yellow screen I have currently! There’s a lot of stuff that OpenGL works differently from DirectX (most of it is […]
Christmas season, so not much time to work on the game (not even browsing the net, if you’ve noticed the lack of link of the day)! So…. New texture class (to abstract the OpenGL texture, which is a bit more important than in the case of DirectX). The code became prettier… That is all… Now […]