simple earth viewer

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
Katsankat
Posts: 178
Joined: Sun Mar 12, 2006 4:15 am
Contact:

simple earth viewer

Post by Katsankat »

:D "Primitive google earth".
Control with Left Mouse Button, and Mouse Wheel.

Image

get it here (code & binaries 19.31Mb)

version 0.0.3:
smoother camera movement
Last edited by Katsankat on Sun Mar 15, 2009 11:25 am, edited 1 time in total.
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

Seems like the texture is missing... :roll:
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
Katsankat
Posts: 178
Joined: Sun Mar 12, 2006 4:15 am
Contact:

Post by Katsankat »

by looking at the size of the file i am sure it is inside :) Try downloading again
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

I also don't get the texture loaded, but the texture seems to be inside the folder, no clue why it doesn't load to the sphere:
Image

EDIT: I found the problem, the texture seems to be way too large (8192 x 4096), if I make it smaller (1024 x 512) it works (but the quality is not like you want it to be, of course) !!! ;)
Image

also this is very bad:

Code: Select all

   ITexture* tex = driver->getTexture("eartviewer.jpg");
   IGUIImage* i = guienv->addImage(core::rect<s32>(left,top, left+width,top+height));
              i->setImage(tex);
              i->setScaleImage(true);
   tex->drop();
don't drop a texture that you didn't create (you just add/load it, so don't drop it) !!!

and finally, if you press the left mouse button and moving the mouse it should zoom in and out, right ???
but the effect is only seen when you release the mouse button, while holding it and draging the mouse nothing changes until you release the button, then suddenly the scene switches to the zoom position...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Katsankat
Posts: 178
Joined: Sun Mar 12, 2006 4:15 am
Contact:

Post by Katsankat »

thanks Acki! Movement is now smooth. Any idea what to do for the texture? Is it because of how many Mb you have in the graphics card?
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Split it up for certain areas on the globe. A lot of graphics cards won't support such large textures. And by splitting it up you can make it even more detailed. Instead of using 1 huge texture, maybe use 10 smaller textures for the same effect.
roelor
Posts: 240
Joined: Wed Aug 13, 2008 8:06 am

Post by roelor »

It crashes horrible.
Post Reply