I wish to add the ability to zoom-in, zoom-out, rotate and move the view in a top-down view over a collection of points and lines in a large 2d map. I split the map into a grid so I only need to render the points that are 'near' the camera. My question is, how do I render a point A(Xp,Yp) assuming the following details:
Offset of the camera pov from the origin of the map is:
Xc, Yc
Meaning the camera center is positioned on top of that point. If there's a point in Xc, Yc it is positioned in the center of the screen.
The rotation angle is:
alpha
The scale is:
S
Read my answer first. I am thinking there is more optimized solution, thanks.
My question is how to include the following improvement:
I read in the AS3 Bible book that: In regards to ShaderInput, You can use these methods to coerce Pixel Bender to crunch huge sets of data masquerading as images, without doing too much work on the ActionScript side to make them look like images.
Meaning if I am performing the same linear function on a lot of items, I can do it all at once if I use Shaders correctly and save processing time.
Does anyone know how that is accomplished?
Here is a sample of what I mean: