Image rotation via shearing
Hantverk'n » Devlog
I'm planning on implementing rotating things in game made of voxels, so this is why I'm experimenting with image rotation via shearing.
I wrote a simple program to test image rotation via shearing. (See previous devlog post). Some insights gained:
- For 90 degree rotation, a temporary image must be used that is twice the width and height of the original image to not get cut (magenta) by applied shearing
- If the image is rotated for a given amount of degrees, anything beyond 90 degrees causes image to become "chewed up"
- Multiple of 90 degree rotation will be faster by a transposing axes transform
- Combining multiple of 90 degree rotation via transposing axes transform and then shearing by remainder (less than 90 degrees) will result in correct rotations up to 360 degree
Here's an animated gif showing my experiment (0 to 180 degrees of shear only rotations):
Hantverk'n
Status | In development |
Author | Teknologicus |
Genre | Adventure |
Tags | Exploration, Open World, Voxel |
More posts
- Overhaul of buffer use in voxel engine8 days ago
- Tetahexacontree 4x4x4 Occupancy Bitmasks Lookup Table20 days ago
- Voxel-level ambient occlusion optimization bits generation via compute shader60 days ago
- Rotation without rotating67 days ago
- Voxel volume mipmaps generation via compute shader67 days ago
- Dynamic global illumination methods80 days ago
- More ambient occlusions optimizationsAug 30, 2024
- Procedurally generated grooved, cracked brick blocksAug 27, 2024
- Procedurally generated cobblestone blocks with surface indentationsAug 27, 2024
Comments
Log in with itch.io to leave a comment.
Dang, Looks awesome.