Overlay glitching out?

Started by Irony, March 25, 2014, 08:37:35 PM

Previous topic - Next topic

Irony

Egon, can you make a wild guess what could be wrong if an overlay is not visible? It should be rendered on world.renderscene, right?

Debug code:

if (arrow==null) arrow = new Overlay(man.world, fb, "arrow");
arrow.setNewCoordinates(50, 50, 200, 200);
arrow.setVisibility(true);


Still, no overlay :(


Irony

This helps somewhat. I see it in one scene, but not in the next.
Do I have to do anything with the overlay when I switch cameras?

EgonOlsen

"Switch cameras" means setting another camera instance to the same world instance that the overlay belongs to?

Irony

World.setcamerato (if this answers the question?)
Btw, using ES 2.0 if this is relevant.

EgonOlsen

#5
Yes, that's what i meant. Which version of jPCT-AE are you using? If it's not the latest, please upgrade and try again. If it is the latest...do you have a test case for me to look at to verify this problem?

Irony

Probably the latest. Already late today so I'll check on it and prepare a test code tomorrow. Thank you so far and good night  :)

Irony

I am now disposing and recreating the overlay after scene change and together with the changed depth, it seems to work.

EgonOlsen

I'm still not sure, what the actual issue is...but if it works this way... ;)