テクスチャー
初期化とフルスクリーンモードを組み込んだスケルトンが出来たので色々OpenGLのテストをしてみようということでまずはテクスチャーを貼ってみた(いきなり?)。
とりあえず立方体を描いてみる。のっぺらーとした立方体が描かれた。
んでもってイメージを読み込む。Cocoaの場合、NSImageRepの
+ (id)imageRepWithContentsOfFile:(NSString *)filename;
が便利ですな。JPEGだろうがBMPだろうがPNGだろうがイメージを読み込んでくれるのでらくちん。その昔JPEGを読み込む関数を自力で作ってたのが懐かしい。
テクスチャーもなんとなく貼れるようになったので次はいよいよフィールドを作ってみようかな〜。Mac OS X 10.0の頃、サンプルコードのディレクトリにGLUTのサンプルが豊富にあってその中に紙飛行機がふわふわ空を飛ぶサンプルがあったんだけど最近入ってないのね。地形の描画やアンジュレーション等の処理が参考になります。
結局どんな形式でデータをさしあげればいいのかしらん。
ちっと調べましたがよくわかりまへん。
.md3ファイルってなんだろね?
DXFってのもありなのかと。よくわからんけど。
YES! I finally found this site! I've been searching for this post for so long!!
Not too sure how I stumbled upon your blog but glad I did find it. Think I was seeking for something else on google. Not sure I agree 100% with what you say, but have bookmaked and will pop back to read to see if you add any extra posts. Carry on the very good work.
YES! I finally found this site! I've been seeking for this post for so long!!
Well written post!!!
Not too sure how I came across this blog but glad I did find it. Think I was looking for something else on google. Not certain I agree 100% with what you say, but have bookmaked and will pop back to read to see if you add any more posts. Carry on the very good work.
This domain appears to recieve a large ammount of visitors. How do you promote it? It gives a nice unique spin on things. I guess having something authentic or substantial to give info on is the most important thing.
Simply great. As usual.
Dude! This website is cool. How can I make it look this good !?