This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Need help on making Marble+GeoLocation+video issue possible

Tags: None
(comma "," separated)
kaykay
Registered Member
Posts
4
Karma
0
I am a developer myself and want to understand how to integrate marble render into my video. As i mentioned, i would like to know following things:
I just need the "Location zoom based on Geolocation tag" mentioned below to render in 4-6 seconds and do not intend to have 3D models of buildings,trees,clouds or anything.
> Requirements:
1. User tags a GeoLocation
2. Marble Earth(or similar) dynamically renders(mostly using OpenGL+OpenSceneMaps etc) to zoom into the Location tagged by the user
3. Rendering finishes in 4-6 seconds and dumps a video file at the end of the render (.mp4)
My contact email id is reach_kapil@yahoo.com
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS
Are you looking for something like http://youtu.be/-WA3_NShAJk?
kaykay
Registered Member
Posts
4
Karma
0
Yes very similar. Can you help make such projects?
Really appreciate your help
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS
I just pushed the code which created said video as a cpp example.
kaykay
Registered Member
Posts
4
Karma
0
How does it work? Can it take input on a location on earth and load+render model automatically each time?
I am on phone right now so could check the code
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS
Yes, you just run the program and it creates the video as output. There are lots of parameters at the top that can be changed easily (start point, destination point, start/end zoom level, intermediate zoom level, video resolution, filename, fps). Should be easy to integrate that elsewhere.
kaykay
Registered Member
Posts
4
Karma
0
Hi
Can I email you directly? You have been so much help. Thank you so much. Please let me know if there is anyway i can compensate you for this help.
I am very new to Marble and I have worked with KDE or marble before. I am impressed by Marble and wanted to integrate the render to a location from Globe perspective.

I have following questions:
1.User will be entering the Location Tag from Facebook application and I want the code
a. to get the cooridnates of the Location Tag and find the nearest city
b. Render the Marble to Zoom onto the nearest city tag and place a pin and words like BERLIN on top of the map.

This youtube video that you showed zooms too much into the area. I am happy if it only zooms to the top of the neighbouring cities resolution and displays a pin on top highlighting the city name.

Is this possible? Please help me.


Thanks
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS
Changing how much it zooms in is a parameter of the code, so that's easily modified. Highlighting a city (or arbitrary point) is easy as well, see this tutorial. So b. is easy to do.
For a. you need a proper definition though for nearest city: Is a town with 10000 inhabitants 1 km away the nearest city, or is it the other one with 500000 which is 2 km away? So you have to come up with some custom code that finds neighboring cities and selects one as the nearest. I wonder if it's not better to highlight the location tab itself. After all you can choose a map theme that shows cities and the user can see neighboring cities himself then easily, without you choosing the (possibly wrong) one. Finding a proper name for the location tag can be done via reverse geocoding.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]