16
Support / Re: Fog disappears after resume app
« on: April 26, 2011, 10:04:51 pm »
Yes, now fog works properly. Thank you EgonOlsen!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
public void onSurfaceChanged(GL10 gl, int w, int h) {
if (fb != null) {
fb.dispose();
}
fb = new FrameBuffer(gl, w, h);
if (master == null) {
world = new World();
world.setAmbientLight(20, 20, 20);
world.setFogging(World.FOGGING_ENABLED);
world.setFogParameters(40,0,0,0);
MODEL=Primitives.getCylinder(4,100,10);
MODEL.setTexture("building");
MODEL.build();
SimpleVector sv=world.getCamera().getPosition();
sv.x-=300;
sv.z+=3000;
MODEL.setOrigin(sv);
The check...Collision methods don't translate anything at all!? It's up to you to use the returned SimpleVector for doing a translation or not.Sorry, I mean its return different SimpleVector.
To get the object ids (can be more than one) from a speherical collision detection, register a collision listener on the objects.Thank you.