M3G
/* 描画処理 */ try { g3.bindTarget(g); g3.render(w); g3.resetLights(); g3.render(group2, transform9);//特定オブジェクト } catch (Throwable h) { h.printStackTrace(); } finally { g3.releaseTarget(); }特定オブジェクトだけ光を当てない方法を発…
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…
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の角度変えるということは 天地の角度を変えると同意 注意されたし
public void setAttenuation(float constant, float linear, float quadratic) 光源の減衰に関するパラメータを設定します。このメソッドによる設定内容は、光源のタイプが OMNI または SPOT のときに限り反映されます。以下の数式により、減衰する量が定義…
世界はこんなにも単純にできている 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…
ぷりみていぶ 【プリミティブ】 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 和訳するならグーグル…