2009-01-01から1年間の記事一覧
http://urana.info/mobile/midp/index.htmlハイスコアの登録でお世話になりました
public final Object3D duplicate() Creates a duplicate of this Object3D.Duplication has no effect on this object or any other existing object; it merely creates one or more new objects.As a general rule, a duplicate object will have exactly…
http://www.atmarkit.co.jp/fjava/index/index_android.html ゲームとかつくってみたり
g3.releaseTarget();のあと2Dの制御をいれたらいい
/* 描画処理 */ try { g3.bindTarget(g); g3.render(w); g3.resetLights(); g3.render(group2, transform9);//特定オブジェクト } catch (Throwable h) { h.printStackTrace(); } finally { g3.releaseTarget(); }特定オブジェクトだけ光を当てない方法を発…
setRenderingEnablepublic void setRenderingEnable(boolean enable) Sets the rendering enable flag of this Node. The effective rendering enable status for this node is the logical AND of the enable flags on this node and all its ancestors. Th…
postTranslateはその場所からの移動 setTranslationはその場所に瞬間移動
javax.microedition.m3g.Texture2D public static final int FILTER_BASE_LEVEL 208 public static final int FILTER_LINEAR 209 public static final int FILTER_NEAREST 210 public static final int FUNC_ADD 224 public static final int FUNC_BLEND 225…
setFilteringpublic void setFiltering(int levelFilter, int imageFilter) Selects the filtering mode for this Texture2D. The available filtering modes are defined in the class description. Note that this setting is only a hint -- implementati…
setUserObjectpublic void setUserObject(java.lang.Object userObject) Associates an arbitrary, application specific Object with this Object3D. The given user object replaces any previously set object. See the class description for more infor…
postRotateQuat ( float qx, float qy, float qz, float qw ) を利用すると、四元数を用いた回転も可能です。四元数?何それおいしいの? ウィキおいときますね "http://ja.wikipedia.org/wiki/四元数"
Groupの角度変えるということは 天地の角度を変えると同意 注意されたし
java.io.IOException: no ':' in URL at javax.microedition.m3g.Loader.loadHelper(+375) at javax.microedition.m3g.Loader.load(+17)これ前もでたけどなんだったけ?こたえ:m3gファイルが存在しない m3gファイルが壊れてるから、つくりなおせ
public void setAttenuation(float constant, float linear, float quadratic) 光源の減衰に関するパラメータを設定します。このメソッドによる設定内容は、光源のタイプが OMNI または SPOT のときに限り反映されます。以下の数式により、減衰する量が定義…
try-catchを増やせば掴めるようになる可能性あり
postRotate ( float angle, float ax, float ay, float az ) 対象となるモデルに対し、ベクトル ( ax, ay, az ) を軸として angle の分だけ回転を行います。 angle の単位は度 ( degree ) です。このとき回転行列は対象となる行列に対し右から掛けられます。…
setTransformするまえに postTranslateしたほうがいい
setIdentityは setTransformするなら 使うな あと、setIdentityしたものの設定が 優先されるから cameraの設定とか無視される場合あり
キー入力 http://urana.info/mobile/midp/keyinput.html >MIDPではキー入力の方法がいくつか存在します。いくつか存在していて一体どれを使えば良いのか混乱してしまいそうなので、順番に説明していきます。
世界はこんなにも単純にできている http://www.forum.nokia.com/infocenter/index.jsp?topic=/Java_Developers_Library/GUID-07274ED2-697C-4987-ABE9-7FFE82605633/javax/microedition/m3g/World.html
postMultiplypublic void postMultiply(Transform transform) Multiplies this transformation from the right by the given transformation. The contents of this transformation are replaced with the result. Denoting this transformation by M and th…
vertex arrayは頂点配列
ぷりみていぶ 【プリミティブ】 primitive3Dグラフィックソフトで、モデリングに使われる基本形状。本来は平面、円柱、円錐、球などの単純な数式で定義できる形状のことだが、3Dグラフィックソフトでは平面の組み合わせである立方体もプリミティブとしている…
だれかしてくれぇ〜
setOrientationpublic void setOrientation(float angle, float ax, float ay, float az) Sets the orientation component of this Transformable. The orientation is specified such that looking along the rotation axis, the rotation is angle degrees…
getTranslationpublic void getTranslation(float[] xyz) Retrieves the translation component of this Transformable.Parameters: xyz - a float array to fill in with (tx ty tz) Throws: java.lang.NullPointerException - if xyz is null java.lang.Il…
この仕様は、 J2ME用の携帯電話の3DグラフィックスのAPI ( M3G )を定義します。 http://www.forum.nokia.com/infocenter/index.jsp?topic=/Java_Developers_Library/GUID-07274ED2-697C-4987-ABE9-7FFE82605633/overview-summary.html 和訳するならグーグル…
携帯Java以外にもJava3Dの解説やAppletゲームなどがあります。 Yamazaki's Home Page 非常に完成度が高いJavaゲームを多数公開されています。もちろん携帯Javaも。 Overflow! 非公式のAPIリファレンスが非常に役立ちます。
http://www.antun.net/ アプレットのゲーム、 携帯でも遊べる Web ゲーム、 Java3D、 モバイル、 ゲームプログラミング の情報、などを公開しています。
MIDP + com.mascotcapsuleパッケージ ( MascotCapsule V3 API ) 用のサンプルを掲載しています。 サンプルデータがダウンロードできます。 対応環境 : Sony Ericsson端末、WILLCOM端末 http://www.mascotcapsule.com/ja/samples/comdot_v3/index.php