CodingTrain / CodingTrain/Suggestion-Box

3D mapping

オープン
#993 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
570
フォーク
85
PR マージ指標
30日以内にマージされた PR はありません

説明

Im working on a project and i have an issue, i dont know if its possible to do in processing. I've made a Globe and i want to map different points on it. I dont know if im explaining myself, but basically i want to put different points on my globe indicating specific data like for example population, this point must be different in size and colour depending on how large the population is linking it to the data document.

This is what i have so far, but i dont know how to map on a sphere. Thanks in advance.

```
float rotx = PI/4;
float roty = PI/4;
float rotz = PI/4;
PShape tierra;
PImage texturaTierra;

int x = 0;
int y = 0;
int z = 0;


void setup() {
size(800,600,P3D);

noStroke();
fill(255);
sphereDetail(200);

texturaTierra = loadImage("Tierra.jpg");
tierra = createShape(SPHERE,150);
tierra.setTexture(texturaTierra);

}
void draw() {

background(0);
lights();

pushMatrix(); //esfera
translate(width/2,height/2);
rotateX(rotx);
rotateY(roty);
shape(tierra);
popMatrix();

}

void mouseDragged() {
float rate = 0.005; //velocidad de rotacion
rotx += (pmouseY-mouseY) * rate;
roty += (mouseX-pmouseX) * rate;
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

提供されている唯一のエントリーポイントは inline Processing sketch で、現在はテクスチャ付きの地球儀を作成して回転させています。まず座標マッピングとデータドキュメントの形式を明確にしてください。データに応じてサイズと色が決まる人口ポイントが地球儀上に表示されれば、完了とします。

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

評価

領域
computer-graphics, data-visualization
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

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

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