Google Earth Plugin
-
Hi all,
I thought some of you might be interested in the GE Plugin. I case you haven't heard, it lets you imbed a small version of GE in any web page. Then you can didsplay geo-located models from 3DWarehouse in situ in GE. I think this might have great commercial application. Sampl that I'm working on:
http://www.twharvey.talktalk.net/index.htm
Regards,
Tom
P.S> Gaius, It's supposed to work in FF3 now. -
Way cool Tom. Nice model and you seem to have perfected placement within GE. Please keep us updated on what you learn in your process.
Thanks!
-
Hi Eric,
I'm not a programer and that's a problem with this plugin. It's only about a month old and the documentation is pretty confusing. I did a lot of copying and pasting and asking for help on the plugin discussion page before I got it working. If you already know JavaScript, it should be a lot easier. Thank goodness I have a good local library.
Tom
-
I've already seen your example, Tom, though there seems to be two additions now (that log house and the barn?). Really nice and exciting experiments!
I also looked at the documentation and figured out that you need to register somehow to get a "key" or something. Please, confirm this or correct me if I'm wrong.
Though I myself am not a javascript coder either (though have played around with some already), the script created seems to be quite self explanatory and not too hard to understand. -
@gaieus said:
I've already seen your example, Tom, though there seems to be two additions now (that log house and the barn?). Really nice and exciting experiments!
I also looked at the documentation and figured out that you need to register somehow to get a "key" or something. Please, confirm this or correct me if I'm wrong.
Though I myself am not a javascript coder either (though have played around with some already), the script created seems to be quite self explanatory and not too hard to understand.Gaieus,
Yeah, it's about done now. I've put in a couple of more buildings and (a first for me) some low-poly trees.
In order to imbed the GE Plugin into a web page, you do need to get a Key from Google ( http://code.google.com/apis/maps/signup.html ). Once you've got the Key, it can be used in other web pages on the same site. Also, you can have as many free keys as you need for different web sites.
The coding is not to difficult once you get a feel for the JavaScript language and a bit of help from the Plugin discussion page.
Tom
-
Fine Tom, thanks for confirming (I was rather in a hurry when visited the docs sites). Next week I hope I'll have more time to give it a shot and will come back and make my "report of progress".
-
Looking forward to it!
-
Hi Norbert,
As far as I know, it only works with models uploaded to the warehouse. Tom knows more about it however so I hope he chimes in soon.
Why do you not want to upload them to the WH?
-
Hello Tom and Gaieus,
my question is, how it is possible to load my own building (kmz), when it does not come from database by google, but from my own database.
Do you know it?
Best regards,
Norbert Lindenthal -
Hi Gaieus,
yes I uploaded to the WH. Please have a look here:
http://sketchup.google.com/3dwarehouse/search?q=Laboer+Marine-Ehrenmal&btnG=Suchen&styp=m&reps=2
Only the first one is shown by Google Earth:
http://sketchup.google.com/3dwarehouse/details?mid=5e75d8adb1cf8843eaca97843a0c9352&prevstart=0
And this first one is too wrong.I would like to play with one half of a model to look in it. And there I would like to load some interior.
And the best skin of the one model I would like to give to WH.
-
Why do you have four versions of the same model in the WH first of all? Is the one that is on the 3D Layer in GE not the best of them?
Note that they won't put up a model that only shows the half and the interior - it's against Google's aim to have as simple models as possible. You can however upload anything to the WareHouse and within GE, adjust the content of the kmz file to show different views.
Have a look at this example: expand the "House" folder then change the (round) radio buttons from first floor > second floor > full house. Such a model would doubtedly make to trhe official 3D Layer though. You can,of course, upload one and people can download it to their GE to view.
Edit; you can view the building in the 3D Map but unfortunately you are unable to change scenes/layers in there - only in GE on your desktop.
-
@gaieus said:
Why do you have four versions of the same model in the WH first of all? Is the one that is on the 3D Layer in GE not the best of them?
That is the problem. I loaded them in 2006. Not all was right there. And I had to learn a lot.
@unknownuser said:
Note that they won't put up a model that only shows the half and the interior - it's against Google's aim to have as simple models as possible. You can however upload anything to the WareHouse and within GE, adjust the content of the kmz file to show different views.
This I know. But my question is to load own models in the GE Plug-in in Safari/Mac from own database. Because I dont want to make such playing difficulties in the WH.
@unknownuser said:
Have a look at this example: expand the "House" folder then change the (round) radio buttons from first floor > second floor > full house. Such a model would doubtedly make to the official 3D Layer though. You can, of course, upload one and people can download it to their GE to view.
Gaieus, your model with radio buttons to show either first floor or second floor is very fine. This is my idea too. To get this in GE I know the way. But how is the way for own models in GE Plug-in without (or before) loading up to the warehouse.
@unknownuser said:
Edit; you can view the building in the 3D Map but unfortunately you are unable to change scenes/layers in there - only in GE on your desktop.
-
@n lindenthal said:
But how is the way for own models in GE Plug-in without (or before) loading up to the warehouse.
This is the problem. AFAIK you can (currently) only load anything into the 3D Map with the GE plugin if it is in the 3D Warehouse.
Also, the 3D Map doesn't allow "playing" with those radio buttons.
So what you could do (and as I understand, currently this is all you can do) is to upload the model to the 3D WH, allow visitors to see it in the 3D Map (only "from outside") but also allow them to download it into their local GE application to explore the inside in details.
-
@n lindenthal said:
my question is, how it is possible to load my own building (kmz), when it does not come from database by google, but from my own database.
Hi Norbert,
I think you can run the GE Plugin on your own computer and access .kmz files directly from you own hard disk. I played with this when I was experimenting with the Plugin.
On the other hand, if you want to run the plugin on a site that is available to everybody on the web, you need to house your .kmz files on a site that is also universally available, i.e. 3DW.
I suppose (although I haven't tried it) you could build your own web site that held you models and code the plugin the access this site for the .kmz files.
You might find more answers on this forum:
http://groups.google.com/group/google-earth-browser-plugin/topics?pli=1I hope this helps,
Tom -
Hi, Tom,
you made me happy by telling, that you did see it. I tried again …
… and gained the solution.I am not master in javascript, so it took some time to understand, that in my script construction kmzs = ['x','2','3','4','5','6'] there have to be 6times 'x'. x is an absolute path (to warehouse or to own database [http://…/model.kmz]).
Thank you very much, Tom
Best regards,
Norbert -
Cool!
-
Hello Tom,
cool is, that kmz models can be loaded from own database by 'http://…/model.kmz' !
But I did not find to load from harddisk by 'file://MyHD/user/MyUser/…/model.kmz' ?Do you have an idea to load from local harddisk?
-
Norbert,
I tried it quickly and it did not work. It could be an error in my coding (I'm not much of a programer!) When I have a bit mor time, I'll work on it and let you know.
Tom
-
Thank you, Tom,
I just read, that javascript for security reasons can not load local files.
Best regards,
Norbert Lindenthal -
Tom, I found it:
http://192.168.xx.xx/~myusername/filename
Personal Web Sharing must be ON. My file has to be in the »Sites«-Folder.
Advertisement