Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed Jun 9, 2023
1 parent fce595b commit d0b3b2a
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 6 deletions.
20 changes: 20 additions & 0 deletions cg/threejs/raycaster.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
# Raycaster

```js
class Object3D extends EventDispatcher {
raycast( /* raycaster, intersects */ ) {}
}
```
支持的对象有Sprite,Points,LOD,Line,Mesh, InstancedMesh, SkinnedMesh


[How to get the 3d coordinates of a mouse click](https://webglfundamentals.org/webgl/lessons/webgl-qna-how-to-get-the-3d-coordinates-of-a-mouse-click.html)

在世界坐标系下测试没有问题,但对Mesh做了变化,所得到的点就产生了异常

scene目录下的所有节点都要在world space中计算
比如结构如下
scene.group中包含了所有模型,因为control的变化,group的matrix是变化了的,
最后pick的点需要进行一个操作
```js
pos.clone().applyMatrix4(group.matrix.clone().invert())
```
为什么要在world space中计算了?应该是获取面face的数据时需要在这个space中
14 changes: 14 additions & 0 deletions index/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,17 @@

[Divio Documentation system](https://documentation.divio.com/)
[中文翻译](https://tinggengyan.github.io/2021/10/03/the-documentation-system_how_to_write_good_document/)

## 协议

### Fair-code

- [Fair-code, is not a software license, it describes a software model where software:一种旨在使开发人员获得报酬的开源替代方案](https://faircode.io/)

- [Fair Code vs Open Source, Which Wins The Future? ](https://fosspost.org/fair-code-open-source/)

- [editor.js](https://github.com/codex-team/editor.js)
- [AVA (AVA examples Visual Analytics) is a technology framework designed for more convenient visual analytics.](https://github.com/antvis/AVA)
- [n8n - Workflow automation tool](https://github.com/n8n-io/n8n)
- [Moveable is Draggable, Resizable, Scalable, Rotatable, Warpable, Pinchable, Groupable, Snappable](https://github.com/daybrush/moveable)
- [rrweb refers to 'record and replay the web', which is a tool for recording and replaying users' interactions on the web](https://github.com/rrweb-io/rrweb)
3 changes: 2 additions & 1 deletion index/computerScience.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

## ComputerGraphics

- [Real-Time Rendering Resources](https://www.realtimerendering.com/)
- [Ambient Occlusion](../cg/ambient-occlusion.md)
- [点至三角形的最近点](https://zhuanlan.zhihu.com/p/458837573)
- [smallpt: Global Illumination in 99 lines of C++](http://www.kevinbeason.com/smallpt/)
Expand All @@ -34,7 +35,7 @@

#### threejs

- [threejs 笔记](../cg/threejs.md)
- [threejs 笔记](../cg/threejs/index.md)
- [Beispiele webGL mit three.js ](https://hofk.de/main/threejs/)
- [3D Grafik - WebGL mit three.js](https://xprofan.net/intl/de/php,html,js/3d-grafik-webgl-mit-three-js/)
- [use your mouse to control the camera and build an andorid](https://hofk.de/main/threejs/raycaster/raycaster.html)
Expand Down
4 changes: 3 additions & 1 deletion math/pbr3ed.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h4 id="section1">projection matrix</h4>
<p>22</p>
</div>
<div>
<h4 id="section5">Color And Radiometry</h4>
<h4 id="section5">5. Color And Radiometry</h4>
<p>可见光的波段380到780,400以下是bluish, 550是greens,大于650是reds</p>
<p>spectral power distribution(SPD)频谱功率分布</p>
<ul>
Expand All @@ -29,6 +29,8 @@ <h4 id="section5">Color And Radiometry</h4>
<li><em>irradiance</em></li>
<li><em>radiance</em></li>
</ul>
<p>5.2.1 XYZ Color</p>
<p>A remarkable property of the human visual system makes it possible to represent colors for human perception with just three floating-point numbers. The tristimulus theory of color perception says that all visible SPDs can be accurately represented for human observers with three values, \( \mathcal{x}_{\lambda} \), , \( \mathcal{y}_{\lambda} \) and \( \mathcal{z}_{\lambda} \). Given an emissive SPD , these values are computed by integrating its product with the spectral matching curves \(X(\lambda)\), \(Y(\lambda)\), and \(Z(\lambda)\):</p>
</div>
</div>
</body>
Expand Down
13 changes: 10 additions & 3 deletions web/font.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,20 @@ body {
}
```

## Google Fonts
## Fonts

[地址](http://www.googlefonts.cn/)
[cn地址](http://www.googlefonts.cn/)
### Google Fonts

- [地址](http://www.googlefonts.cn/)
- [cn地址](http://www.googlefonts.cn/)

谷歌字体是一个云字库平台,使用起来很方便,不需要进行格式的转换,直接在网页中引用。

### Fira Code
Fira Code: free monospaced font with programming ligatures

- [github](https://github.com/tonsky/FiraCode?_pjax=#js-repo-pjax-container)

## 理论知识
不同操作系统、不同浏览器内嵌的默认字体是不同的

Expand Down
3 changes: 2 additions & 1 deletion web/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Web

- [CSS](./css.md)
- [nginx](./nginx.md)
- [nginx](./nginx.md)
- [vue](./vue.md)
8 changes: 8 additions & 0 deletions web/vue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Vue

## 关键流程

页面url变化刷新内容
```js
window.addEventListener('hashchange', initial, false);
```

0 comments on commit d0b3b2a

Please sign in to comment.