2011-07-01から1ヶ月間の記事一覧
Enter current password for root (enter for none): Enter
Type. mysql_install_db It maybe solve the problem.
ライトにcookieを付加 http://unity3d.com/support/documentation/Components/class-Light.html ディスコのライトに使えそう! 追記: Build SettingsのPlatformがAndroidなどの携帯端末だと ライト機能が弱くなり、ライトのCookieは使えない。 「なんでCooki…
草のような柔らかいものにbump mappingしても、簡単にはうまくいかないようです。 (gimp normalmap pluginでnormap map画像を生成)
http://www.plustarnet.com/aspil/Programming/console01.htm windows用のプログラムをcygwinで動かしてみた。表示が崩れた.. conio.hがなくてgetch, kbhitが使えなかったので getch linuxなどで検索して使えるようにして動かした。#include <stdio.h> #include <termios.h> #inc</termios.h></stdio.h>…
from google test sample #ifndef GTEST_SAMPLES_SAMPLE1_H_ #define GTEST_SAMPLES_SAMPLE1_H_ // Returns n! (the factorial of n). For negative n, n! is defined to be 1. int Factorial(int n); // Returns true iff n is a prime number. bool IsPrim…
前提:サーバーでPHPが動いているwinscpでUPする. アクセスすると RuntimeError - Error message : Directory is not found or not writable (DATA_DIR) などと言われるのでwinscpから書き込み権限を変更する 下を参考に、書くフォルダの権限を変更する。 77…
edit modeでadd modifier > mirrorして object modeでmodifier > applyしたらそこでミラーは切れる。 途中までミラーで作って、最後に左右で変化をつけたい時や ボーンを入れるときなどにapplyすればよい。
sceneをまたいで状態保存→DontDestroyOnLoad()
blenderで作り、unityで動作確認。 ローポリの剣を作って複製した後、 片方をハイポリにしてスカルプトした。
runicalp Ctrl + Alt + Numpad 0で 現在の視点にカメラを移動できますがそういうことですか RT @peroon: 【Blenderの質問】編集画面からの視点で レンダリングって、できないでしょうか? #Blender
Unity側で「手のSphere」の子に「武器」をセットすればよいと思っていたが 武器が動かなかった。 アニメーション中、Sphereの座標は動いていないようだった。 Boneの座標は動いていたので、Boneの子に武器をセットしたら武器が追従した。 しかし画像のような…
GIMPで脱色しようとしたら上記のようなエラー。 画像>モード>RGBにすればOK.
骨付きのモデルが必要→フリーであります http://u3d.as/content/mixamo/zombie-character-pack/1sK http://d.hatena.ne.jp/gumilab/20110426/1303798974
function Start () { for (var y = 0; y < 5; y++) { for (var x = 0; x < 5; x++) { var cube = GameObject.CreatePrimitive(PrimitiveType.Cube); cube.AddComponent(Rigidbody); cube.transform.position = Vector3 (x, y, 0); } } } //add it to GameObj…
function OnMouseEnter () { renderer.material.color = Color.red; } //attach this script to cube or so.
// Moves all transform children 10 units upwards! for (var child : Transform in transform) { child.Translate(0, 10, 0); } //他オブジェクトとのやり取り //http://unity3d.com/support/documentation/ScriptReference/index.Accessing_Other_Game_Ob…
Tagsを展開してElementに書く。
ビルなど、動かないものはStaticにチェックしておくと オクルージョンカリングによりパフォーマンスが上がるhttp://unity3d.com/support/documentation/Components/class-GameObject.html
GetComponent / SendMessage
//数字が大きい方が動いているときは、そちらが優先して再生される。 function Start () { animation[“idle”].layer = -2; animation["attack01"].layer = 1; }
http://unity3d.com/support/documentation/ScriptReference/GameObject.SendMessage.html // Calls the function ApplyDamage with a value of 5 gameObject.SendMessage ("ApplyDamage", 5.0); // Every script attached to the game object // that has a…
良い順 GAME LIFE http://www.game-damashi.com/ .. ..
ステージの選択方法 = プレイヤーが落ちる
アセット(プレハブやシーン)を右クリック>export package マテリアルでテクスチャを貼ったのなども反映されるので Unityコミュニティの人たちで共有するには良い形式
Application.CaptureScreenshot()
Camera.main.ScreenPointToRay(Input.mousePosition);
file > build settings リスト内にプロジェクトタブからシーンファイルをドラッグアンドドロップ
概要:serversman@vps にwordpress 3.2 を導入する方法です。 yum install 'php*' yum install mysql-server //http://d.hatena.ne.jp/deeeki/20100606/serversman_apache_setting //mysqlのDBを作る必要があるらしい.. service mysqld start mysql //mysql…