Fall Oaks
This commit is contained in:
parent
1e1117f9e1
commit
1a4b00a138
BIN
assets/Models/falloak1.fbx
Normal file
BIN
assets/Models/falloak1.fbx
Normal file
Binary file not shown.
@ -101,6 +101,12 @@
|
||||
"/Textures/transparent_blue.png",
|
||||
"/Textures/transparent_blue.png"
|
||||
]
|
||||
},
|
||||
"Models/falloak1.fbx" : {
|
||||
"Cube" : [
|
||||
"/Textures/falloak1.png",
|
||||
"/Textures/falloak1.png"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
assets/Textures/falloak1.png
Normal file
BIN
assets/Textures/falloak1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
@ -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++){
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user