Tag Archives: shaders
So working on two things at the same time: getting a Linux Mint install to work properly, and finding a good way to debug/profile compute shaders… Decided to try Linux Mint because I ran into a problem with some updates on Ubuntu 14.04… It’s not the first time this happens. I install something on Ubuntu […]
After getting compute shaders working properly yesterday, decided to check some profiling… After some moving code around, got some rudimentary profiling working. In terms of CPU flow, running the compute shader to sum 33 million elements took about 0.2 ms (against 37ms of CPU time)… This looks great, in theory… But the reality is way […]
Started today with compute shaders… The concepts behind them are a bit weird at first, especially the relation between threads and groups, read/write orders, barriers, etc… Anyway, I made some headway and I have a naïve compute shader that sums all elements of an array… Impressive, I know, but it’s a start… Now I can […]
This was a tough one to track… Ended up using GL Monitor to list all the calls and looking at them in detail, trying to figure out what was happening there… The problem was the redundant texture switch system. To minimize texture changes, before I set a texture I see if that texture is already […]
Today I was trying to finalize the Mac version so I could send it to the UI artist, and I found a really weird bug… So, sometimes the ship landing looks like this: So, first guess: shader… But this only happens on the Mac build, it works fine on the Linux and Windows build… Still, […]
Today I started adding the rendering effects to the editor, since I’ll need them to build some stuff for the teaser trailer I’m working on… First I had to get it working again properly (a lot of changes since I last used it), but that didn’t take long… Then, time to add the ambient occlusion […]
As the title indicates, today I finished up the other shaders in per-pixel mode… Still need to port them over to OpenGL (I’ve done them on Direct3D because I still don’t trust the OpenGL renderer that much), but that should be a couple of hours… Now listening to “Sirenian Shores” by “Sirenia” Link of the […]
First draft of the per-pixel lighting on “Gateway”… It’s a bit hard to see the effect, because the vertex density is quite high normally. Per vertex: Per pixel: You can notice it especially on the edge of light behind the player… Still missing the per-pixel lighting on the other shaders of the game, but it […]
As I mentioned yesterday, because of the way I’m doing the alpha-testing, if I want to place the depth on the alpha channel of the render target that I’m using for the screenspace effects, I need a way to keep the alpha testing, but don’t use the end result of the rendering for it… If […]
Time has been a bit tight lately (just back from holidays, so work has piled up), but today, between house chores and resting, I managed to add rendering of the normals: Here you can see the normals mapped to colors… For example, the lime green corresponds to a normal vector of (0,1,0). Now I want […]