jPCT-AE - a 3d engine for Android > Support
Overlay glitching out?
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:
--- Code: ---
if (arrow==null) arrow = new Overlay(man.world, fb, "arrow");
arrow.setNewCoordinates(50, 50, 200, 200);
arrow.setVisibility(true);
--- End code ---
Still, no overlay :(
EgonOlsen:
Yes, it should. Try if http://www.jpct.net/jpct-ae/doc/com/threed/jpct/util/Overlay.html#setDepth(float) can help here.
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.
Navigation
[0] Message Index
[#] Next page
Go to full version