"Primitive google earth".
Control with Left Mouse Button, and Mouse Wheel.
get it here (code & binaries 19.31Mb)
version 0.0.3:
smoother camera movement
simple earth viewer
simple earth viewer
Last edited by Katsankat on Sun Mar 15, 2009 11:25 am, edited 1 time in total.
-
- Posts: 758
- Joined: Mon Mar 31, 2008 3:32 pm
- Location: Bulgaria
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:
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) !!!
also this is very bad: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...
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) !!!
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();
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:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm