小记
如果没有ai,我将来的兴趣可能扎根在前端艺术影视效果展示,有ai后基本就废了。到最后还是建模占大头,就大一的时候学了ps和ai,之后的剪辑以及建模搁置了,也没那个精力了,以后有需要再学吧。
我在主页里放了 front_show ,灵感来源:
https://dogstudio.co/
https://sketchfab.com/3d-models
其实想把 dog 的颜色渐变效果也搞出来的,大致原理其实就是颜色的映射,但当前效果也还行,就这样凑合了
Web3D Three.js 学习网站:https://threejs-learning.com/zh/guide/introduction.html
核心就是三要素以及你的建模
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| scene camera renderer animate
scene.add(modelRoot) modelRoot.add(scrollGroup) scrollGroup.add(tiltGroup) tiltGroup.add(model)
const bounds = new THREE.Box3().setFromObject(object); const size = bounds.getSize(new THREE.Vector3()); const scale = MODEL_MAX_SIZE / Math.max(size.x, size.y, size.z); object.scale.setScalar(scale); object.position.set(-center.x * scale, ...);
pointer.lerp(pointerTarget, 0.045);
pointer.x += (pointerTarget.x - pointer.x) * 0.045;
const theta = Math.random() * Math.PI * 2; const phi = Math.acos(2 * Math.random() - 1);
|