Just the background (top) of image and water:
Full image with boat overlay:
And to really feel like you are on the boat taking you to shore, add a rocking motion.
Hope you don't get seasick.
The applet will not allow control the height of the swells.
(There is another applet that allows the waves to be adjusted, but not the rocking motion)
This technique would work better on a stormy shot with waves.
Click either animated images to go to the site dedicated to USS Rankin (AKA-103)
Here's the original photo used with permission for this tutorial:
HOW IT WAS DONE:
 Clean/restore your photo if damaged. Note the original shot I made the sample from has damage. Before the project, clean the image to the best of your ability.
 JPG and gif images work the best for this technique so if your image is a tif, bmp, etc File Save As to convert to a jpg. If possible, optimize your image quality so the image is compressed but clear, this makes the image as small as you can make it before we start the project. (note: some photo programs refer to optimize as make the image web-ready)
 Make 2 duplicate copies. We will be changing the photo so put the original someplace that you can not mistake it for the project images.
Image 1: Take the full photo and cut it off (crop it) at the new water line. Even if your image has no water line, where ever you cut horizontally will create a waters edge.
 Our Image1 is not ready to make water yet. Anything that will overlap from the background image to the foreground image must be taken out. In this example, the metal frame showing above can not stay in Image 1. It must be removed, and any area that it covers must be filled.
 The metal frame has been removed and the image now has a complete scene.
 Because the original image was strong in the foreground, but the background had such weak tones, I adjusted the colors to provide a better reflection in the water. Image 1should be saved only in a jpg format and is now complete.
Image2: Leave the photo full size. Since we need transparency on this image, File Save As to make it a gif (the applet does not recognize png). This step is just opposite from Image 1. This time you will remove all parts of the image that are not going to be in the foreground overlay. (At least this time you only remove, no replacing!)
 You are ready for the application onto the Image 1. Note. You may not be done with this image. It may need some tweaking before you are satisfied with the result.
Follow the same instructions as shown in the LAKE example above, modify the HTML code to fit your image dimensions, load the Lake.class and images into an Insert HTML (webgem in Trellix) and publish your page. Study it for problems.
When I overlaid this image I found 2 things wrong:
1. the overlay image came up to high on the mountain. I made the image CANVAS larger (not the picture). For purposes of this web page, I added a slight border so you can see the full size of the expanded image. The area at the top is actually empty canvas but shows up better on this demo if colored. By adding extra space at the top of the photo, the boat will hit the the background image approximately the same height as the original photo. This is not an exact science and must be adjusted according to the photo you are using. It took me two tries to get it the way I wanted.
I filled in the space with the color that represents transparent. (need help with transparency, check out this tutorial)
2. The edges on the boat seemed to rough, jagged when placed as an overlay. I went back to the now expanded photograph and cleaned/recolored pixels so they would not be shiny against the background areas. The resulting tweaks are shown below, the image was saved to a new name each time I adjusted: (hard to see difference unless laid against the background image)
 I double clicked my inserted HTML code placeholder (I use the original pic as mine) changed the code to the new picture name, added the new tweaked image to the webcomponent and republished.
This step may be done a few times to get the image where, and how you want it. Personal choice.
Depends on how picky you are and how difficult the background/foreground image is to work with.
|