S
S
Sergey2012-02-20 20:13:27
JavaScript
Sergey, 2012-02-20 20:13:27

Image Processing, Bulge Shaping

Actually there is the following task: there is an image. It is necessary to deform the image so that a hemisphere is formed from a square. You will have to implement this on JS + Canvas, so ... I doubt that there is a ready-made solution (although what the hell is not joking) so at least tell me the algorithm for implementing this?

I can't use WebGL... Canvas maximum.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stdit, 2012-02-20
Protko @Fesor

I wanted to explain the algorithm on my fingers, but I came to the conclusion that it is easier to write an example: jsfiddle.net/CDKXm/
Look, if something is not clear - in a personal. The algorithm is clumsy, without anti-aliasing and optimizations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question