News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

are there any rotate udg routines out there that rotate say 8 degrees at a time?

Started by the777, Yesterday at 08:14

Previous topic - Next topic

XeNoMoRPH and 1 Guest are viewing this topic.

the777

i want one that does it in 8 degrees or so, clockwise and anticlockwise

i dont mind if the edges get cut off when it rotates, btw

any ideas?

i know that i would probably have to use shearing to do this, which would be faster

i also know that i would use 256 segments instead of 360 as the cpc deals with this number alot better, so it would be 32 segments at 8 degrees each

and written in basic

lightforce6128

That's an interesting question. Some thoughts from my side:

My first idea would be not to apply this change incrementally, because I'm sure that after the third or fourth iteration there will be nothing left from the original graphics. It would be better to always start from the original graphics and rotate this by 8°, 16°, ...

A second idea is: CPC symbols are defined as bit masks, stored in 8 bytes. To create a rotation, the given 8 bytes need to be combined somehow with AND and SHIFT operators to create the new 8 bytes. But I guess this will be unbelievably slow.

Another idea is to print out the orginal symbol and then use interpolation techniques to create the rotated symbol. This can be read in afterwards and stored as new symbol. But this will also be unbelievably slow.

How many symbols do you want to rotate? And how often should every symbol be rotated?

I think, a real-time rotation can only be achieved with a samll assembler program, e.g. as RSX extension.

Powered by SMFPacks Menu Editor Mod