language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | mrdoob | three.js | 80d4d22e0bda20d6a2a5f6003b3237f34334d240.json | remove stackoverflow q? links | threejs/lessons/ru/langinfo.hanson | @@ -5,7 +5,9 @@
title: 'Основы three.js',
description: 'Изучение Three.js с нуля.',
link: 'http://threejsfundamentals.org/',
- commentSectionHeader: '<div>Вопросы? <a href="http://stackoverflow.com/questions/tagged/three.js">Спросите на stackoverflow</a>.</div>\n <div>Нашли ошибку? <a href="http://gith... | true |
Other | mrdoob | three.js | 80d4d22e0bda20d6a2a5f6003b3237f34334d240.json | remove stackoverflow q? links | threejs/lessons/zh_cn/langinfo.hanson | @@ -5,7 +5,9 @@
title: 'Three.js 基础',
description: 'Three.js 基础学习',
link: 'http://threejsfundamentals.org/',
- commentSectionHeader: '<div>有问题? <a href="http://stackoverflow.com/questions/tagged/three.js">在 Stackoverflow 上提问</a>.</div>\n <div><a href="https://github.com/gfxfundamentals/threejsfundament... | true |
Other | mrdoob | three.js | 66f07cbd228b0c68a0e16022b18efc4e6c7cad06.json | add referecnes for translations | threejs/lessons/threejs-fundamentals.md | @@ -489,4 +489,5 @@ to support legacy browsers look into a <a href="https://babeljs.io">transpiler</
</div>
<!-- needed for out of date translations -->
-<a href="threejs-geometry.html"></a>
\ No newline at end of file
+<a href="threejs-geometry.html"></a>
+<a href="Geometry"></a>
\ No newline at end of file | false |
Other | mrdoob | three.js | 1854725650012e8675882af33b836bcba41bf969.json | add referecnes for translations | threejs/lessons/threejs-fundamentals.md | @@ -487,3 +487,6 @@ see what you need to change. It would be too much work to maintain both an es6 m
version of this site so going forward this site will only show es6 module style. As stated elsewhere,
to support legacy browsers look into a <a href="https://babeljs.io">transpiler</a>.</p>
</div>
+
+<!-- needed for ... | false |
Other | mrdoob | three.js | e8403d4ef8e08d21db1e96a761e4ec35b70b3bd7.json | add referecnes for translations | threejs/lessons/threejs-custom-buffergeometry.md | @@ -432,6 +432,10 @@ I hope these were useful examples of how to use `BufferGeometry` directly to
make your own geometry and how to dynamically update the contents of a
`BufferAttribute`.
+<!-- needed to prevent warning from outdated translation -->
+<a href="resources/threejs-geometry.svg"></a>
+<a href="threejs-c... | false |
Other | mrdoob | three.js | 2d2cdf6cee900bfc9c530785d8c2a53372c48c02.json | add translation warnings with links | threejs/lessons/ja/threejs-custom-buffergeometry.md | @@ -2,7 +2,7 @@ Title: Three.jsのカスタムバッファジオメトリ
Description: カスタムバッファジオメトリを作る
TOC: カスタムバッファジオメトリ
-{{{warning msgId="updateNeeded" issue="https://github.com/gfxfundamentals/threejsfundamentals/issues/185"}}}
+{{{warning msgId="updateNeeded" link="https://github.com/gfxfundamentals/threejsfundamentals/issues/185"}}}
... | true |
Other | mrdoob | three.js | 2d2cdf6cee900bfc9c530785d8c2a53372c48c02.json | add translation warnings with links | threejs/lessons/kr/threejs-custom-buffergeometry.md | @@ -2,7 +2,7 @@ Title: Three.js 사용자 지정 BufferGeometry
Description: 사용자 지정 BufferGeometry를 만드는 법에 대해 알아봅니다
TOC: 사용자 지정 BufferGeometry
-{{{warning msgId="updateNeeded" issue="https://github.com/gfxfundamentals/threejsfundamentals/issues/187"}}}
+{{{warning msgId="updateNeeded" link="https://github.com/gfxfundamentals... | true |
Other | mrdoob | three.js | 2d2cdf6cee900bfc9c530785d8c2a53372c48c02.json | add translation warnings with links | threejs/lessons/langinfo.hanson | @@ -25,8 +25,8 @@
`,
contribTemplate: 'Thank you <a href="${html_url}"><img src="${avatar_url}"> ${login}</a><br>for <a href="https://github.com/${owner}/${repo}/commits?author=${login}">${contributions} contributions</a>',
translations: {
- badTranslation: 'Sorry, the translation of this area is out of dat... | true |
Other | mrdoob | three.js | 2d2cdf6cee900bfc9c530785d8c2a53372c48c02.json | add translation warnings with links | threejs/lessons/ru/threejs-custom-buffergeometry.md | @@ -2,7 +2,7 @@ Title: Three.js Пользовательская BufferGeometry
Description: Создание собственной геометрии BufferGeometry.
TOC: Пользовательская BufferGeometry
-{{{warning msgId="updateNeeded" issue="https://github.com/gfxfundamentals/threejsfundamentals/issues/186"}}}
+{{{warning msgId="updateNeeded" link="https:... | true |
Other | mrdoob | three.js | dcb75c28f4e91bc0d20189279cda8a0ea75b2235.json | remove references to geometry | threejs/lessons/threejs-custom-buffergeometry.md | @@ -2,47 +2,8 @@ Title: Three.js Custom BufferGeometry
Description: How to make your own BufferGeometry.
TOC: Custom BufferGeometry
-> **NOTE:** r125 removed `Geometry` from three.js.
-> Only `BufferGeometry` now exists. Further, all geometry
-> with names like `XXXBufferGeometry` has been removed
-> and only `XXX... | false |
Other | mrdoob | three.js | 001f5c884f1498ed7a957ada8235ad2ab19cb383.json | use pointer events for game | threejs/lessons/kr/threejs-game.md | @@ -1022,54 +1022,42 @@ class InputManager {
+ }
+ };
+
-+ const checkSides = (e) => {
++ const handleMouseMove = (e) => {
++ e.preventDefault();
++ // this is needed because we call preventDefault();
++ // we also gave the canvas a tabindex so it can
++ // become the focus
++ ... | true |
Other | mrdoob | three.js | 001f5c884f1498ed7a957ada8235ad2ab19cb383.json | use pointer events for game | threejs/lessons/threejs-game.md | @@ -1190,53 +1190,41 @@ class InputManager {
+ }
+ };
+
-+ const checkSides = (e) => {
++ const handleMouseMove = (e) => {
++ e.preventDefault();
++ // this is needed because we call preventDefault();
++ // we also gave the canvas a tabindex so it can
++ // become the focus
++ ... | true |
Other | mrdoob | three.js | 001f5c884f1498ed7a957ada8235ad2ab19cb383.json | use pointer events for game | threejs/threejs-game-conga-line-w-notes.html | @@ -3,7 +3,7 @@
<html>
<head>
<meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Three.js - Game w/notes</title>
<style>
html {
... | true |
Other | mrdoob | three.js | 001f5c884f1498ed7a957ada8235ad2ab19cb383.json | use pointer events for game | threejs/threejs-game-conga-line.html | @@ -301,57 +301,41 @@
}
};
- const checkSides = (e) => {
+ const handleMouseMove = (e) => {
+ e.preventDefault();
+ // this is needed because we call preventDefault();
+ // we also gave the canvas a tabindex so it can
+ // become the focus
+ canvas.focus();... | true |
Other | mrdoob | three.js | 001f5c884f1498ed7a957ada8235ad2ab19cb383.json | use pointer events for game | threejs/threejs-game-player-input.html | @@ -266,57 +266,41 @@
}
};
- const checkSides = (e) => {
+ const handleMouseMove = (e) => {
+ e.preventDefault();
+ // this is needed because we call preventDefault();
+ // we also gave the canvas a tabindex so it can
+ // become the focus
+ canvas.focus();... | true |
Other | mrdoob | three.js | a9bf769da2a80f22ddb4ee42cd16538cbad96386.json | use pointer events for indexed-textures | threejs/lessons/ja/threejs-indexed-textures.md | @@ -190,20 +190,7 @@ function unselectAllCountries() {
});
}
-canvas.addEventListener('mouseup', pickCountry);
-
-let lastTouch;
-canvas.addEventListener('touchstart', (event) => {
- // prevent the window from scrolling
- event.preventDefault();
- lastTouch = event.touches[0];
-}, {passive: false});
-canvas.ad... | true |
Other | mrdoob | three.js | a9bf769da2a80f22ddb4ee42cd16538cbad96386.json | use pointer events for indexed-textures | threejs/lessons/kr/threejs-indexed-textures.md | @@ -168,20 +168,7 @@ function unselectAllCountries() {
});
}
-canvas.addEventListener('mouseup', pickCountry);
-
-let lastTouch;
-canvas.addEventListener('touchstart', (event) => {
- // 스크롤 이벤트를 방지합니다.
- event.preventDefault();
- lastTouch = event.touches[0];
-}, { passive: false });
-canvas.addEventListener('... | true |
Other | mrdoob | three.js | a9bf769da2a80f22ddb4ee42cd16538cbad96386.json | use pointer events for indexed-textures | threejs/lessons/threejs-indexed-textures.md | @@ -200,20 +200,7 @@ function unselectAllCountries() {
});
}
-canvas.addEventListener('mouseup', pickCountry);
-
-let lastTouch;
-canvas.addEventListener('touchstart', (event) => {
- // prevent the window from scrolling
- event.preventDefault();
- lastTouch = event.touches[0];
-}, {passive: false});
-canvas.ad... | true |
Other | mrdoob | three.js | a9bf769da2a80f22ddb4ee42cd16538cbad96386.json | use pointer events for indexed-textures | threejs/threejs-indexed-textures-picking-and-highlighting.html | @@ -383,20 +383,7 @@
resetPalette();
}
- canvas.addEventListener('mouseup', pickCountry);
-
- let lastTouch;
- canvas.addEventListener('touchstart', (event) => {
- // prevent the window from scrolling
- event.preventDefault();
- lastTouch = event.touches[0];
- }, {passive: false});
- canvas.addE... | true |
Other | mrdoob | three.js | a9bf769da2a80f22ddb4ee42cd16538cbad96386.json | use pointer events for indexed-textures | threejs/threejs-indexed-textures-picking-debounced.html | @@ -410,22 +410,8 @@
resetPalette();
}
- canvas.addEventListener('mousedown', recordStartTimeAndPosition);
- canvas.addEventListener('mouseup', pickCountry);
-
- let lastTouch;
- canvas.addEventListener('touchstart', (event) => {
- // prevent the window from scrolling
- event.preventDefault();
- ... | true |
Other | mrdoob | three.js | a9bf769da2a80f22ddb4ee42cd16538cbad96386.json | use pointer events for indexed-textures | threejs/threejs-indexed-textures-picking.html | @@ -314,20 +314,7 @@
});
}
- canvas.addEventListener('mouseup', pickCountry);
-
- let lastTouch;
- canvas.addEventListener('touchstart', (event) => {
- // prevent the window from scrolling
- event.preventDefault();
- lastTouch = event.touches[0];
- }, {passive: false});
- canvas.addEventListener... | true |
Other | mrdoob | three.js | a9bf769da2a80f22ddb4ee42cd16538cbad96386.json | use pointer events for indexed-textures | threejs/threejs-indexed-textures-random-colors.html | @@ -360,20 +360,7 @@
});
}
- canvas.addEventListener('mouseup', pickCountry);
-
- let lastTouch;
- canvas.addEventListener('touchstart', (event) => {
- // prevent the window from scrolling
- event.preventDefault();
- lastTouch = event.touches[0];
- }, {passive: false});
- canvas.addEventListener... | true |
Other | mrdoob | three.js | d412303c4d431fc05d03a281cdbb9339720a887d.json | add note about r125 to geometry | threejs/lessons/threejs-custom-buffergeometry.md | @@ -2,6 +2,30 @@ Title: Three.js Custom BufferGeometry
Description: How to make your own BufferGeometry.
TOC: Custom BufferGeometry
+> **NOTE:** r125 removed `Geometry` from three.js.
+> Only `BufferGeometry` now exists. Further, all geometry
+> with names like `XXXBufferGeometry` has been removed
+> and only `XXX... | false |
Other | mrdoob | three.js | 817b7aad7b60039fb02a968b45724ea35995c985.json | remove custom-geometry from toc | toc.hanson | @@ -15,7 +15,6 @@
'threejs-shadows.md',
'threejs-fog.md',
'threejs-rendertargets.md',
- 'threejs-custom-geometry.md',
'threejs-custom-buffergeometry.md',
],
'tips': [ | false |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/background-v01.html | @@ -135,7 +135,7 @@
uniforms.topColor.value.copy(hemiLight.color);
scene.fog = new THREE.Fog(scene.background, fogNear, fogFar);
scene.fog.color.copy(uniforms.bottomColor.value);
- const skyGeo = new THREE.SphereBufferGeometry(4000, 32, 15);
+ const skyGeo = new THREE.SphereGeometry(4000, 32, 15);
... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/background.html | @@ -164,7 +164,7 @@
uniforms.topColor.value.copy(hemiLight.color);
scene.fog = new THREE.Fog(scene.background, fogNear, fogFar);
scene.fog.color.copy(uniforms.bottomColor.value);
- const skyGeo = new THREE.SphereBufferGeometry(3000, 32, 15);
+ const skyGeo = new THREE.SphereGeometry(3000, 32, 15);
... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-align-html-elements-to-3d.md | @@ -11,7 +11,7 @@ TOC: HTML要素を3Dに揃える
* 3Dテキストを使用する
- [プリミティブの記事](threejs-primitives.html)を見ると `TextBufferGeometry` があり、3Dテキストが作れます。
+ [プリミティブの記事](threejs-primitives.html)を見ると `TextGeometry` があり、3Dテキストが作れます。
ロゴを飛ばすには便利ですが、統計や情報、ラベル付けなどにはあまり便利でないかもしれません。
* テキストが描かれたテクスチャを使用する
@@ -406,7 +406,7 @@ min、max、lat、... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-billboards.md | @@ -87,13 +87,13 @@ label.scale.y = canvas.height * labelBaseScale;
const trunkRadius = .2;
const trunkHeight = 1;
const trunkRadialSegments = 12;
-const trunkGeometry = new THREE.CylinderBufferGeometry(
+const trunkGeometry = new THREE.CylinderGeometry(
trunkRadius, trunkRadius, trunkHeight, trunkRadialSegment... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-cameras.md | @@ -301,7 +301,7 @@ const minMaxGUIHelper = new MinMaxGUIHelper(camera, 'near', 'far', 0.1);
const sphereRadius = 3;
const sphereWidthDivisions = 32;
const sphereHeightDivisions = 16;
- const sphereGeo = new THREE.SphereBufferGeometry(sphereRadius, sphereWidthDivisions, sphereHeightDivisions);
+ const sphere... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-canvas-textures.md | @@ -176,16 +176,16 @@ const scene = new THREE.Scene();
+const bodyRadiusBottom = .2;
+const bodyHeight = 2;
+const bodyRadialSegments = 6;
-+const bodyGeometry = new THREE.CylinderBufferGeometry(
++const bodyGeometry = new THREE.CylinderGeometry(
+ bodyRadiusTop, bodyRadiusBottom, bodyHeight, bodyRadialSegments)... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-custom-geometry.md | @@ -17,7 +17,7 @@ TOC: カスタムジオメトリ
ここまで簡単なカスタムジオメトリであれば大袈裟なモデリングツールを使わずにTHREE.jsのコードで作れます。
-まずは立方体を作ってみましょう。THREE.jsの`BoxGeometry`や`BoxBufferGeometry`を使えば一発で
+まずは立方体を作ってみましょう。THREE.jsの`BoxGeometry`や`BoxGeometry`を使えば一発で
立方体を作れますが、簡単な例としてカスタムジオメトリで作ってみましょう。
THREE.jsにはカスタムジオメトリを作る方法が2つあります。1つ目は`Geometry`クラスで2つ目が`Bu... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-debugging-javascript.md | @@ -175,7 +175,7 @@ class ClearingLogger {
マウスをクリックするたびに新しい `Mesh` を追加するコードは以下の通りです。
```js
-const geometry = new THREE.SphereBufferGeometry();
+const geometry = new THREE.SphereGeometry();
const material = new THREE.MeshBasicMaterial({color: 'red'});
const things = []; | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-indexed-textures.md | @@ -66,7 +66,7 @@ pickingScene.background = new THREE.Color(0);
```js
{
const loader = new THREE.TextureLoader();
- const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
+ const geometry = new THREE.SphereGeometry(1, 64, 32);
+ const indexTexture = loader.load('resources/data/world/country-index-textur... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-lights.md | @@ -72,7 +72,7 @@ texture.repeat.set(repeats, repeats);
平面のデフォルトは縦向きなので横向きになるように回転します。
```js
-const planeGeo = new THREE.PlaneBufferGeometry(planeSize, planeSize);
+const planeGeo = new THREE.PlaneGeometry(planeSize, planeSize);
const planeMat = new THREE.MeshPhongMaterial({
map: texture,
side: THREE.DoubleS... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-multiple-scenes.md | @@ -109,7 +109,7 @@ function makeScene(elem) {
function setupScene1() {
const sceneInfo = makeScene(document.querySelector('#box'));
- const geometry = new THREE.BoxBufferGeometry(1, 1, 1);
+ const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshPhongMaterial({color: 'red'});
con... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-optimize-lots-of-objects.md | @@ -155,7 +155,7 @@ loadFile('resources/data/gpw/gpw_v4_basic_demographic_characteristics_rev10_a000
{
const loader = new THREE.TextureLoader();
const texture = loader.load('resources/images/world.jpg', render);
- const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
+ const geometry = new THREE.SphereGe... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-scenegraph.md | @@ -45,7 +45,7 @@ const objects = [];
const radius = 1;
const widthSegments = 6;
const heightSegments = 6;
-const sphereGeometry = new THREE.SphereBufferGeometry(
+const sphereGeometry = new THREE.SphereGeometry(
radius, widthSegments, heightSegments);
const sunMaterial = new THREE.MeshPhongMaterial({emissiv... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-shadertoy.md | @@ -111,7 +111,7 @@ function main() {
1, // far
);
const scene = new THREE.Scene();
- const plane = new THREE.PlaneBufferGeometry(2, 2);
+ const plane = new THREE.PlaneGeometry(2, 2);
const material = new THREE.MeshBasicMaterial({
color: 'red',
}); | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-shadows.md | @@ -58,7 +58,7 @@ const scene = new THREE.Scene();
const repeats = planeSize / 2;
texture.repeat.set(repeats, repeats);
- const planeGeo = new THREE.PlaneBufferGeometry(planeSize, planeSize);
+ const planeGeo = new THREE.PlaneGeometry(planeSize, planeSize);
const planeMat = new THREE.MeshBasicMaterial({
... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-textures.md | @@ -95,9 +95,9 @@ const loader = new THREE.TextureLoader();
{{{example url="../threejs-textured-cube-6-textures.html" }}}
ただし、全ての種類のジオメトリが複数のマテリアルに対応しているわけではないことに注意してください。
-`BoxGeometry`と`BoxBufferGeometry`は、それぞれの面に6つのマテリアルを使えます。
-`ConeGeometry`と`ConeBufferGeometry`は2つのマテリアルを使うことができ、一つは底面、一つは円錐面に適用されます。
-`CylinderG... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ja/threejs-transparency.md | @@ -191,7 +191,7 @@ function makeInstance(geometry, color, x, y, z) {
```js
const planeWidth = 1;
const planeHeight = 1;
-const geometry = new THREE.PlaneBufferGeometry(planeWidth, planeHeight);
+const geometry = new THREE.PlaneGeometry(planeWidth, planeHeight);
const loader = new THREE.TextureLoader();
@@ -258... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-align-html-elements-to-3d.md | @@ -9,7 +9,7 @@ TOC: HTML 요소를 3D로 정렬하기
* 3D 텍스트를 쓴다.
- [원시 모델에 관한 글](threejs-primitives.html)을 보면 `TextBufferGeometry`로 3D 텍스트를 만든 예제를 찾을 수 있을 겁니다. 로고에 애니메이션을 준다던가 하는 경우에는 유용하지만 상태, 정보, 이름 등을 붙이는 경우라면 오히려 불편하겠죠.
+ [원시 모델에 관한 글](threejs-primitives.html)을 보면 `TextGeometry`로 3D 텍스트를 만든 예제를 찾을 수 있을 겁니다. 로고에 애니메이... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-billboards.md | @@ -83,13 +83,13 @@ label.scale.y = canvas.height * labelBaseScale;
const trunkRadius = .2;
const trunkHeight = 1;
const trunkRadialSegments = 12;
-const trunkGeometry = new THREE.CylinderBufferGeometry(
+const trunkGeometry = new THREE.CylinderGeometry(
trunkRadius, trunkRadius, trunkHeight, trunkRadialSegment... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-cameras.md | @@ -303,7 +303,7 @@ const minMaxGUIHelper = new MinMaxGUIHelper(camera, 'near', 'far', 0.1);
const sphereRadius = 3;
const sphereWidthDivisions = 32;
const sphereHeightDivisions = 16;
- const sphereGeo = new THREE.SphereBufferGeometry(sphereRadius, sphereWidthDivisions, sphereHeightDivisions);
+ const sphere... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-canvas-textures.md | @@ -163,16 +163,16 @@ const scene = new THREE.Scene();
+const bodyRadiusBottom = .2;
+const bodyHeight = 2;
+const bodyRadialSegments = 6;
-+const bodyGeometry = new THREE.CylinderBufferGeometry(
++const bodyGeometry = new THREE.CylinderGeometry(
+ bodyRadiusTop, bodyRadiusBottom, bodyHeight, bodyRadialSegments)... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-cleanup.md | @@ -13,7 +13,7 @@ Three.js에서는 [textures](threejs-textures.html), [geometries](threejs-primit
가장 간단한 방법은 일일이 호출하는 겁니다. 초기화 시에 아래와 같이 지원을 메모리에 할당하고
```js
-const boxGeometry = new THREE.BoxBufferGeometry(...);
+const boxGeometry = new THREE.BoxGeometry(...);
const boxTexture = textureLoader.load(...);
const boxMater... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-custom-geometry.md | @@ -19,7 +19,7 @@ TOC: 사용자 지정 Geometry
만드는 게 유리할 수 있을 겁니다.
먼저 정육면체를 하나 만들어보겠습니다. 이미 원시 모델에 `BoxGeometry`와
-`BoxBufferGeometry`가 있긴 하지만, 기본 개념을 이해하는 데는 간단한 게
+`BoxGeometry`가 있긴 하지만, 기본 개념을 이해하는 데는 간단한 게
훨씬 효과적일 테니까요.
Three.js에서 사용자 지정 geometry는 `Geometry` 또는 `BufferGeometry`, | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-debugging-javascript.md | @@ -168,7 +168,7 @@ class ClearingLogger {
아래는 화면을 클릭할 때마다 `Mesh`를 추가하는 코드입니다.
```js
-const geometry = new THREE.SphereBufferGeometry();
+const geometry = new THREE.SphereGeometry();
const material = new THREE.MeshBasicMaterial({ color: 'red' });
const things = []; | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-indexed-textures.md | @@ -45,7 +45,7 @@ pickingScene.background = new THREE.Color(0);
```js
{
const loader = new THREE.TextureLoader();
- const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
+ const geometry = new THREE.SphereGeometry(1, 64, 32);
+ const indexTexture = loader.load('resources/data/world/country-index-textur... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-lights.md | @@ -73,7 +73,7 @@ texture.repeat.set(repeats, repeats);
하려면 평면을 회전시켜야 합니다.
```js
-const planeGeo = new THREE.PlaneBufferGeometry(planeSize, planeSize);
+const planeGeo = new THREE.PlaneGeometry(planeSize, planeSize);
const planeMat = new THREE.MeshPhongMaterial({
map: texture,
side: THREE.DoubleSide,
@@ -88,... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-multiple-scenes.md | @@ -107,7 +107,7 @@ function makeScene(elem) {
function setupScene1() {
const sceneInfo = makeScene(document.querySelector('#box'));
- const geometry = new THREE.BoxBufferGeometry(1, 1, 1);
+ const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshPhongMaterial({color: 'red'});
con... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-optimize-lots-of-objects.md | @@ -159,7 +159,7 @@ loadFile('resources/data/gpw/gpw_v4_basic_demographic_characteristics_rev10_a000
{
const loader = new THREE.TextureLoader();
const texture = loader.load('resources/images/world.jpg', render);
- const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
+ const geometry = new THREE.SphereGe... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-scenegraph.md | @@ -53,7 +53,7 @@ const objects = [];
const radius = 1;
const widthSegments = 6;
const heightSegments = 6;
-const sphereGeometry = new THREE.SphereBufferGeometry(
+const sphereGeometry = new THREE.SphereGeometry(
radius, widthSegments, heightSegments);
const sunMaterial = new THREE.MeshPhongMaterial({emissiv... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-shadertoy.md | @@ -80,7 +80,7 @@ function main() {
1, // far
);
const scene = new THREE.Scene();
- const plane = new THREE.PlaneBufferGeometry(2, 2);
+ const plane = new THREE.PlaneGeometry(2, 2);
const material = new THREE.MeshBasicMaterial({
color: 'red',
}); | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-shadows.md | @@ -70,7 +70,7 @@ const scene = new THREE.Scene();
const repeats = planeSize / 2;
texture.repeat.set(repeats, repeats);
- const planeGeo = new THREE.PlaneBufferGeometry(planeSize, planeSize);
+ const planeGeo = new THREE.PlaneGeometry(planeSize, planeSize);
const planeMat = new THREE.MeshBasicMaterial({
... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-textures.md | @@ -100,9 +100,9 @@ const loader = new THREE.TextureLoader();
{{{example url="../threejs-textured-cube-6-textures.html" }}}
주의해야할 점은 모든 `geometry`가 재질을 배열로 받진 않는다는 점입니다.
-`BoxGeometry`나 `BoxBufferGeometry`는 최대 6개, `ConeGeometry`와
-`ConeBufferGeometry`는 밑면과 뿔 부분에 하나씩 최대 2개, `CylinderGeometry`와
-`CylinderBufferGeomet... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-transparency.md | @@ -195,7 +195,7 @@ Three.js의 분류 기준은 고정적인 듯합니다. `side: THREE.BackSide` m
```js
const planeWidth = 1;
const planeHeight = 1;
-const geometry = new THREE.PlaneBufferGeometry(planeWidth, planeHeight);
+const geometry = new THREE.PlaneGeometry(planeWidth, planeHeight);
const loader = new THREE.TextureLoader();
@@ -... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/kr/threejs-voxel-geometry.md | @@ -34,7 +34,7 @@ for (let y = 0; y < cellSize; ++y) {
다음으로 모든 블럭을 돌면서 0이 아닐 경우 정육면체를 새로 만듭니다.
```js
-const geometry = new THREE.BoxBufferGeometry(1, 1, 1);
+const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshPhongMaterial({ color: 'green' });
for (let y = 0; y < cellSize; ++y) { | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/resources/threejs-cameras.js | @@ -13,15 +13,15 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
const width = 8;
const height = 8;
const depth = 8;
- return addShape('hsl(150,100%,40%)', new THREE.BoxBufferGeometry(width, height, depth));
+ return addShape('hsl(150,100%,40%)', new THREE.BoxGe... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/resources/threejs-fog.js | @@ -16,7 +16,7 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
const width = 4;
const height = 3;
const depth = 10;
- const geometry = new THREE.BoxBufferGeometry(width, height, depth);
+ const geometry = new THREE.BoxGeometry(width, height, depth);
const material = new THREE.... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/resources/threejs-lights.js | @@ -21,17 +21,17 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
const makeScene = function() {
const cubeSize = 4;
- const cubeGeo = new THREE.BoxBufferGeometry(cubeSize, cubeSize, cubeSize);
+ const cubeGeo = new THREE.BoxGeometry(cubeSize, cubeSize, cubeSize);
const cubeMat = ne... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/resources/threejs-lots-of-objects.js | @@ -20,7 +20,7 @@ import {GUI} from '../../../3rdparty/dat.gui.module.js';
const root = new THREE.Object3D();
const size = 3;
- const geometry = new THREE.BoxBufferGeometry(size, size, size);
+ const geometry = new THREE.BoxGeometry(size, size, size);
geometry.applyMatrix4(new THREE.Matrix4().mak... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/resources/threejs-materials.js | @@ -4,7 +4,7 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
{
function makeSphere(widthDivisions, heightDivisions) {
const radius = 7;
- return new THREE.SphereBufferGeometry(radius, widthDivisions, heightDivisions);
+ return new THREE.SphereGeometry(radius, widthDivisions, heightDivisi... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/resources/threejs-textures.js | @@ -24,7 +24,7 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
function filterCube(scale, texture) {
const size = 8;
- const geometry = new THREE.BoxBufferGeometry(size, size, size);
+ const geometry = new THREE.BoxGeometry(size, size, size);
const material = new THREE.MeshBasicMat... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/resources/threejs-voxel-geometry.js | @@ -25,7 +25,7 @@ import {threejsLessonUtils} from './threejs-lesson-utils.js';
for (let y = 0; y < height; ++y) {
for (let z = 0; z < depth; ++z) {
for (let x = 0; x < width; ++x) {
- const geometry = new THREE.BoxBufferGeometry(1, 1, 1);
+ const geometry = ne... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ru/threejs-cameras.md | @@ -313,7 +313,7 @@ const minMaxGUIHelper = new MinMaxGUIHelper(camera, 'near', 'far', 0.1);
const sphereRadius = 3;
const sphereWidthDivisions = 32;
const sphereHeightDivisions = 16;
- const sphereGeo = new THREE.SphereBufferGeometry(sphereRadius, sphereWidthDivisions, sphereHeightDivisions);
+ const sphere... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ru/threejs-custom-geometry.md | @@ -13,7 +13,7 @@ TOC: Пользовательская Geometry
Тем не менее, бывают случаи, когда мы можем захотеть сгенерировать нашу собственную трехмерную геометрию в коде вместо использования пакета моделирования.
-Сначала давайте просто сделаем куб. Хотя Three.js уже предоставляет нам `BoxGeometry` и `BoxBufferGeometry`, ... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ru/threejs-debugging-javascript.md | @@ -193,7 +193,7 @@ class ClearingLogger {
Вот код, который добавляет новую сетку каждый раз, когда мы щелкаем мышью
```js
-const geometry = new THREE.SphereBufferGeometry();
+const geometry = new THREE.SphereGeometry();
const material = new THREE.MeshBasicMaterial({color: 'red'});
const things = []; | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ru/threejs-lights.md | @@ -80,7 +80,7 @@ texture.repeat.set(repeats, repeats);
XY, но земля находится в плоскости XZ, поэтому мы вращаем ее.
```js
-const planeGeo = new THREE.PlaneBufferGeometry(planeSize, planeSize);
+const planeGeo = new THREE.PlaneGeometry(planeSize, planeSize);
const planeMat = new THREE.MeshPhongMaterial({
map: ... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ru/threejs-multiple-scenes.md | @@ -114,7 +114,7 @@ function makeScene(elem) {
function setupScene1() {
const sceneInfo = makeScene(document.querySelector('#box'));
- const geometry = new THREE.BoxBufferGeometry(1, 1, 1);
+ const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshPhongMaterial({color: 'red'});
con... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ru/threejs-optimize-lots-of-objects.md | @@ -162,7 +162,7 @@ loadFile('resources/data/gpw/gpw_v4_basic_demographic_characteristics_rev10_a000
{
const loader = new THREE.TextureLoader();
const texture = loader.load('resources/images/world.jpg', render);
- const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
+ const geometry = new THREE.SphereGe... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ru/threejs-scenegraph.md | @@ -51,7 +51,7 @@ const objects = [];
const radius = 1;
const widthSegments = 6;
const heightSegments = 6;
-const sphereGeometry = new THREE.SphereBufferGeometry(
+const sphereGeometry = new THREE.SphereGeometry(
radius, widthSegments, heightSegments);
const sunMaterial = new THREE.MeshPhongMaterial({emissiv... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ru/threejs-shadows.md | @@ -59,7 +59,7 @@ const scene = new THREE.Scene();
const repeats = planeSize / 2;
texture.repeat.set(repeats, repeats);
- const planeGeo = new THREE.PlaneBufferGeometry(planeSize, planeSize);
+ const planeGeo = new THREE.PlaneGeometry(planeSize, planeSize);
const planeMat = new THREE.MeshBasicMaterial({
... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/ru/threejs-textures.md | @@ -96,7 +96,7 @@ const loader = new THREE.TextureLoader();
{{{example url="../threejs-textured-cube-6-textures.html" }}}
Однако следует отметить, что по умолчанию единственной геометрией, которая поддерживает
-несколько материалов, является `BoxGeometry` и `BoxBufferGeometry`. В других случаях вам
+несколько мат... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-align-html-elements-to-3d.md | @@ -11,7 +11,7 @@ each with pluses and minuses.
* Use 3D text
- If you look at the [primitives article](threejs-primitives.html) you'll see `TextBufferGeometry` which
+ If you look at the [primitives article](threejs-primitives.html) you'll see `TextGeometry` which
makes 3D text. This might be useful for flyi... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-billboards.md | @@ -91,13 +91,13 @@ all the trees will share
const trunkRadius = .2;
const trunkHeight = 1;
const trunkRadialSegments = 12;
-const trunkGeometry = new THREE.CylinderBufferGeometry(
+const trunkGeometry = new THREE.CylinderGeometry(
trunkRadius, trunkRadius, trunkHeight, trunkRadialSegments);
const topRadius ... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-cameras.md | @@ -318,7 +318,7 @@ row.
const sphereRadius = 3;
const sphereWidthDivisions = 32;
const sphereHeightDivisions = 16;
- const sphereGeo = new THREE.SphereBufferGeometry(sphereRadius, sphereWidthDivisions, sphereHeightDivisions);
+ const sphereGeo = new THREE.SphereGeometry(sphereRadius, sphereWidthDivisions, s... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-canvas-textures.md | @@ -180,16 +180,16 @@ First let's make the shared geometry.
+const bodyRadiusBottom = .2;
+const bodyHeight = 2;
+const bodyRadialSegments = 6;
-+const bodyGeometry = new THREE.CylinderBufferGeometry(
++const bodyGeometry = new THREE.CylinderGeometry(
+ bodyRadiusTop, bodyRadiusBottom, bodyHeight, bodyRadialSegm... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-cleanup.md | @@ -30,7 +30,7 @@ You could do this manually. At the start you might create
some of these resources
```js
-const boxGeometry = new THREE.BoxBufferGeometry(...);
+const boxGeometry = new THREE.BoxGeometry(...);
const boxTexture = textureLoader.load(...);
const boxMaterial = new THREE.MeshPhongMaterial({map: textur... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-custom-geometry.md | @@ -22,7 +22,7 @@ Still, there are times when we might want to generate our own
3D geometry in code instead of using a modeling package.
First let's just make a cube. Even though three.js already
-provides us with `BoxGeometry` and `BoxBufferGeometry` a
+provides us with `BoxGeometry` and `BoxGeometry` a
cube is e... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-debugging-javascript.md | @@ -203,7 +203,7 @@ examples from the article on [making things responsive](threejs-responsive.html)
Here's the code that adds a new `Mesh` every time we click the mouse
```js
-const geometry = new THREE.SphereBufferGeometry();
+const geometry = new THREE.SphereGeometry();
const material = new THREE.MeshBasicMater... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-indexed-textures.md | @@ -76,7 +76,7 @@ picking scene.
```js
{
const loader = new THREE.TextureLoader();
- const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
+ const geometry = new THREE.SphereGeometry(1, 64, 32);
+ const indexTexture = loader.load('resources/data/world/country-index-texture.png', render);
+ indexTextu... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-lights.md | @@ -80,7 +80,7 @@ to insert it in the scene. Planes default to being in the XY plane
but the ground is in the XZ plane so we rotate it.
```js
-const planeGeo = new THREE.PlaneBufferGeometry(planeSize, planeSize);
+const planeGeo = new THREE.PlaneGeometry(planeSize, planeSize);
const planeMat = new THREE.MeshPhongM... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-multiple-scenes.md | @@ -110,7 +110,7 @@ function makeScene(elem) {
function setupScene1() {
const sceneInfo = makeScene(document.querySelector('#box'));
- const geometry = new THREE.BoxBufferGeometry(1, 1, 1);
+ const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshPhongMaterial({color: 'red'});
con... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-optimize-lots-of-objects.md | @@ -170,7 +170,7 @@ And the code to set it up.
{
const loader = new THREE.TextureLoader();
const texture = loader.load('resources/images/world.jpg', render);
- const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
+ const geometry = new THREE.SphereGeometry(1, 64, 32);
const material = new THREE.MeshB... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-scenegraph.md | @@ -53,7 +53,7 @@ const objects = [];
const radius = 1;
const widthSegments = 6;
const heightSegments = 6;
-const sphereGeometry = new THREE.SphereBufferGeometry(
+const sphereGeometry = new THREE.SphereGeometry(
radius, widthSegments, heightSegments);
const sunMaterial = new THREE.MeshPhongMaterial({emissiv... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-shadertoy.md | @@ -121,7 +121,7 @@ function main() {
1, // far
);
const scene = new THREE.Scene();
- const plane = new THREE.PlaneBufferGeometry(2, 2);
+ const plane = new THREE.PlaneGeometry(2, 2);
const material = new THREE.MeshBasicMaterial({
color: 'red',
}); | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-shadows.md | @@ -73,7 +73,7 @@ a `MeshBasicMaterial` as we don't need lighting for the ground.
const repeats = planeSize / 2;
texture.repeat.set(repeats, repeats);
- const planeGeo = new THREE.PlaneBufferGeometry(planeSize, planeSize);
+ const planeGeo = new THREE.PlaneGeometry(planeSize, planeSize);
const planeMat = n... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-textures.md | @@ -97,9 +97,9 @@ It works!
{{{example url="../threejs-textured-cube-6-textures.html" }}}
It should be noted though that not all geometry types supports multiple
-materials. `BoxGeometry` and `BoxBufferGeometry` can use 6 materials one for each face.
-`ConeGeometry` and `ConeBufferGeometry` can use 2 materials, one... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-transparency.md | @@ -203,7 +203,7 @@ We'll [add a texture](threejs-textures.html) to each plane.
```js
const planeWidth = 1;
const planeHeight = 1;
-const geometry = new THREE.PlaneBufferGeometry(planeWidth, planeHeight);
+const geometry = new THREE.PlaneGeometry(planeWidth, planeHeight);
const loader = new THREE.TextureLoader();... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-voxel-geometry.md | @@ -38,7 +38,7 @@ I then walked through all the cells and if they were not
0 I created a mesh with a cube.
```js
-const geometry = new THREE.BoxBufferGeometry(1, 1, 1);
+const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshPhongMaterial({color: 'green'});
for (let y = 0; y < cellSize;... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/threejs-webvr-look-to-select.md | @@ -147,14 +147,14 @@ const cursorColors = new Uint8Array([
const cursorTexture = makeDataTexture(cursorColors, 2, 1);
```
-We'll then use that texture on a `TorusBufferGeometry`
+We'll then use that texture on a `TorusGeometry`
```js
const ringRadius = 0.4;
const tubeRadius = 0.1;
const tubeSegments = 4;
co... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/zh_cn/threejs-lights.md | @@ -60,7 +60,7 @@ texture.repeat.set(repeats, repeats);
接着我们创建一个平面几何体,一个材质,再用这两个作为参数,创建一个 `Mesh` 对象并且添加到场景中。因为创建的平面默认是在 XY 平面上(竖直平面),我们希望得到一个 XZ 平面(水平平面),所以我们将他旋转 90°。
```js
-const planeGeo = new THREE.PlaneBufferGeometry(planeSize, planeSize);
+const planeGeo = new THREE.PlaneGeometry(planeSize, planeSize);
const... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/zh_cn/threejs-scenegraph.md | @@ -30,7 +30,7 @@ const objects = [];
const radius = 1;
const widthSegments = 6;
const heightSegments = 6;
-const sphereGeometry = new THREE.SphereBufferGeometry(
+const sphereGeometry = new THREE.SphereGeometry(
radius,
widthSegments,
heightSegments | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/lessons/zh_cn/threejs-textures.md | @@ -85,7 +85,7 @@ const loader = new THREE.TextureLoader();
{{{example url="../threejs-textured-cube-6-textures.html" }}}
-但需要注意的是,并不是所有的几何体类型都支持多种材质。`BoxGeometry` 和 `BoxBufferGeometry` 可以使用6种材料,每个面一个。`ConeGeometry` 和 `ConeBufferGeometry` 可以使用2种材料,一种用于底部,一种用于侧面。 `CylinderGeometry` 和 `CylinderBufferGeometry` 可以使用3种... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/threejs-align-html-elements-to-3d-globe-too-many-labels.html | @@ -86,7 +86,7 @@
{
const loader = new THREE.TextureLoader();
const texture = loader.load('resources/data/world/country-outlines-4k.png', render);
- const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
+ const geometry = new THREE.SphereGeometry(1, 64, 32);
const material = new THREE.Mesh... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/threejs-align-html-elements-to-3d-globe.html | @@ -87,7 +87,7 @@
{
const loader = new THREE.TextureLoader();
const texture = loader.load('resources/data/world/country-outlines-4k.png', render);
- const geometry = new THREE.SphereBufferGeometry(1, 64, 32);
+ const geometry = new THREE.SphereGeometry(1, 64, 32);
const material = new THREE.Mesh... | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/threejs-background-separate-scene-bad-aspect.html | @@ -82,7 +82,7 @@
const bgTexture = loader.load('resources/images/daikanyama.jpg');
let bgMesh;
{
- const plane = new THREE.PlaneBufferGeometry(2, 2);
+ const plane = new THREE.PlaneGeometry(2, 2);
const material = new THREE.MeshBasicMaterial({
map: bgTexture,
depthTest: false, | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/threejs-background-separate-scene.html | @@ -82,7 +82,7 @@
const bgTexture = loader.load('resources/images/daikanyama.jpg');
let bgMesh;
{
- const plane = new THREE.PlaneBufferGeometry(2, 2);
+ const plane = new THREE.PlaneGeometry(2, 2);
const material = new THREE.MeshBasicMaterial({
map: bgTexture,
depthTest: false, | true |
Other | mrdoob | three.js | 99e1625bfbaee81e7abc6506222eaaec4bb08535.json | Change all XXXBufferGeometry to XXXGeometry | threejs/threejs-billboard-labels-w-sprites-adjust-height.html | @@ -57,13 +57,13 @@
const bodyRadiusBottom = .2;
const bodyHeight = 2;
const bodyRadialSegments = 6;
- const bodyGeometry = new THREE.CylinderBufferGeometry(
+ const bodyGeometry = new THREE.CylinderGeometry(
bodyRadiusTop, bodyRadiusBottom, bodyHeight, bodyRadialSegments);
const headRadius = bod... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.