Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   MilkDrop Presets (http://forums.winamp.com/forumdisplay.php?f=84)
-   -   centres of rotation (http://forums.winamp.com/showthread.php?t=94368)

Krash 13th July 2002 07:03

centres of rotation
 
I'm just playing around with the centres of rotation - working on having them move around - this one was simple to make, more complex is proving more difficult.

- Krash

Krash 13th July 2002 07:11

1 Attachment(s)
forgot the zip

- Krash

Krash 13th July 2002 08:21

1 Attachment(s)
Indecisive Netting moves the rotation mesh around, while Devil Is In The Details adjusts the resolution of the rotation mesh (as well as the corner that the mesh "zooms" from)

I finally invented a term for what we're doing here - "rotation mesh" sounds so much nicer than "multiple centres of rotation"

- Krash

Rovastar 13th July 2002 14:15

Nice Krash but how do we get the rotation of teh mesh moving around within the same 'block' Indecisive Netting just moves the offset of the amount of points of rotation and the center of rotaion still remains in the top left corner.

View the attachment to explain more.

I want the centre of rotaion in the middle of the screen (and then move from there). I have played with a bit of stuff but cannot get what I want.

I know this must be possible but don't know how?

Anyone?

Rovastar 13th July 2002 14:19

1 Attachment(s)
.

Rovastar 13th July 2002 14:46

No worries got it.:)

code:

per_pixel_1=q7 =4;
per_pixel_2=q8 =4;
per_pixel_3=cx = (0&((x)*q7-q1))*(1/q7)+0.1*q1;
per_pixel_4=cy = (0&((y)*q8-q2))*(1/q8)+0.1*q2;



Where q1 & q2 is the offset within the 'block'

Krash 14th July 2002 04:10

Ahh - I see what you're doing - the different areas of rotation are constant, but each area rotates around and arbitrary point within itself. Clever.

- Krash

ryan 14th July 2002 07:34

What is it with you guys and forgetting zips.

Illusion 14th July 2002 12:50

You just did the same thing in your last post mate... :D


All times are GMT. The time now is 22:34.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.