Pana-g / flutter_earth_globe

MIT License
21 stars 6 forks source link

Add surfaces #2

Closed Dionjazz closed 6 months ago

Dionjazz commented 9 months ago

Are there any plans to introduce the ability to add image surfaces from the network?

Pana-g commented 9 months ago

You can already do that. In the example folder you will see that I'm initializing FlutterEarthGlobeController like this

_controller = FlutterEarthGlobeController(
        rotationSpeed: 0.05,
        isBackgroundFollowingSphereRotation: true,
        background: Image.asset('assets/2k_stars.jpg').image,
        surface: Image.asset('assets/2k_earth-day.jpg').image);

You could use instead:

_controller = FlutterEarthGlobeController(
        rotationSpeed: 0.05,
        isBackgroundFollowingSphereRotation: true,
        background: Image.asset('assets/2k_stars.jpg').image,
        surface: Image.network('https://www.solarsystemscope.com/textures/download/2k_mars.jpg').image);
Dionjazz commented 9 months ago

Thanks for reply! But i meant the ability to add additional surfaces, like a list of layers.

Pana-g commented 9 months ago

If I understand correctly you want to have multiple surface layers on top of each other?

Dionjazz commented 9 months ago

Yes!

Pana-g commented 9 months ago

Unfortunately this feature isn't implemented yet.

Pana-g commented 9 months ago

Currently there isn't a target time for this feature. As a faster solution you could always create custom texture images with Photoshop or GIMP and create a multi layered texture image.

doug-inno commented 3 months ago

How would one go about implementing such a feature? Very cool project.