parent
519a5d7afc
commit
d42fef0c99
18 changed files with 172 additions and 25 deletions
Binary file not shown.
After Width: | Height: | Size: 487 KiB |
@ -0,0 +1,20 @@ |
||||
/** |
||||
* Implentation of the jupiter. |
||||
* Texture from https://www.solarsystemscope.com/textures/1
|
||||
*/ |
||||
|
||||
import * as THREE from '/website/node_modules/three/build/three.module.js'; |
||||
|
||||
|
||||
const jupiterTexture = new THREE.TextureLoader().load('/website/jupiter/jupiter.jpg'); |
||||
const jupiterSphere = new THREE.SphereGeometry(15, 32, 16); |
||||
const material = new THREE.MeshStandardMaterial({ map: jupiterTexture }); |
||||
export const jupiter = new THREE.Mesh( jupiterSphere, material ); |
||||
|
||||
jupiter.position.x = 170; |
||||
|
||||
export function rotation(){ |
||||
jupiter.rotation.x -= 0.01; |
||||
jupiter.rotation.y -= 0.01; |
||||
jupiter.rotation.z -= 0.01; |
||||
} |
After Width: | Height: | Size: 733 KiB |
@ -0,0 +1,20 @@ |
||||
/** |
||||
* Implentation of the mars. |
||||
* Texture from https://www.solarsystemscope.com/textures/1
|
||||
*/ |
||||
|
||||
import * as THREE from '/website/node_modules/three/build/three.module.js'; |
||||
|
||||
|
||||
const marsTexture = new THREE.TextureLoader().load('/website/mars/mars.jpg'); |
||||
const marsSphere = new THREE.SphereGeometry(10, 32, 16); |
||||
const material = new THREE.MeshStandardMaterial({ map: marsTexture }); |
||||
export const mars = new THREE.Mesh( marsSphere, material ); |
||||
|
||||
mars.position.x = 130; |
||||
|
||||
export function rotation(){ |
||||
mars.rotation.x -= 0.01; |
||||
mars.rotation.y -= 0.01; |
||||
mars.rotation.z -= 0.01; |
||||
} |
After Width: | Height: | Size: 852 KiB |
@ -0,0 +1,20 @@ |
||||
/** |
||||
* Implentation of the merkur. |
||||
* Texture from https://www.solarsystemscope.com/textures/1
|
||||
*/ |
||||
|
||||
import * as THREE from '/website/node_modules/three/build/three.module.js'; |
||||
|
||||
|
||||
const merkurTexture = new THREE.TextureLoader().load('/website/merkur/merkur.jpg'); |
||||
const merkurSphere = new THREE.SphereGeometry(10, 32, 16); |
||||
const material = new THREE.MeshStandardMaterial({ map: merkurTexture }); |
||||
export const merkur = new THREE.Mesh( merkurSphere, material ); |
||||
|
||||
merkur.position.x = 40; |
||||
|
||||
export function rotation(){ |
||||
merkur.rotation.x -= 0.01; |
||||
merkur.rotation.y -= 0.01; |
||||
merkur.rotation.z -= 0.01; |
||||
} |
Binary file not shown.
After Width: | Height: | Size: 195 KiB |
@ -0,0 +1,27 @@ |
||||
/** |
||||
* Implentation of the saturn. |
||||
* Texture from https://www.solarsystemscope.com/textures/1
|
||||
*/ |
||||
|
||||
import * as THREE from '/website/node_modules/three/build/three.module.js'; |
||||
|
||||
|
||||
const saturnRingTexture = new THREE.TextureLoader().load('/website/saturn/saturnring.jpg'); |
||||
const saturnRing = new THREE.TorusGeometry(12, 1, 16, 60); |
||||
const materialRing = new THREE.MeshStandardMaterial({ map: saturnRingTexture }); |
||||
export const saturn = new THREE.Mesh( saturnRing, materialRing ); |
||||
|
||||
// Den Saturnplaneten hinzufuegen
|
||||
const saturnTexture = new THREE.TextureLoader().load('/website/saturn/saturn.jpg'); |
||||
const saturnPlanet = new THREE.SphereGeometry( 10, 32, 16 ); |
||||
const materialSaturn = new THREE.MeshStandardMaterial( { map: saturnTexture } ); |
||||
const saturnSphere = new THREE.Mesh( saturnPlanet, materialSaturn ); |
||||
saturn.add(saturnSphere) |
||||
|
||||
saturn.position.x = 210; |
||||
|
||||
export function rotation(){ |
||||
saturn.rotation.x -= 0.01; |
||||
saturn.rotation.y -= 0.01; |
||||
saturn.rotation.z -= 0.01; |
||||
} |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 864 KiB |
@ -0,0 +1,20 @@ |
||||
/** |
||||
* Implentation of the venus. |
||||
* Texture from https://www.solarsystemscope.com/textures/
|
||||
*/ |
||||
|
||||
import * as THREE from '/website/node_modules/three/build/three.module.js'; |
||||
|
||||
|
||||
const venusTexture = new THREE.TextureLoader().load('/website/venus/venus.jpg'); |
||||
const venusSphere = new THREE.SphereGeometry(10, 32, 16); |
||||
const material = new THREE.MeshStandardMaterial({ map: venusTexture }); |
||||
export const venus = new THREE.Mesh( venusSphere, material ); |
||||
|
||||
venus.position.x = 70; |
||||
|
||||
export function rotation(){ |
||||
venus.rotation.x -= 0.01; |
||||
venus.rotation.y -= 0.01; |
||||
venus.rotation.z -= 0.01; |
||||
} |
Loading…
Reference in new issue