دوستان کسی radcial blur برای unity3d سراغ نداره؟:19: ببخشید یکم صدام بلند شد:31:
Printable View
دوستان کسی radcial blur برای unity3d سراغ نداره؟:19: ببخشید یکم صدام بلند شد:31:
منظورت از Radical Blur اينه كه بازيت مثل عكس زير بشه ؟نقل قول:
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
اگه منظورت همينه ، بله ..
آبجكت Main Camera رو انتخاب كن و از منوي Component به بخش Image Effect برو و Blur رو انتخاب كن
يه خورده آموزش در مورد Blur :
نقل قول:
Blur image effect
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
Blur image effect blurs the rendered image in real-time.
As with the other image effects, Blur is only available in Unity Pro. Make sure to have the Pro Standard Assets installed.
Blur effect applied to the sceneProperties
IterationsThe amount of blurriness desired. Higher iteration count makes the image more blurry, but each additional iteration has some performance cost. Blur SpreadHigher values will spread out the blur more at the same iteration count, but at some expense in quality. Usually values from 0.6 to 0.7 are a good compromise between quality and speed. Hardware support
Blur effect works only on graphics cards with support for pixel shaders (2.0). Eg. GeForce FX 5200 or Radeon 9500 and up. All image effects automatically disable themselves when they can not run on an end-users graphics card.
Motion Blur image effect
Motion Blur image effect enhances fast-moving scenes by leaving "motion trails" of previously rendered frames.
As with the other image effects, Blur is only available in Unity Pro. Make sure to have the Pro Standard Assets installed.
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
Motion Blur effect applied to the rotating scene
Blur AmountHow much of the previous frames to leave in the image. Higher values make longer motion trails. Extra BlurIf checked, this makes motion trails more blurry, by applying some extra blur to previous frames. Tips:
- Motion Blur only works while in play mode because it's time based.
Hardware support
Motion Blur effect works all graphics cards that support rendering to a texture. E.g. GeForce2, Radeon 7000 and up. All image effects automatically disable themselves when they can not run on an end-users graphics card.
آپدیت جدید یونیتی Unity Update 3.0.0b4
کد:http://beta.unity3d.com/download/8824405765/UnitySetup_update-3.0.0b4.exe
كد ريجستر ميخواد ؟نقل قول:
فکر کنم مثل اون نسخه قبلی باشهنقل قول:
باید کرک بشه
رجیستر می خواد.دانلود نکنید!
آقا من وقتی میخواهم یک شی بسازم یک clone از همون شی
میاد از همون شی این اسکرپیت ساخته شده یک کپی می سازه ولی من می خوام از prefab به نام myObject بسازمکد:
var myObject = Transform;}
function Update () {
if (Input.GetButtonDown("Fire1")) {
Instantiate(newObject, transform.position, transform.rotation);
}
ولی وقتی
از شی که می خواهم می سازم ولی یک عیب وجود داره که شی حتما در زمان اجرای دستور در قسمت herewincty وجود داشته باشه.کد:
var myObject = GameObject.Find("Cooper");
function Update () {
if (Input.GetButtonDown("Fire1")) {
Instantiate(newObject, transform.position, transform.rotation);
دوستان لطفا کمک کنید:11:
چرا برای تعریف دوم از تابع Find استفاده کرده مثل روش اول استفاده کن. و در قسمت آبجکت بهش prefab رو از assest explorer درگ کن . البته باید قبلش prefab رو ساخته باشه و توی assest هات موجود باشه.
این تعریفت هم برای این ایراد داره که ممکن که موقعی که تعریف متغیر myobject رخ می ده قبل از ایجاد شی cooper باشه بنابراین چیزی پیدا نمی کنه و خطا می ده.
پرنس جان تو تعریف دوم cooper قبلا ساخته شده و تو بازی وجود داره این کد کار می کنه مشکلی نداره فقط شی حتما وجود داشته باشه می خوام شی از prefab خودم بسازم میاد از شی که اسکرپیت توش اجرا شده یک کپی می زنه برای مثال وقتی این کد رو Main Camera اجرا می کنم یکی کپی Main Camera تحویلم می ده
این کدی که شما نوشتید به طور کلی اشتباه است!نقل قول:
کد کامل :
یاکد:var myObject : Transform;
private var newObject : Transform;
function Update(){
if (Input.GetButtonDown("Fire1")) {
newObject = Instantiate( myObject , transform.position , transform.rotation );
}
}
کد:var myObject : Transform;
function Update(){
if (Input.GetButtonDown("Fire1")) {
var newObject : Transform;
newObject = Instantiate( myObject , transform.position , transform.rotation );
}
}