x


Using Google Earth Terrain in Unity

I am trying to insert some terrain data form Google Earth (specifically the Nurburgring in Germany) into a Unity project. I imported the terrain into Google SketchUp and exploded it.alt text

I Exported as a .dae then converted to .FBX with the "AutoDesk FBX Converter 2013" tool.

I imported the FBX into unity then put all of the raw meshes into the play area. Then in the hierechy window, I moved the meshes to the terrain folder. I Selected all the meshes and tried to use Object2Terrain But I got an error: "Please make sure a terrain exists."alt text

If I also select the unity terrain it gives a different error: "Please select an object with a mesh."

Thanks for the help, jp

more ▼

asked Jun 08 '12 at 07:34 PM

learjet60guy gravatar image

learjet60guy
30 1 1 2

You could try to batch all objects together, so it has only one mesh. And you should definitely not drag the object to the Terrain (child it). Then you could try once more.

Jun 09 '12 at 12:24 AM bompi88

I tried it outside of the terrain and it didn't work. Also I don't know how to "batch" the meshes not one.

Jun 09 '12 at 08:57 PM learjet60guy

"batch" to a big mesh may lead the low efficiency.

splite the hole land to small terrains is a better way.(just like a jigsaw)

Jun 10 '12 at 02:18 AM sooncat

Did you have a terrain created in your scene? I believe you need a new terrain in the scene and then you just select the mesh you have created and use the Object2Terrain this should then turn the flat terrain you created into the same shape as the mesh you selected earlier. If you are still having problems I think Eric created the script so you might want to contact him specifically? Scribe

Jun 10 '12 at 10:25 AM Scribe

I guessed you meant the Object2Terrain script on the UnifyCommunity, so i added the link. If you use external tools / libraries / packages it really helps to link them ;)

Jun 10 '12 at 10:36 AM Bunny83
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

It's exactly like @Scribe said. You need to create a terrain first. The script uses the active terrain (Terrain.activeTerrain) So you need to have a terrain in the scene before you can use the script.

If you read the usage carefully you can read that the generated heightmap is assigned to the active terrain. Well, i guess it's possible to explain that a bit more in detail, but the error should give you a clue ;)

more ▼

answered Jun 10 '12 at 10:39 AM

Bunny83 gravatar image

Bunny83
45.4k 11 49 207

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1364
x83
x54
x4
x1

asked: Jun 08 '12 at 07:34 PM

Seen: 1471 times

Last Updated: Jun 10 '12 at 10:23 PM