Non-Uniform Scaling.
Ok, Zoomer
Non-uniform scaling as been a point of contention for my last few posts. The root of the problem lies in truncating co-ordinates when translating them from decimal values to whole numbers, i.e. when casting from float to int. I intended to edit the code to accommodate for integer scaling only. This will now be an option instead of the default.
A part of the problem was having the brush artifact and the timemap itself work on two separate grids. Grids that scaled relative to their respective sizes. This created disproportion when they couldn't align exactly. The solution: it seems obvious now but, alignment to a global co-ordinate system instead of relative local ones.
Zooming is now generic and functioning as intended. However, it does promote the need to refactor the code. Just a little.
This was such a bug bear for me and I'm so happy to have slain the beast!
Size Matters
I have to admit that restricting the view to a resolution of 1024x768 in this day and age when 1080p has been the norm for, well, a while now seem silly. And, I admit, it's silly! Having to rewrite the default resizing function for the tilemap and brush motif inspired me to get this done. Really, it's something that should have been included and considered more at the start instead of an afterthought.
Get BlastEd - Mega Drive/Genesis Graphics Tool
BlastEd - Mega Drive/Genesis Graphics Tool
Orthographic tile mapping software for the SEGA™ Mega Drive / Genesis
Status | Prototype |
Category | Tool |
Author | David Oberlin |
Tags | Mega Drive, Retro, Sega Genesis, Tilemap, Tileset |
More posts
- Xiyoubu - Mega Drive ModnessJan 11, 2023
- Coming soon...Dec 02, 2022
- Much Ado About NullptrNov 14, 2022
- Engineering, The FlowNov 06, 2022
- Getting On With It With David OberlinOct 14, 2022
- Let Me Start Over, AgainSep 27, 2022
- Slow, but steady.Sep 21, 2022
- Of A Sizeable ImprovementSep 12, 2022
- How to chooseSep 06, 2022
- Scope, scales and sizes.Aug 24, 2022
Leave a comment
Log in with itch.io to leave a comment.