16
Support / Re: Overlapping overlays, using transparency...help!?
« on: November 21, 2012, 10:57:57 pm »
Is it just me or can I not see a .getObject3D call for overlays? I know it's in the doc, but not showing up for me.
rpm_gauge.getObject3D....
I put the RPM gauges and needle in another world but it's still finicky... hmm
---
Edit:
This seems to be working now, hopefully it will last!
rpm_gauge.getObject3D....
I put the RPM gauges and needle in another world but it's still finicky... hmm
---
Edit:
This seems to be working now, hopefully it will last!
Code: [Select]
TextureManager.getInstance().addTexture("rpm_gauge", new Texture(res.openRawResource(R.raw.rpm_gauge_128), true));
rpm_gauge = new Overlay(overlay_world, 0, 0, 128, 128, "rpm_gauge");
rpm_gauge.setDepth(10);
rpm_gauge.setTransparency(255);
TextureManager.getInstance().addTexture("rpm_gauge_needle", new Texture(res.openRawResource(R.raw.rpm_gauge_needle_128), true));
rpm_gauge_needle = new Overlay(overlay_world, 0, 0, 128, 128, "rpm_gauge_needle");
rpm_gauge_needle.setDepth(5);
rpm_gauge_needle.setTransparency(255);