Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PeriodicalTask problem #160

Open
Userpack4 opened this issue Dec 23, 2015 · 0 comments
Open

PeriodicalTask problem #160

Userpack4 opened this issue Dec 23, 2015 · 0 comments

Comments

@Userpack4
Copy link

Hi,
I have yet another problem with my 3d android application.
In onCreate method I've set this:

builder = new G3MBuilder_Android(this);
layerSet = new LayerSet();

WMSLayer blueMarble = LayerBuilder.createBlueMarbleLayer(true);
layerSet.addLayer(blueMarble);
builder.getPlanetRendererBuilder().setLayerSet(layerSet);
…….
builder.setInitializationTask(initGlobe());

initGlobe() is my GinitializationTask where i have created the Mark
Then:

builder.addPeriodicalTask(updateTime3DPeriodicaLtask());
g3mWidget = builder.createWidget();

The problem is with the PeriodicalTask updateTime3DPeriodicaLtask
It perform some calculation that change the Geodetic3D position of the mark via setPosition every 1 seconds.
To make the mark centered on the globe I call, inside PeriodicalTask:

g3mWidget.setCameraPosition(position);

The problem: after some changing position the mark disappear and, after some time, reappear.

When the changing position are not great it seems to perform well.
When the changing position make the globe to rotate more quickly the problem appear.
If anyone can give me some hint…..thanks all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant