Spellcaster Studios

Make it happen…

Monthly Archives: January 2015

So much lost time…

So today I started implementing SSAO, and it was demoralizing… I was looking into my old SSAO shaders, and I decided to implement the simple version before moving towards more complex versions, and I hit the first hurdle… When I started work on my deferred renderer (which was going to be used by the SSAO […]

Overrides

Added an override system for most graphics operations… Was a bit of work, time-wise, but easy stuff! Now I can get a screen with just the actual normals: or depth (exaggerated, so we can actually notice the difference): The lines are due to the fact that the render target is just a normal 8-bit render […]

Render to texture

Good news, everyone! Got render to texture working (on Direct3D only for now)… Bad news… Above we should only see the normals of the scene (world space), but the player character is transparent… The reason is that it gets rendered with alpha blending, since I don’t have a global way to shut it down… Need […]

Finished OpenGL shaders

Just finished porting the per-pixel shaders to OpenGL, as well as the normal+depth shader: It was actually easier than to make the Direct3D shaders, since I already knew where the traps were! Next step is to get render to texture working on D3D and OpenGL and see if I can use the results of a […]

Finished the per-pixel shaders

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 […]

Per-pixel lighting

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 […]

Issue with bitfields

On my rendering system, I’m using something I call a “render environment” to compile the right version of the shader. This has data like how many lights are active, what types, what components are enabled on the mesh (normal, how many texture coordinates), what render pass are we doing, etc. This is stored on a […]