آموزش نورپردازی یونیتی ایران
154 subscribers
2.64K photos
442 videos
143 files
192 links
در این کانال نمونه کارهای آقای زنجیران قرار میگیرد
Download Telegram
از قلق هایی که بهتون بگم:
من طرفدار بازی کیلزون هستم...
کیلزون و کرایسیس:

1. نور خورشید شدتش رو زیاد کنید. بیلتین رو 2-3 و یو ارپی 3-5

2. نور خورشید نارنجی و دم غروب خیلی خوبه. و دم ظهر و رنگ زرد. برفی رنگ سفید

3. نور آسمون رو تاریکتر کنید صحنه حجم بگیره

4. از مه محیطی با پارتیکل استفاده کنید که قبلا اموزش دادم... رنگش بر اساس اتمسفر

5. لنز فلر و Shaft رو تکسچر استفاده کنید

6. گیاهان مهمن... قبلا رایگان فرستادم همینارو... Translucency هم حتما باید باشه روبه خورشید تاریک نشن و واقعی بشن گیاهان
❤4
Forwarded from Deleted Account
Media is too big
VIEW IN TELEGRAM
آموزش مه محیطی فیک برای موبایل
#علی_زنجیران
❤4
دود در یونیتی URP
❤3
Media is too big
VIEW IN TELEGRAM
نتیجه کار بر روی اسلحه امروز
❤3
using UnityEngine;

public class HeadBobController : MonoBehaviour
{
// Adjust these values in the Inspector to fine-tune the effect
public float amplitude = 0.01f; // The height of the bob
public float frequency = 10.0f; // The speed of the bob
public Transform cameraHolder; // Reference to the CameraHolder GameObject

private Vector3 startPosition;

void Start()
{
// Record the camera's original local position
startPosition = cameraHolder.localPosition;
}

void Update()
{
if (Input.GetAxis("Vertical") != 0)
{
// Use a sine wave to create a smooth, looping bobbing motion
float bobbingAmount = Mathf.Sin(Time.time * frequency) * amplitude;
// Apply the bobbing only to the Y axis (up and down)
cameraHolder.localPosition = startPosition + new Vector3(0, bobbingAmount, 0);
}
else
{
// If not moving, smoothly return the camera to its starting position
cameraHolder.localPosition = Vector3.Lerp(cameraHolder.localPosition, startPosition, Time.deltaTime * frequency);
}
}
}
❤2
آموزش نورپردازی یونیتی ایران
using UnityEngine; public class HeadBobController : MonoBehaviour { // Adjust these values in the Inspector to fine-tune the effect public float amplitude = 0.01f; // The height of the bob public float frequency = 10.0f; // The speed of the bob…
حرکت دوربین (سر کارکتر) با حرکت
HeadBobController
بالا و پایین میشه دوربین... مثلا قدم زدن رو شبیه سازی میکنه

مقدار cameraHolder رو باید پرنت دوربین رو بدید
❤3
using UnityEngine;

namespace NewTechnology
{
public class WeaponSway : MonoBehaviour
{
[Header("Sway Settings")]
[HideInInspector] public float smooth = 7f;
[HideInInspector] public float intensity = 1f;

[HideInInspector] public float mouseX;
[HideInInspector] public float mouseY;

public void Update_MouseInput(float x, float y)
{
mouseX = x * intensity;
mouseY = y * intensity / 2;
}

void Update()
{

// calculate target rotation
Quaternion rotationX = Quaternion.AngleAxis(-mouseY, Vector3.right);
Quaternion rotationY = Quaternion.AngleAxis(mouseX, Vector3.up);

Quaternion targetRotation = rotationX * rotationY;

// rotate
transform.localRotation = Quaternion.Slerp(transform.localRotation, targetRotation, smooth * Time.deltaTime);
}
}
}
❤1
آموزش نورپردازی یونیتی ایران
using UnityEngine; namespace NewTechnology { public class WeaponSway : MonoBehaviour { [Header("Sway Settings")] [HideInInspector] public float smooth = 7f; [HideInInspector] public float intensity = 1f; [HideInInspector]…
اینم با چرخش دوربین اسلحه نرم دنبال میکنه دوربین رو بر اساس مقدار MouseX و MouseY باید بهش پاس بدید
این اسکریپت رو بدید به مدل اسلحه

بهش WeaponSway میگن
❤4
این گزینه رو برای هر پروژه جدیدی که ایجاد کردید بزنید
جرینگی وارد Play Mode میشه
از قدیم اینجور بود چند ساله گزاشتن خیلی رو اعصابه

هیچ مشکلی نمی خورید یساله رو این ده تا بازی ساختم شاید بیشتر
❤4
دشمن جدید قراره بیاد...
🔥2
FPS_3.apk
183.4 MB
تستش کنید رو قوشی ها تون گیم پلی رو
صداگزاری نشده هنوز
👍1
ساخت تکسچر:
https://gemini.google.com/

دستور:
highway 3 lines road texture flat top down view
👍1