three.js相机属性

OrthographicCamera(正交相机) 物体显示的大小和绘制时一样大小,是不会因为距离目测点远而变小的。实际生产环境一般不会选&

iohannes iohannes Published on 2025-03-18

three.js自动放置模型位置

function autoLocalOneModel(object, camera, controls) { const box = new THREE.Box3().setFromObject(object); const boxSize = box.getSize(new THREE.V

iohannes iohannes Published on 2025-03-18

threejs聚焦物体

let lx = model.position.x; let ly = model.position.y; let lz = model.position.z; let size = new THREE.Vector3(); let boundingBox = new THREE.Box3().s

iohannes iohannes Published on 2025-03-18

threejs动画入口

AnimationMixer.update 推进混合器时间并更新动画 通常在渲染循环中完成, 传入按照混合器的时间比例(timeScale)缩放过的clock.getDelta let mesh; // 新建一&#

iohannes iohannes Published on 2025-03-18

ts中var、let、const的区别

var var 是定义一个变量, 此变量没有作用域(函数/循环体)限制, 只要定义过一次就可以到处用, 并且变量的值可以改变 非必须请不要用var, let/const 会有&

iohannes iohannes Published on 2025-03-18

tree.js 常见操作gltf

播放动画 js scene = new THREE.Scene(); new RGBELoader().setPath( 'textures/equirectangular/' ).load( 'royal_esplanade_1k.hdr', function ( texture ) { te

iohannes iohannes Published on 2025-03-18

ubuntu install cuda

clear old sudo rm /etc/apt/sources.list.d/cuda* sudo apt remove --autoremove nvidia-cuda-toolkit sudo apt remove --autoremove nvidia-* sudo rm -rf /u

iohannes iohannes Published on 2025-03-18

ubuntu安装微信

echo “install wine” sudo apt install wine echo “install winetricks” sudo apt install winetricks winetricks riched20 winetricks fakechinese echo “chang

iohannes iohannes Published on 2025-03-18

ubuntu install virtualbox

sudo apt-get purge "^virtualbox-.*" sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get clean wget -O virtualbox https://download.virtua

iohannes iohannes Published on 2025-03-18

ubuntu国内源

ubuntu20.04 源 deb http://mirrors.aliyun.com/ubuntu/ focal main restricted deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted deb http

iohannes iohannes Published on 2025-03-18
Previous Next