Fall Oaks

This commit is contained in:
austin 2021-07-27 01:23:51 -04:00
parent 1e1117f9e1
commit 1a4b00a138
5 changed files with 17 additions and 0 deletions

BIN
assets/Models/falloak1.fbx Normal file

Binary file not shown.

View File

@ -101,6 +101,12 @@
"/Textures/transparent_blue.png",
"/Textures/transparent_blue.png"
]
},
"Models/falloak1.fbx" : {
"Cube" : [
"/Textures/falloak1.png",
"/Textures/falloak1.png"
]
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@ -510,6 +510,15 @@ public class LoadingThread extends Thread {
// EntityUtils.getPosition(tree).set(rand.nextFloat() * 150 + 10, 0, rand.nextFloat() * 150 + 10);
//// EntityUtils.getEntityRotation(tree).rotateAxis((float)-Math.PI/2.0f, new Vector3f(1,0,0));
// }
for(int i = 0; i < 250; i++){
Random rand = new Random();
String treePath = "Models/falloak1.fbx";
Entity tree = EntityUtils.spawnDrawableEntity(treePath);
EntityUtils.getPosition(tree).set(rand.nextFloat() * 105 + 1, 0, rand.nextFloat() * 105 + 1);
EntityUtils.getRotation(tree).rotateLocalX(-(float)Math.PI/2.0f).rotateZ(rand.nextFloat());
// EntityUtils.getEntityRotation(tree).rotateAxis((float)-Math.PI/2.0f, new Vector3f(1,0,0));
}
// Random rand = new Random();
// for(int i = 0; i < 1000; i++){

View File

@ -89,6 +89,8 @@ public class ModelLoader {
//once we've either added default textures or actual textures,
//set the current mesh's material to this new one
current_mesh.set_material(final_material);
} else {
LoggerInterface.loggerRenderer.WARNING("Failed to load texture for node " + current_mesh.nodeID + " of model " + path);
}
}
}