Skip to content
View Austinsaj's full-sized avatar

Block or report Austinsaj

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Austinsaj/README.md

import * as THREE from 'three'; import { GLTFExporter } from 'three/examples/jsm/exporters/GLTFExporter';

// Set up scene, camera, and renderer const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); const renderer = new THREE.WebGLRenderer(); renderer.setSize(window.innerWidth, window.innerHeight); document.body.appendChild(renderer.domElement);

// Create geometry for the steel building const steelBuildingGeometry = new THREE.BoxGeometry(10, 20, 5);

// Create materials for the steel building const steelMaterial = new THREE.MeshStandardMaterial({ color: 'gray', metalness: 1, roughness: 0.5 });

// Create a mesh for the steel building and apply the materials const steelBuildingMesh = new THREE.Mesh(steelBuildingGeometry, steelMaterial); scene.add(steelBuildingMesh);

// Create lights for the scene const ambientLight = new THREE.AmbientLight(0x404040); const directionalLight = new THREE.DirectionalLight(0xffffff); directionalLight.position.set(1, 1, 1).normalize(); scene.add(ambientLight, directionalLight);

// Create an animation loop function animate() { requestAnimationFrame(animate);

// Update the animation (e.g., progressing steel building) // ...

Popular repositories Loading

  1. Austinsaj Austinsaj Public

    Config files for my GitHub profile.

  2. glTF-Transform glTF-Transform Public

    Forked from donmccurdy/glTF-Transform

    glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.

    TypeScript