Implement two algorithms for mapping a texture:
on a plane
on a sphere
Test the algorithms by mapping an actual image on both the plane and the sphere
2 Compute a normal map from an image of RBG pixels. The pixels should be
normalized before any operations
Hint: Work on a per pixel basis (Each pixel on an object has a material inherited from
Hint: Define the plane as a rectangle and the sphere using the φ, θ angles from which
you derive a point x, y, z.
Hint: use Java2D for loading and manipulating pixels.