Re: 3D view of DEM [message #78419] |
Mon, 28 November 2011 05:37  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Dave Poreh writes:
> I have a deformation image (tiff) and a DEM from the area too. How
> could i make 3D view of the area please?
You simply use the image as a texture map for the DEM
surface. You can do this directly with cgSurface.
Here is an example:
file = Filepath(Subdir=['examples','data'],'elev_t.jpg')
Read_JPEG, file, image
file = Filepath(Subdir=['examples','data'],'elevbin.dat')
dem = Read_Binary(file, Data_Dims=[64,64], Data_Type=1)
cgSurface, dem, Texture_Image=image
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: 3D view of DEM [message #78530 is a reply to message #78419] |
Wed, 30 November 2011 11:32  |
d.poreh
Messages: 406 Registered: October 2007
|
Senior Member |
|
|
On Nov 28, 5:37 am, David Fanning <n...@dfanning.com> wrote:
> Dave Poreh writes:
>> I have a deformation image (tiff) and a DEM from the area too. How
>> could i make 3D view of the area please?
>
> You simply use the image as a texture map for the DEM
> surface. You can do this directly with cgSurface.
> Here is an example:
>
> file = Filepath(Subdir=['examples','data'],'elev_t.jpg')
> Read_JPEG, file, image
> file = Filepath(Subdir=['examples','data'],'elevbin.dat')
> dem = Read_Binary(file, Data_Dims=[64,64], Data_Type=1)
> cgSurface, dem, Texture_Image=image
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Thanks David. How could we setup the exaggeration parameter please?
Cheers,
David
|
|
|