5XPU223's picture
لونها ابيض شوي كلها زياده - Initial Deployment
6c44a41 verified
Raw History Blame Contribute Delete
4.42 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Particle Animation</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #000;
}
canvas {
display: block;
}
.loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-family: 'Arial', sans-serif;
font-size: 24px;
}
</style>
</head>
<body>
<div class="loading">Loading...</div>
<script>
// Scene setup
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setPixelRatio(window.devicePixelRatio);
document.body.appendChild(renderer.domElement);
// Remove loading text
document.querySelector('.loading').remove();
// Particle setup
const particleGeometry = new THREE.BufferGeometry();
const particleCount = 10000;
const posArray = new Float32Array(particleCount * 3);
for(let i = 0; i < particleCount * 3; i++) {
posArray[i] = (Math.random() - 0.5) * 10;
}
particleGeometry.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
const particleMaterial = new THREE.PointsMaterial({
size: 0.02,
color: 0xffffff,
transparent: true,
opacity: 0.8,
blending: THREE.AdditiveBlending
});
const particles = new THREE.Points(particleGeometry, particleMaterial);
scene.add(particles);
// Text setup
const fontLoader = new THREE.FontLoader();
fontLoader.load('https://threejs.org/examples/fonts/helvetiker_regular.typeface.json', (font) => {
const textGeometry = new THREE.TextGeometry('LADE', {
font: font,
size: 0.5,
height: 0.2,
curveSegments: 12,
bevelEnabled: true,
bevelThickness: 0.03,
bevelSize: 0.02,
bevelOffset: 0,
bevelSegments: 5
});
const textMaterial = new THREE.MeshBasicMaterial({
color: 0xffffff,
wireframe: true
});
const textMesh = new THREE.Mesh(textGeometry, textMaterial);
// Positioning text in the center
textGeometry.computeBoundingBox();
const textWidth = textGeometry.boundingBox.max.x - textGeometry.boundingBox.min.x;
textMesh.position.set(-textWidth / 2, 0, 0);
scene.add(textMesh);
});
// Camera position
camera.position.z = 3;
// Animation loop
function animate() {
requestAnimationFrame(animate);
particles.rotation.x += 0.0005;
particles.rotation.y += 0.001;
renderer.render(scene, camera);
}
animate();
// Handle window resize
window.addEventListener('resize', () => {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
});
</script>
</body>
</html>
عدل COSMOS الى LADE
خلي النقاط بدل الازرق ابيض
خلي LADE 3D
لا لا نفس قبل شوي بس 3D
اي بضبط كذا بس كبر شويي وحطه نفس السي مكرر خفيف
ميل المكرره يسار شوي
رجعها من جديد
رجع من جديد
عدل الاسم SNX
اقصد عدل LADE الى SNX
بدون تكرير
ياخي حط SNK بدون تكرار
حط مسافه كذا S N X
S ابيض بزياده خله نفس الباقي
لونها ابيض شوي كلها زياده