Skip to content

Commit

Permalink
fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Mar 6, 2023
1 parent bc5d547 commit c3a8e1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions webgl/lessons/ko/webgl-load-obj.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Wavefront .obj파일은 온라인에서 찾아볼 수 있는 가장 흔한 3D
따라서 뭔가 문제에 겪었거나 그에 대한 해결책을 찾으셨다면 제일 아래쪽의 코멘트를 사용해 알려주시면 이 코드를 사용하려는 다른 사람들에게 도움이 될 겁니다.

제가 찾은 .OBJ 포맷에 대한 가장 좋은 문서는 [이것](http://paulbourke.net/dataformats/obj/)입니다.
[이 페이지](https://www.loc.gov/preservation/digital/formats/fdd/fdd000507.shtml)[원본 문서](http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf)를 포함한 다양한 문서에 대항 링크를 제공합니다.
[이 페이지](https://www.loc.gov/preservation/digital/formats/fdd/fdd000507.shtml)[원본 문서](https://web.archive.org/web/20200324065233/http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf)를 포함한 다양한 문서에 대항 링크를 제공합니다.

간단한 예제를 살펴봅시다.
아래는 블렌더의 기본 화면에서 추출한 cube.obj 파일입니다.
Expand Down Expand Up @@ -510,7 +510,7 @@ function parseOBJ(text) {
}
```

키워드에 대해 더 이야기해보자면, [*공식 명세*](http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf)에 따르면, `mtllib`는 머티리얼 정보를 포함하는 별도의 파일을 가리킵니다.
키워드에 대해 더 이야기해보자면, [*공식 명세*](https://web.archive.org/web/20200324065233/http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf)에 따르면, `mtllib`는 머티리얼 정보를 포함하는 별도의 파일을 가리킵니다.
안타깝게도 실제 상황과는 맞지 않는것이 파일 이름에는 공백이 포함될 수 있고 OBJ 포맷은 공백이나 따옴표를 처리할 방법이 없습니다.
이상적으로는 json이나 xml, yaml과 같은 잘 정의된 포맷을 사용했으면 이런 문제를 해결할 수 있었겠지만 사실 .OBJ는 이러한 포맷들보다도 더 오래된 포맷입니다.

Expand Down
4 changes: 2 additions & 2 deletions webgl/lessons/webgl-load-obj.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The best documentation I've found for the .OBJ format is
[here](http://paulbourke.net/dataformats/obj/). Though
[this page](https://www.loc.gov/preservation/digital/formats/fdd/fdd000507.shtml)
links to many other documents including what appears to
[the original docs](http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf).
[the original docs](https://web.archive.org/web/20200324065233/http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf).

Let's look a simple example. Here is a cube.obj file exported from blender's default scene.

Expand Down Expand Up @@ -544,7 +544,7 @@ or normals are missing and just not include them.
}
```

Continuing with keywords, According to the [*official spec*](http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf),
Continuing with keywords, According to the [*official spec*](https://web.archive.org/web/20200324065233/http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf),
`mtllib` specifies separate file(s) that contains material info. Unfortunately that
doesn't seem to match reality because filenames can have spaces them and the .OBJ format
provides no way to escape spaces or quote arguments. Ideally they should have used a well defined format
Expand Down
2 changes: 1 addition & 1 deletion webgl/lessons/zh_cn/webgl-load-obj.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ function parseOBJ(text) {
}
```

让我们继续 keywords,根据 [*官方规范*](http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf)
让我们继续 keywords,根据 [*官方规范*](https://web.archive.org/web/20200324065233/http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf)
`mtllib` 指定了包含材质信息的独立的一个或多个文件。
不幸的是,在实际应用中,文件名中可以包含空格,但 .obj 格式中并没有提供逃逸字符来使用空格或引号。
理想情况应该使用能解决这些问题的、良好定义的格式,比如 json、xml 或 yaml 等。
Expand Down

0 comments on commit c3a8e1a

Please sign in to comment.