Está en la página 1de 13

Page 1/13

Creating Landscapes
in 3ds MAX 3/4/5/6 using DEMs
written by: Eumel3d In this tutorial you will learn how to
@-mail: eumel3d@3dkingdom.org easily create high detailed landscape
for: http://www.3dkingdom.org models with the help of a few programs
and plugins

I ntroduction
But to get something straight, and to
Have you ever tried to create the destroy all illusions: This tutorial is
Grand Canyon in 3dsmax?! With all not a guide to create photorealistic
its valleys and deep canyons. scenes in 3dsmax and I am not
Perhaps you have actually dreamed going to explain how to create a fly-
of creating a short animation; a fly- through the canyons, so if you
through the canyons? All this expected the ultimate help to
sounds really difficult, but in fact it is landscapes and animations you
easier than you would believe. should stop reading right now.

You do not need excellent modelling With this short paper I just want to
skills or ages of experience in 3d show the possibility to import
MAX (although a bit of experience existing data into 3dsmax with the
would help a lot ;) ). You do not help of various programs and
even have to know much about the plugins. This paper should show
material editor. All you have to know you a completely other way of
is, how to use things which already working with 3d MAX as you might
exist. Therefor this tutorial is know or expected. At the end of the
focused on n00bs (beginners), but I tutorial you might be really surprised
am sure that intermediates will learn and some of you might be
some things too. dissapointed, but if only a few of you
understand the meaining of what I
wanted to say with this paper I
would be really happy.
Page 2/13

I would be really happy. why should I use an other program DEMs consist of a sampled array of
to do stuff like landscapes when I W hats a DEM? elevations for a number of ground
Its been ages since my last tutorial. have one of the best programs positions at regularly spaced
As a matter of fact I am already installed? With 3d MAX you DEM stands for Digital Elevation intervals.
admininstrator at 3dkingdom.org have a great tool, and the Model, but lets start from the These digital cartographic /geo-
(only god and PiLe knows why ;) ) landscape that we are going to beginning: graphic data files are produced by
and responsible for the tutorials create is absolutely identical with Digital elevation model data are the U.S. Geological Survey (USGS)
section, and I am really sorry that the real Grand Canyon! arrays of regularly spaced elevation as part of the National Mapping
you have scarcely anything heard of values. The USGS Digital Elevation Program.
me for the last few months. Good But befor the intro is getting too long Model (DEM) data files are digital
luck 3dkingdom.org is not reliant on and boring I want to tell you the representations of cartographic
me and has a few very active main things that this paper is information in a raster form.
members who submitted their work focused on:
to help the others. I want to thank all
of them. What is a DEM (this chapter
is just for the ones who are
Alright, the titel of this paper is interested in the background)
Creating Landscapes in 3d Studio Where to find DEMs
MAX. I am sure that some of the Using some freeware progs
3dk-knights who frequently browse (some of them are for good old
the forums have read lots of stuff DOS) to convert files
about Terragen, which should be Finding plugins on the net +
the non-plus-ultra for landscape how to install them to 3dsmax
modelling. Well, that’s right: You How to import data into MAX
can create very fast, very good
How to create a quite well
landscapes, you can export them to
looking rock material (blend,
3dsmax and do some post work
gradient)
there. Terragen is a very nice tool if
you want to create some fractal
generated surfaces or if you want to
work with displacemet maps. BUT:

That’s a DEM from the Grand Canyon with a Raster of 10x10m


Page 3/13

a way to import DEMs. And with a First of all, to realize this tutorial you For all the others, open your
W hats a DEM? bit of knowledge you are able to must have to download internet explorer (or netscape,
create photorealistic images, but as mozilla, opera,….) and surf to:
For America a huge set of DEMs is I said befor: I am not going to a few files,
available on the internet for free discuss on this topic ;) one or two freeware progs http://www.mapmart.com
download with a 10 meter square and a plugin for 3ds MAX.
grid spacing along and between When successfully opened, you
each profile. Means: you can see have to click on the "Ditial Elevation
everything in the DEM that is bigger W here to find DEMs? So if you have a problem with that
(28.8k users (if there are still some Model" link that you can find in the
then 10 meters in real life. out there ;) ) or if you are not menu on the right.
But I do not want write to much To get started, you have to know working on your own computer, and
about DEMs in general. If you are where to find the DEMs you need. do not have the rights to install If you have the time, take it and
interested in a detailed overview do In our case we need the elevation plugins into the 3dsmax directory) explore the site, its really worth a
not hesitate to visit the USGS data from the Grand Canyon. Good you wont be able to follow the look
hompage: luck that we only need one site to
download our grand canyon model,
http://www.usgs.gov but for lateron I will tell you a few
(the exact link can be found at the more sites which you can check out
end of the tutorial.) as well.

The next step we want to go about is Alright, enough of this bushwah;


to download some DEMs and import LETS START!!
them into 3d MAX. Perhaps, befor
we start, I should say that it needs
lots of pre-work to be able to create
such landscapes, and that the work
in MAX is focused on lightning up
and texturing the scene (or, in a next
step, animating the whole stuff).

You do not have to model anything


in 3dsmax, so this tutorial is not
really a 3d MAX tutorial but
shows
Page 4/13

If you do not know where to find the In the new pop-up window just enter
W here to find DEMs? grand canyon: no problem ;) the values:
(Hopefully everyone knows where Just do the following: Latitude: 36.11
A new site should open, with lots of to find the Grand Canyon ;) ) Click on the Zoom to… field (which Longitude: -112.19
text and (for us) very can be found in the upper middle) And press Enter (The explanation of
uniteresting stuff. We are only To Zoom in you have to select the and select Lat/Long Degrees. Latitude and Longitude, is found
interested on the Begin Search Zoom In field in the ToolBox menu tutorial. below*.)
Button. Click it to get to a new site. on the left. (Look at the picture on
(Look at the big picture below) bottom)

Interesting stuff can be found, and if you find the time, just take it and explre it

Again a new site should open.

On this new site you can see a map *Latitude and Longitude are how Longitude shows your location in an
of the United States of America. your site location is defined on the east-west direction, relative to the
Everything that is painted green on surface of the earth. Latitude is Greenwich meridian. Places to the
this map is available to download used to express how far north or west of Greenwich (such as North
(and almost ready to be imported south you are, relative to the and South America) have angles up
into 3d MAX) As our goal is to equator. If you are on the equator to 180 deg west.
model the Grand Canyon, we have your latitude is zero. If you are near
The ToolBox - I hope that I do not
to zoom in. habce to explain how it works ;) the north pole your latitude is nearly
90 degrees N
Page 5/13

On the left side you should see a A new window will open with lots of
W here to find DEMs? table with the Quad Name, the State text and stuff which is not important
and the Availability of the DEMs. for us. Just look at the cost field and
When entered the values, you Good luck everything is available to make sure everything costs 0$.
should now see the following map: download. ;) Now scroll down on the site and fill
out the form.

If you do not want, you do not have


to fill in your real name and stuff.
They just want to know who is
Very good. Now select zoom out in interested in their data. (I told them
the Tool Box on the left and click my real name and my city and I
once on the red star on the map as have never recieved any email or
we need a bigger cutout for our 3d spam from them, and I do not
MAX-model lateron. expect to get anything as they work
After that activate DEM in the Base tight together with the USGS which
Map menu (that can be found on the is a national organisation).
left as well) to see the map as
shown on the right.
Just fill out every field that has a red
star beside and click the Submit
When you can see this map, click Order Button below. If you have
the Begin Ordering Button which is filled out everything "correct" you
found somewhere on top. should come to the "you ordered…"
At MapMart you are allowed to site
download 9 DEMs per order, so we
are going to place a rectangle Be sure that every Quad has a
around the 9 fields that we want to check in the order-box and click on
download. How? I think that I do not the Check Out box below.
have to explain that ;)
Page 6/13

W here to find DEMs? U sing freeware progs


to convert the files

Creating DEM-files out of the zip-


archives with sdts2dem.exe

When you open one of the zipped


files you can see that it contains 19
different files. What we want to do
in the next step is to create one file
out of 18 (as one of the 19 files is
just a read.me). Therefor we need a
very small program that can be
found here:

http://www.cs.arizona.edu/topovista/
The "You Orderd… Site" sdts2dem/sdts2dem.exe

(Size: 226kb; for additional


All you have to do is to download When done you are finished with
information make sure to visit their
the 9 files (one by one; otherwise the DEMs-downloading stuff. You
homepage)
the MapMart server gets flooded have sucessfully downloaded a part
and will stop working ;) ) and save of the Grand Canyon and saved it
Best thing to do will be to save the
them onto your hard disc. Best thing on your disc. As you might have
small program into the same folder
to do will be to create an own folder noticed the files you have
as you have saved your 9 zip-files
for the whole tutorial. I guess that at downloaded are zipped, and contain
you downloaded befor.
latest now, the 28.8 modem users a few strange named files. For the
Now, select the first zip-file and
will stop to read on as all 9 files moment you do not need to unzip
unzip it into the same directory.
together have a filesize of 26MB ;) them but rather wait a few more
That directory should now contain 9
But its really worth to download. mins because we now need a small All the files you should have now
zip-files, the sdts2dem.exe-
programm to convert the whole stuff
program, 18 .ddf-files and one
into a real DEM.
readme. (look at the pic on the right.
Page 7/13

U sing freeware progs Next step is to delete all the .ddf Downloading 3DEM and
to convert the files files and the readme-file, unzip the merging the 9 DEM files to one:
next file into that directory and run
the sdts2dem.exe again (You 3DEM is a freeware program as
When unzipped run the When done, the little program
have to delete the previous well and can be found at:
sdts2dem.exe. The command asks you to enter the output-file
window should pop-up and you unzipped files as it might happen
name. Just select "part1" press http://www.visualizationsoftware.com/3d
should see some text (just look at that the files within the new zip-file
enter and wait a few secs em/downloads.html
the pic below) are named the same way as the
(depends on your CPU speed)
ones already unzipped!!).
This time, name the new file Install the little program. If you do
part2. Repeat that till you have 9 not know how to do that, just read
.dem files in your directory. (After the included readme.txt
that you can delete the zip-files as
well, as you do not need them When installed just run it and you
anymore, but to tell the truth, I should see something like below:
kept those files, as you do not A white screen with a menu-bar
know what future brings ;) on top.

By now you are theoretically able


to open the files in 3d MAX, but
befor we do that, we have to
merge the 9 files to one. You wont
The command-line from sdts2dem.exe believe it, but to be able to do that,
we have to download an other
Alright, the next steps are really As soon as the program has small program that is called 3DEM
easy finished the calculation, it closes
Enter first 4 characters of the base the command-window. Now check
SDTS file name: your directory with all the files.
Guess what you have to do :) In
my case I entered 9860 as I have If everything went fine, you should
unzipped the see a new file named part1.dem.
1678106.dem.sdts.tar.gz - file.
Page 8/13

U sing freeware progs


to convert the files

Downloading 3DEM and


merging the 9 DEM files to one:

Click on File, Load terrain model, in If you had problems to open all 9
the pop-up make sure USGS DEM files at once, open the first 3 or 4
is selected and click ok. Now and save them as merged1.dem,
browse to the directory where you after that open the next 3 or 4 files
have installed your 9 dem files and and name them merged2.dem and
open them. If for some reasons you so on.
cannot open all 9 files at once just
open the first 4 of them. (3dem has When done, open all the merged
a few bugs, and it might happen files and merge them together….
that it cannot open all 9 files at It’s a bit more work, but the result
once, but who cares as long as it is is the same.
freeware?)
At the end you should have one
When opened you should see file named merged.dem which is
something like the pic on the right. about 85MB big. If you have
Now select Files, Save USGS succeeded we can move on to
ASCII DEM, and save it into your install a 3d MAX plugin and take a
directory and name it merged.dem. first look at the file in 3ds.
By doing that you merge all 9 files
to one. That is necessarry for
lateron as you would see some
strange borders in MAX when you
open the .dem files individually
(best thing is to check it out ;) ) A part of the Grand Canyon opened in 3DEM
Page 9/13

F inding plugins on the


net and how to install
them to 3dsmax

I guess that everyone knows how The zipfile includes 2 files. We are
to search for plugins and how to only interested in the Dem2Max.dlo.
install them into 3dsmax so this Extract it into your max/plugins
chapter will be rather short :-) directory. (Make sure that you have
What we need is a plugin that the right plugin for your max version!)
makes it possible to open .dem When done, start 3d MAX.
files in 3dsmax. Good luck, that I
have searched it for you, so you
just have to install it.
Go to

http://www.habware.at/max6/dem
2max6.zip

and download the plugin if you are


using 3d MAX 6. If you do not
have MAX6 or want to have
additional information about that
company, please visit their
website (there are plugins for 3, 4
and 5 as well)

http://www.habware.at
Page 10/13

H ow to import data
into 3dsmax

3dsmax is able to import various The import will take a few


file formats. Most of you might moments. When successfully
know: .3ds or .prj loaded, you should see something
like the pic below.
With the little plugin we have
installed, it is now possible to It looks quite well. The only
import .dem files as well. problem is, that the z values from
the dem-file is in feet; 3dsmax
The plugin DEM2MAX is an import does not know that, and shows it
plugin, that allows you to import in meters.
landscapes defined in the Digital
Elevation Models into 3DStudio To fix that, you just have to scale
Max. It also provides methods to the model in z-direction.
set the color of the landscape
depending on the elevation of the As 1 foot is about 0,3m you have
faces. Get your favorite landscape to scale about 30 percent.
into 3DStudio MAX!
Therefor: click on non-uniform
To import a model, select from the scale (pic below)
File menu the entry Import.

In the file selection box goto List


Types and select
• Digital Elevation Model (*.dem)

Now select the merged.dem file


and start the import.

(take a look at the pic on the right)


Page 11/13

H ow to import data M odifiying the model


into 3dsmax

When activated, make sure that Make sure that the model is
the model is selected, and click on selected and click on the modify-
offset mode transform type in button.
Look at the pic. The button can be
found somewhere on the bottom.

Now you should be able to enter


values in the x, y and z fields. As I
said bevor, we have to scale the z-
axis to 33%, as the hight is in feet
and not in meter. In the modify menu you are able Clipping
To do that, just enter 33 in the to change a lot of settings.
z.field and press enter. Top, Bottom, Left, Right just tells
you the size of the model.
Thats, it, the model should now Mesh Density Make it a bit smaller as it is. (Do it
have the right hight and see why ;) )
StepX and StepY stands for the
+/-..., you can also try to calculate accuracy of the model. The lower When finished, you are done with
the real percentage, but 33 is fine these values are the better is the the "modelling" part.
for the tut model BUT the more polys you
get and the harder it is to work All you have to do know is to
with. So that really depends on create a good looking material,
your CPU how low you can go. place some lights and a camera
Try a value of 5, that should look and render the landscape
fine.
Page 12/13

H ow to create a quite We have to do that, because we But how? When done, click on Go to parent
well looking rock want to add a gradient map with When added the UVW-modifer, till you are back to the blend-
material different colors. So it is possible to open your material editor ("m" = basics.
create a kind of elevation. shortcut), select a free field, and
click on the "standard"-button. Click on the field near Material 2
Alright, I have played a bit with • Elevation 1: eg. Water
materials and came up with a • Elevation 2: eg. low green In the pop-up select blend In the Diffuse-field, add a Cellular-
quite well looking one. (for this • Elevation 3: eg. high green map and change the colors as
particular model) • Elevation 4: eg. pure mountain The popup should close and you shown:
• Elevation 5: eg. ice and snow should have added a basic-blend
Bevor you start, add a UVW material to your slot.
modifier to the model (plane in x- Click on the button close to
direction, and hit “Fit” button) "material1"

In the maps rollout, click on the


map-button near the "diffuse"-field
and select gradient ramp

Now change the colors as shown


below.

When done, click on Go to parent


till you are back to the blend-
basics.
Now add a Noise Map in the Mask
When done, click on Go to parent
field (type: fractal), and apply the
and add a cellular map into the
material to the model.
bump field. Change the bump-
Thats it ;)
value to 10.
(try to play around with the cellular
settings)
Page 13/13

C onclusions:
I hope it was not that difficult and
that you have learned something.

There is not much left to say, so I


will stay quite and wait for your
feedback.

Best wishes, good luck and till


next time…

Eumel3d

@-mail: eumel3d@3dkingdom.org

Little help for the material, the Material-Tree Thats, what you should get when you have
successfully followed the tutorial

Copyright © September 2004 :: 3D Kingdom.org :: Don't stay in the shadow!


Tutorial edited by Eumel3d and PiLe

También podría gustarte