justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Can you briefly explain how knowledge of trigonometry helped you with AVS effects, perhaps with 1 example?
Asked by Will (24.234.85.x) on June 6 2014, 9:44pm
Reply on June 6 2014, 10:15pm (edited at June 6 2014, 10:17pm):
    OK, one thing you can make is where you generate a new frame's image based on the previous frame's image, and you often would make a lookup table for each destination pixel, with the value of each entry in the table being the index (y*w + x) of the source pixel.

    In this instance, if you wish to say, rotate the image around its center, you could convert from x,y coordinates to polar (by using atan2() for the angle and pythagorean for radius), then modify, then convert back to x,y using sin() and cos(). I'll leave the specifics of the math as an exercise for you.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2024 Justin Frankel. | RSS