じろうの公開メモ

自分用のメモ置き場です

2009-07-01から1ヶ月間の記事一覧

Androidアプリ作成入門

http://www.atmarkit.co.jp/fjava/index/index_android.html ゲームとかつくってみたり

g3.releaseTarget

g3.releaseTarget();のあと2Dの制御をいれたらいい

特定オブジェクトだけ光を当てない方法

M3G

/* 描画処理 */ try { g3.bindTarget(g); g3.render(w); g3.resetLights(); g3.render(group2, transform9);//特定オブジェクト } catch (Throwable h) { h.printStackTrace(); } finally { g3.releaseTarget(); }特定オブジェクトだけ光を当てない方法を発…

setRenderingEnable

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の違い

M3G

postTranslateはその場所からの移動 setTranslationはその場所に瞬間移動

javax.microedition.m3g.Texture2D

M3G

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…

setFiltering

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…

setUserObject

M3G

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

M3G

postRotateQuat ( float qx, float qy, float qz, float qw ) を利用すると、四元数を用いた回転も可能です。四元数?何それおいしいの? ウィキおいときますね "http://ja.wikipedia.org/wiki/四元数"

Groupの角度

M3G

Groupの角度変えるということは 天地の角度を変えると同意 注意されたし

java.io.IOException: no ':' in URL

java.io.IOException: no ':' in URL at javax.microedition.m3g.Loader.loadHelper(+375) at javax.microedition.m3g.Loader.load(+17)これ前もでたけどなんだったけ?こたえ:m3gファイルが存在しない m3gファイルが壊れてるから、つくりなおせ

setAttenuation

public void setAttenuation(float constant, float linear, float quadratic) 光源の減衰に関するパラメータを設定します。このメソッドによる設定内容は、光源のタイプが OMNI または SPOT のときに限り反映されます。以下の数式により、減衰する量が定義…

MIDPでの、uncaughtの例外について

try-catchを増やせば掴めるようになる可能性あり

m3gの関数

postRotate ( float angle, float ax, float ay, float az ) 対象となるモデルに対し、ベクトル ( ax, ay, az ) を軸として angle の分だけ回転を行います。 angle の単位は度 ( degree ) です。このとき回転行列は対象となる行列に対し右から掛けられます。…

setTransform

setTransformするまえに postTranslateしたほうがいい

setIdentity

setIdentityは setTransformするなら 使うな あと、setIdentityしたものの設定が 優先されるから cameraの設定とか無視される場合あり

モバイルの素 MIDP Scroll

キー入力 http://urana.info/mobile/midp/keyinput.html >MIDPではキー入力の方法がいくつか存在します。いくつか存在していて一体どれを使えば良いのか混乱してしまいそうなので、順番に説明していきます。

Class World

M3G

世界はこんなにも単純にできている http://www.forum.nokia.com/infocenter/index.jsp?topic=/Java_Developers_Library/GUID-07274ED2-697C-4987-ABE9-7FFE82605633/javax/microedition/m3g/World.html

postMultiply

M3G

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

vertex arrayは頂点配列

プリミティブ

M3G

ぷりみていぶ 【プリミティブ】 primitive3Dグラフィックソフトで、モデリングに使われる基本形状。本来は平面、円柱、円錐、球などの単純な数式で定義できる形状のことだが、3Dグラフィックソフトでは平面の組み合わせである立方体もプリミティブとしている…

Demo3Dの解説

だれかしてくれぇ〜

setOrientation

M3G

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…

getTranslation

M3G

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…

Mobile 3D Graphics API

この仕様は、 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リファレンスが非常に役立ちます。

Welcome to Atsushi's Homepage

http://www.antun.net/ アプレットのゲーム、 携帯でも遊べる Web ゲーム、 Java3D、 モバイル、 ゲームプログラミング の情報、などを公開しています。

MIDP + com.mascotcapsuleパッケージ ( MascotCapsule V3 API )

MIDP + com.mascotcapsuleパッケージ ( MascotCapsule V3 API ) 用のサンプルを掲載しています。 サンプルデータがダウンロードできます。 対応環境 : Sony Ericsson端末、WILLCOM端末 http://www.mascotcapsule.com/ja/samples/comdot_v3/index.php

jadの設定について

MIDlet-1: hello, hello.png, myMIDlet MIDlet-Jar-Size: 1303 MIDlet-Jar-URL: hello.jar MIDlet-Name: hello MIDlet-Vendor: Sun Microsystems MIDlet-Version: 1.0 MIDlet-OCL: JSCL-1.0.0MIDlet-1:の後の、helloはMidletName名その次はアイコン名無けれ…

930 バッチとantを使ったjad,jarの作成方法

http://notitle.net/vappli/930.htmlVodafoneで動くゲームを作ろうって