How to place my own 3D model in GEPlugin?

427 views
Skip to first unread message

arccpp

unread,
Nov 12, 2008, 8:56:34 PM11/12/08
to KML Developer Support - Google Earth Browser Plugin
I wanna place some 3d models in my own website, these models is
in .dae format. How can i do this?

if i include these models in my kml file and parse the kml use
ge.parseKml() method, can it work?

water

unread,
Nov 13, 2008, 1:19:44 AM11/13/08
to KML Developer Support - Google Earth Browser Plugin
I meet the same problem with you, I have some .3DS files, and want
to add this 3D model into my web site, should I load them through kml
or any other method.

looking forward to ^^^^^

Thanks.

arccpp

unread,
Nov 13, 2008, 2:59:46 AM11/13/08
to KML Developer Support - Google Earth Browser Plugin

is anybody can help me? please.....

fraser

unread,
Nov 13, 2008, 6:57:36 AM11/13/08
to KML Developer Support - Google Earth Browser Plugin
Hi guys,

@arccpp - To create a 3D model, initialize it from a Collada file, and
place it in the world see
http://earth-api-samples.googlecode.com/svn/trunk/demos/interactive/index.html
and check the "Create 3d model" example.

@water - You will need to convert you model to .dae/.kmz to load it
into the plugin. I suggest using Sketchup to do this. Then look at the
example I posted for arccapp above...

Hope that helps.


F.

shsavage

unread,
Nov 13, 2008, 5:03:19 PM11/13/08
to KML Developer Support - Google Earth Browser Plugin
Here's an example that shows you how to load Collada (.dae) models and
rotate them with a variety of methods:

http://gaialab.asu.edu/DAAHL/testmodel.htm

You can use Google Sketchup Pro or MeshLab to convert your 3ds models
to .dae format.

-Steve

On Nov 13, 4:57 am, fraser wrote:
> Hi guys,
>
> @arccpp - To create a 3D model, initialize it from a Collada file, and
> place it in the world seehttp://earth-api-samples.googlecode.com/svn/trunk/demos/interactive/i...
> and check the "Create 3d model" example.
>
> @water - You will need to convert you model to .dae/.kmz to load it
> into the plugin. I suggest using Sketchup to do this. Then look at the
> example I posted for arccapp above...
>
> Hope that helps.
>
> F.
>
> On Nov 13, 1:56 am, arccpp wrote:
>
>
>
> > I wanna place some 3d models in my own website, these models is
> > in .dae format. How can i do this?
>
> > if i include these models in my kml file and parse the kml use
> > ge.parseKml() method, can it work?- Hide quoted text -
>
> - Show quoted text -

water

unread,
Nov 14, 2008, 2:21:34 AM11/14/08
to KML Developer Support - Google Earth Browser Plugin
Thanks That really help..

I can successfully add other .dae files into earth. however, the dae
transformed from 3ds by sketchup pro, can not add to earth, why??

-thanks


On Nov 13, 7:57 pm, fraser wrote:
> Hi guys,
>
> @arccpp - To create a 3D model, initialize it from a Collada file, and
> place it in the world seehttp://earth-api-samples.googlecode.com/svn/trunk/demos/interactive/i...
> and check the "Create 3d model" example.
>
> @water - You will need to convert you model to .dae/.kmz to load it
> into the plugin. I suggest using Sketchup to do this. Then look at the
> example I posted for arccapp above...
>
> Hope that helps.
>
> F.
>
> On Nov 13, 1:56 am, arccpp wrote:
>
>
>
> > I wanna place some 3d models in my own website, these models is
> > in .dae format. How can i do this?
>
> > if i include these models in my kml file and parse the kml use

arccpp

unread,
Nov 14, 2008, 3:08:46 AM11/14/08
to KML Developer Support - Google Earth Browser Plugin
thank you, my code works well!

On 11月13日, 下午7时57分, fraser wrote:
> Hi guys,
>
> @arccpp - To create a 3D model, initialize it from a Collada file, and
> place it in the world seehttp://earth-api-samples.googlecode.com/svn/trunk/demos/interactive/i...

fraser

unread,
Nov 14, 2008, 8:45:05 AM11/14/08
to KML Developer Support - Google Earth Browser Plugin
water,

It's pretty hard to help without more information...
Do you get some kind of error message?
Could you post a link to the page that has the problem, or a link to
the .dae file that isn't working?

Incidentally if you have a copy of 3ds max then you could try and
export to .dae directly by going:
File -> Export -> DAE -> OK.

F.
> > - Show quoted text -- Hide quoted text -

water

unread,
Nov 16, 2008, 9:12:37 PM11/16/08
to KML Developer Support - Google Earth Browser Plugin
I mean that when I fellow the steps into 3, the models disappear, Only
thing I get on screen is the "Current view of earth" why?? I need this
step to place my model to the posion..

1.Start Google Earth and fly in so you're looking down at the location
you want to place your model.
2.Open your model in SketchUp.
3.Click "Get Current View."
4.Click "Toggle Terrain" so that the 3D image of the terrain is
showing. This will show you any slope that the terrain has at the
location you imported, 5.and your model might end up partially or even
fully under the sloped terrain.
Move and rotate your model as necessary to get the final positioning
just right. If the terrain is sloped, you will need to move it up or
down (in the blue direction) so that it is sitting on the ground.

fraser

unread,
Nov 20, 2008, 10:05:13 PM11/20/08
to KML Developer Support - Google Earth Browser Plugin
Hi,

OK I get you now...it sounds like you are overwriting the model layer
with the earth data.
Rather than opening your model first and then doing the "Get Current
View" try this.

1) Start a new file in sketchup
2) Perform the steps to load the terrain/image from google earth.
3) Import your model and place it where you want in the file.

If you need more help I suggest the sketchup group...

Hope that helps.

F.

water

unread,
Nov 30, 2008, 9:42:06 PM11/30/08
to KML Developer Support - Google Earth Browser Plugin
Thank you that really help...I find the problem: when I import
the 3d file, I did not chang the scale, and the default scale is
centimeter, which made the model too small to see.
Reply all
Reply to author
Forward
0 new messages