News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

2d image rotation

Started by daydreamer, December 01, 2022, 10:47:16 PM

Previous topic - Next topic

daydreamer

Gonna start 2d rotation image
Might continue to uncompressed movie rotations

Anyone already done this?
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

avcaballero

#1

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

First easy with rotate objects,lines
If i am restricted by 1024*768 ,showing 1024*1024 or bigger
C Break out of loop?much branch misprediction ?
So i want to try
Pixelshader inverse coding
So loop only 1024*768
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

I am trying to make a 8:24 fixed point solution on x, y together is used as pointer to where bmp2 new pixel appears
Kinda scanning from middle of bitmap bmp1 outwards
Got problem with suddenly result switch to negative- values, signbit probably doesnt work correctly when shift 8:24 fixed point using shift 24
Deltax =int (cos (alpha) *2^24) and deltay=int (sin (alpha)*2^24)

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

I take a break from this
One idea want to try is rotate rle encoded bitmap = mean of all lengths * faster rotation

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding