Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OpenGL で円を作成しようとしていますが、三角形のファンを使用できません。これは、directx では使用できなくなったことを読んだためです。また、directx 呼び出しも行う予定です。
三角形のストリップの仕組みがよくわかりませんでした。私のすべての実装には穴や奇妙な癖がありました。誰かがここで私を助けてくれますか?どうすれば最善の方法で実装できますか?
また、それぞれ 1000 個の三角形を持つ 10 個の円としましょう。それは多くの違いを生むでしょうか?
for each phi in (-PI, Pi) //ommit the first and last one x1 = r * sin(phi) y1 = r * cos(phi) x2 = r * sin(phi + Pi) y2 = r * cos(phi + Pi) add (x1, y1) add (x2, y2)
上記の疑似コードのように円の片側を上下にジグザグする代わりに、これは円の中心を横切ってジグザグします。これにより、より完全な円が得られます。