Re: Combine meshes for Terrain modeling

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Kevin Spencer (kspencer_at_takempis.com)
Date: 06/07/04


Date: Mon, 7 Jun 2004 14:37:58 -0400

Thanks, Filip,

My problem is, they all have the same world coords, centered on 0,0,0 for
each one. I'm thinking I can use Geometry.ComputeBoundingBox() to get the
length, width, and height of the meshes, and do a Tranform to place them
relative to one another. I have had a hard time finding much info on this
method, but as the meshes are basically box-like, it should work, correct?
I'm also thinking that I can use these dimensions to translate from
Lat/Long/Altitude to X/Y/Z, as I know the dimensions in meters of the DEM
files. Thoughts?

-- 
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Filip Strugar" <fili@sezampro_dot_yu> wrote in message
news:OTK9H4LTEHA.204@TK2MSFTNGP10.phx.gbl...
> I suppose you wouldn't want to combine them all into one big mesh, but to
> render them separately (and maybe do the frustum cull)?
>
> If they have good world coords, they should match up fine.
>
> "Kevin Spencer" <kspencer@takempis.com> wrote in message
> news:%23nSCCPKTEHA.808@tk2msftngp13.phx.gbl...
> > I am using USGS Digital Elevation Model files to create .X files that
each
> > contain about a 3 X 6-mile patch of the earth. I am having trouble
> figuring
> > out how to combine these separate mesh files to generate a single mesh
> that
> > serves as the current terrain view. How do I match up the edges of the
> > meshes and combine them?
> >
> > TIA,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> >
>
>