Skynode moon source image

classic Classic list List threaded Threaded
2 messages Options
sonnysan sonnysan
Reply | Threaded
Open this post in threaded view
|

Skynode moon source image

Hi there, I'm using a SkyNode, but I have been with a few problems. What I'm trying to do is:

1st: Make the moon show up. So far it doesn't appear even when calling skynode->setMoonVisible(true);
2nd: Change the source image of the moon, to use a different image than the "moon_1024x512.jpg".

When running osgearth_ephemerisd, everything loads fine and shows up at the desired position.

My first guess would be that the image is not being loaded/found in my application, but the "error reading file moon_1024x512.jpg: file not found" message is not being shown/thrown to my console.

Thanks in advance.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Skynode moon source image

sonnysan,
If you add the folder containing the moon image to your OSG_FILE_PATH, osgEarth will find it.

You can change the image via the SimpleSkyOptions::moonImage property ("moon_image" in an earth file).
Glenn Waldron / Pelican Mapping