Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Specify the view on model contents

オープン
#72 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
html, javascript
領域
frontend, web-dev

調査の方向性

この issue と、既に提案されている JavaScript の setCamera 構文から始めます。提案されている pivot/origin オブジェクトとオプションパラメーターの動作を確認し、その後、議論で合意された方向性があるかを確認します。完了とは、ビュー制御 API とそのセマンティクスが実装に十分な明確さで仕様化されていることを意味します。

索引モデルが issue の本文から書いたものです。

説明

At TPAC we discussed the necessity to point the view into a <model> element at specific locations within it, e.g. to focus on specific features of a car.

We also agreed that for both reasons of complexity for the author and compatibility across platforms, that supplying view information like a 4x4 projection matrix were not appropriate. Instead, to follow something closer to the style indicated with the existing proposed JS syntax, i.e setCamera({pitch:10, yaw:10, scale:1}).

My suggestion is to specify an {x,y,z} object as an optional origin or pivot parameter on that setCamera call:

myShelf.setCamera( { 
  pitch:0, 
  yaw:20, 
  scale:1, 
  pivot: {x:0, y:1, z:0}
} );

and in fact for the other parameters to be made optional as well, with the presumption that no supplied value implies to retain the same one.

主要言語
HTML
スター
86
フォーク
14
平均マージ
2日 1時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

immersive-web/model-element のほかの issue

immersive-web/model-element の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。