Re: [Plib-users] How to paste a satellite image on the top of mesh?
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2003-01-30 00:09:32
|
Allen Yang wrote: > We are working on a 3D product that requires us to use satellite images. > We generated a mesh by using plib library. Now we are having problems to > paste a satellite image on the top of mesh. Since we never do such thing > before, we really come to the dead end. Please give me some hints!! It all depends on how the satellite image is taken. Generally, the first step in processing the image is to "Orthorectify" it. This adjusts the perspective on the image to match that of the mesh you are using. Is your mesh modelled to allow for the curvature of the earth? (Whether that matters or not depends on the area you are covering - for small areas it doesn't matter too much - but for large areas, the curvature of the earth cannot be neglected.) Once you have the satellite image re-mapped, you should be able to simply take the X/Y coordinate at each vertex on the mesh and divide it by the size of the image (in meter or whatever). This maps the entire image onto the entire mesh. Ortho-rectification of images is a deep subject that I can't go into depth on. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net |