comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: 3D view of DEM
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 3D view of DEM [message #78419] Mon, 28 November 2011 05:37 Go to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Previous Topic: LONG64 in NetCDF-4 files
Next Topic: Re: X window requirement for batch jobs: not just for plotting

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:26:25 PDT 2025

Total time taken to generate the page: 0.56496 seconds