Home Creators Posts Import Register Favorites Logout

Content

As explained in Twitter, me and my family are confined at home for a week.

Personal issues aside, I'll also use this extra time to advance the 2D renderer at a little faster pace in the next few days.

The next feature on the list is precomputed texel coordinates dithering. This will require the rasterization loop unroll of each line to be performed as I did in the rigid BSP surfaces: a pre-loop variable sized switch statement, followed by fixed-size loops and a post-loop variable sized switch statement that draws the pixels from right to left. This is required to make sure that the precomputed dithering will be correctly aligned on the screen.

Most of the planned 2D rendering features still remaining to be implemented are stuff that were already implemented in the BSP renderer, so it won't be difficult. The next few days will be spent porting those features to the new 2D renderer, to start replacing the old 2D renderer with the new one as soon as possible.

One thing I haven't decided yet is if the support for non power-of-2 GUI images will be dropped. There are two ways to convert them to power-of-2: padding them, or stretching them. Non power-of-2 BSP textures are compiled using the stretching approach because they need to remain tileable, but most GUI textures are displayed without tiling, and recompiling the vanilla GUI textures with stretching would most likely look a little bad. The padding approach would require more work, and would be awkward. I guess I'll decide how to deal with it when implementing support for HD textures in the HUD, which requires several textures to be aligned between two layers.

For now, non power-of-2 GUI textures are still supported, despite this making the 2D rasterizer a little slower.

Comments

No comments found for this post.