@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); // geom.getMesh().createCollisionData(); }
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); // teaGeom.move(new Vector3f(0.001f, 0, 0)); // pivot.rotate(0, 0.00001f, 0); // rootNode.updateGeometricState(); } // public void update() {
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); // teaGeom.move(new Vector3f(0.001f, 0, 0)); // pivot.rotate(0, 0.00001f, 0); // rootNode.updateGeometricState(); } // public void update() {
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); n.rotate(0, tpf, 0); n.move(0.1f*tpf, 0, 0); n2.rotate(0, 0, -tpf); }
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); if (initCounter < 2) { initCounter++; } else if (initCounter == 2) { //when initCounter reaches 2, the scene was drawn once and the texture was uploaded to the GPU //then we can bind the texture to OpenCL initOpenCL2(); updateOpenCL(tpf); initCounter = 3; } else { updateOpenCL(tpf); } }
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); if (initCounter < 2) { initCounter++; } else if (initCounter == 2) { //when initCounter reaches 2, the scene was drawn once and the texture was uploaded to the GPU //then we can bind the texture to OpenCL initOpenCL2(); updateOpenCL(tpf); initCounter = 3; } else { updateOpenCL(tpf); } }
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); sl.setDirection(cam.getDirection()); sl.setPosition(cam.getLocation()); }
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf);//To change body of generated methods, choose Tools | Templates. for (int i = 0; i < 3; i++){ PointLight pl = pls[i]; float angle = (float)Math.PI * (i + (timer.getTimeInSeconds() % 6)/3); // 3s for full loop pl.setPosition( new Vector3f(FastMath.cos(angle)*3f, 0, FastMath.sin(angle)*3f)); } } public void initialize(RenderManager rm, ViewPort vp) {
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); // box.updateGeometricState(); time += tpf; waterHeight = (float) Math.cos(((time * 0.6f) % FastMath.TWO_PI)) * 1.5f; water.setWaterHeight(initialWaterHeight + waterHeight); if (water.isUnderWater() && !uw) { waves.setDryFilter(new LowPassFilter(0.5f, 0.1f)); uw = true; } if (!water.isUnderWater() && uw) { uw = false; //waves.setReverbEnabled(false); waves.setDryFilter(new LowPassFilter(1, 1f)); //waves.setDryFilter(new LowPassFilter(1,1f)); } } }
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); angle += tpf; angle %= FastMath.TWO_PI; spot.setPosition(new Vector3f(FastMath.cos(angle) * 30f, 34.013165f, FastMath.sin(angle) * 30f)); lightMdl.setLocalTranslation(spot.getPosition()); spot.setDirection(lightTarget.subtract(spot.getPosition())); }
@Override public void simpleUpdate(float tpf) { if (!stop) { super.simpleUpdate(tpf); angle += tpf; angle %= FastMath.TWO_PI; spot.setPosition(new Vector3f(FastMath.cos(angle) * 30f, 34.013165f, FastMath.sin(angle) * 30f)); lightMdl.setLocalTranslation(spot.getPosition()); spot.setDirection(lightTarget.subtract(spot.getPosition())); } } }
@Override public void update() { if (prof!=null) prof.appStep(AppStep.BeginFrame); super.update(); // makes sure to execute AppTasks if (speed == 0 || paused) { return; } float tpf = timer.getTimePerFrame() * speed; // update states if (prof!=null) prof.appStep(AppStep.StateManagerUpdate); stateManager.update(tpf); // simple update and root node simpleUpdate(tpf); if (prof!=null) prof.appStep(AppStep.SpatialUpdate); rootNode.updateLogicalState(tpf); guiNode.updateLogicalState(tpf); rootNode.updateGeometricState(); guiNode.updateGeometricState(); // render states if (prof!=null) prof.appStep(AppStep.StateManagerRender); stateManager.render(renderManager); if (prof!=null) prof.appStep(AppStep.RenderFrame); renderManager.render(tpf, context.isRenderable()); simpleRender(renderManager); stateManager.postRender(); if (prof!=null) prof.appStep(AppStep.EndFrame); }
@Override public void simpleUpdate(float tpf) { super.simpleUpdate(tpf); if (loop++ % 1000 == 0) { printFloatBuffer("Position: ", debmesh.getBuffer(Type.Position)); printFloatBuffer("BindPosition: ", debmesh.getBuffer(Type.BindPosePosition)); } }
simpleUpdate(tpf); rootNode.updateLogicalState(tpf); guiNode.updateLogicalState(tpf);
@Override public void update() { if (prof!=null) prof.appStep(AppStep.BeginFrame); super.update(); // makes sure to execute AppTasks if (speed == 0 || paused) { return; } float tpf = timer.getTimePerFrame() * speed; // update states if (prof!=null) prof.appStep(AppStep.StateManagerUpdate); stateManager.update(tpf); // simple update and root node simpleUpdate(tpf); if (prof!=null) prof.appStep(AppStep.SpatialUpdate); rootNode.updateLogicalState(tpf); guiNode.updateLogicalState(tpf); rootNode.updateGeometricState(); guiNode.updateGeometricState(); // render states if (prof!=null) prof.appStep(AppStep.StateManagerRender); stateManager.render(renderManager); if (prof!=null) prof.appStep(AppStep.RenderFrame); renderManager.render(tpf, context.isRenderable()); simpleRender(renderManager); stateManager.postRender(); if (prof!=null) prof.appStep(AppStep.EndFrame); }