tcp 粘包

粘包 多个数据包被连续存储于连续的缓存中,在对数据包进行读取时由于无法确定发生方的发送边界,而采用某一估测值大小来进Ŝ

iohannes iohannes Published on 2025-03-18

tcp 常见问题

tcp 三次握手 客户端发送请求报文将 SYN = 1同步序列号和初始化序列号seq = x发送给服务端,发送完之后客户端处于SYN_Send状态。此时服务&#

iohannes iohannes Published on 2025-03-18

three.js更改对象属性

更改背景 let scene = new THREE.Scene() scene.background = new THREE.TextureLoader().load(image); scene.background = new THREE.Color(color) 更改对象材质 // Crea

iohannes iohannes Published on 2025-03-18

three.js灯光

DirectinalLight(平行光) 方向光,常常用来表现太阳光照的效果 创建 const light = new THREE.DirectionalLight(0xffffff, 1); light.position.set(0, 10, 0); light.target.position.s

iohannes iohannes Published on 2025-03-18

three.js获取模型所有子对象

new OBJLoader().load('dt.obj', function (object) { function getChildrenObj(object, resultMap) { object.traverse((v) => { if (v.isMesh && v

iohannes iohannes Published on 2025-03-18

three.js物体沿曲线运动

<!DOCTYPE html> <html lang="en"> <body> <div id="webgl_3d"></div> </body> <script type="importmap"> { "imports": { "three": "../js/three

iohannes iohannes Published on 2025-03-18

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
Previous Next