skysphere

This commit is contained in:
austin 2022-02-17 17:28:20 -05:00
parent 5be3c9c2d5
commit dc0b6efa43
6 changed files with 32 additions and 2 deletions

Binary file not shown.

BIN
assets/Textures/Thumbs.db Normal file

Binary file not shown.

View File

@ -245,6 +245,12 @@
"/Textures/cloudRing.png",
"/Textures/cloudRing.png"
]
},
"Models/skyboxSphere.fbx" : {
"Sphere" : [
"/Textures/starrySky.png",
"/Textures/starrySky.png"
]
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

View File

@ -5,6 +5,9 @@ public class Control {
boolean isMouse;
boolean state;
int keyValue;
ControlMethod onPress;
ControlMethod onRelease;
ControlMethod onRepeat;
public boolean isIsKey() {
return isKey;
@ -32,6 +35,22 @@ public class Control {
this.keyValue = keyValue;
this.state = false;
}
public void setOnPress(ControlMethod method){
onPress = method;
}
public void setOnRelease(ControlMethod method){
onRelease = method;
}
public void setOnRepeat(ControlMethod method){
onRepeat = method;
}
public interface ControlMethod {
public void execute();
}
}

View File

@ -523,6 +523,11 @@ public class LoadingThread extends Thread {
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
Globals.skyboxColors.add(new Vector3f(groundR,groundG,groundB));
//starry sky true skybox
Entity skybox = EntityUtils.spawnDrawableEntity("Models/skyboxSphere.fbx");
EntityUtils.getRotation(skybox).rotateX((float)(-Math.PI/2.0f));
EntityUtils.getScale(skybox).mul(2000.0f);
//cloud ring pseudo skybox
Entity cloudRing = EntityUtils.spawnDrawableEntity("Models/cloudRing.fbx");
EntityUtils.getRotation(cloudRing).rotateX((float)(-Math.PI/2.0f));
@ -672,9 +677,9 @@ public class LoadingThread extends Thread {
// OpportunisticAttacker.attachToCreature(goblin);
Entity shorts = ItemUtils.spawnBasicItem("boots1");
EntityUtils.getPosition(shorts).set(new Vector3f(2,1,1));
EntityUtils.getPosition(shorts).set(new Vector3f(2,1,2));
Entity hair = ItemUtils.spawnBasicItem("hairshort1");
EntityUtils.getPosition(hair).set(new Vector3f(1,1,1));
EntityUtils.getPosition(hair).set(new Vector3f(2,1,1));
// goblin = CreatureUtils.spawnBasicCreature("Goblin");
// CollisionObjUtils.positionCharacter(goblin, new Vector3f(3, 0, 4));