Skip to content

Commit

Permalink
Update for current master
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Sep 18, 2018
1 parent d0d16c9 commit 0188e5b
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions src/main/java/JaimesHut.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,29 @@ public static void main(String[] args) {
static boolean USE_PHONON=false;
@Override
public void simpleInitApp() {

this.setPauseOnLostFocus(false);
this.setDisplayStatView(false);
this.setDisplayFps(true);
PhononRenderer renderer=null;
JavaSoundPhononSettings settings=null;
if (USE_PHONON) {
try {
JavaSoundPhononSettings settings=new JavaSoundPhononSettings();
Phonon.init(settings, this);
try {
settings=new JavaSoundPhononSettings();
renderer=Phonon.init(settings, this);

Phonon.loadScene(settings, this, rootNode, (sx) -> {
return (!(sx instanceof Geometry))||sx.getParent().getUserData("game.soundoccluder")!=null;
});


// renderer.saveMeshAsObj("/tmp/scene1.obj");

} catch (Exception e1) {
e1.printStackTrace();
}
}

this.setPauseOnLostFocus(false);
this.setDisplayStatView(false);
this.setDisplayFps(true);



flyCam.setMoveSpeed(0);
Expand Down Expand Up @@ -175,14 +185,17 @@ public void simpleInitApp() {
BACKGROUND.setLooping(true);
BACKGROUND.play();

PhononMesh mesh=PhononMeshBuilder.build(rootNode,(sx) -> {
return (!(sx instanceof Geometry))||sx.getParent().getUserData("game.soundoccluder")!=null;


});
PhononRenderer renderer=(PhononRenderer)audioRenderer;
renderer.setScene(mesh);
// renderer.saveSceneAsObj("/tmp/scene.obj");
if (USE_PHONON) {
Phonon.loadScene(settings, this, rootNode, (sx) -> {
return (!(sx instanceof Geometry))||sx.getParent().getUserData("game.soundoccluder")!=null;
});


// renderer.saveMeshAsObj("/tmp/scene1.obj");
}


}
boolean left = false, right = false, up = false, down = false;
Vector3f camDir=new Vector3f();
Expand Down

0 comments on commit 0188e5b

Please sign in to comment.