Day and Night Cycle - Quick Setup

Ғылым және технология

Join our in-person XR Hackathon in Berlin and win up to $25k in funding and prizes 👉🏽: www.xrcc.events/
Want to build a fulfilling and well paid career in AR/VR (Spatial Computing)? 👀
Our best tips, strategies, and secrets from teaching AR and VR since 2016 - everything distilled in one Free Course 👉🏽: bit.ly/48MBgT0
Learn to create a stunning day and night cycle in Unity for your VR game without programming complexity. Utilize a simple script to control the sun's rotation and adjust lighting colors dynamically.
Do you want to land your dream job in AR/VR? 👉🏽 bit.ly/3NnTAsh
Fantasy Forest Environment - Free Demo👇🏽👇🏽
assetstore.unity.com/packages...
Are you serious about becoming an XR Developer?
Check out learn.immersive-insiders.com/
✅ XR Programming & Design Courses
✅ Private Discord community
✅ Optional 1on1 Coaching
✅ Interactive Live Classes
✅ and much more
🔔Subscribe to our channel to get started in AR/VR for Development, Business, Design, and much, much more: 👉 / @dineshpunni
🔻Let's connect!
Website: immersive-insiders.com/
LinkedIn: / univrsitas
🔻Let's collaborate!
If you have any questions leave them in the comments below,
for business inquiries contact us via e-mail: dinesh@dineshpunni.com
Timestamps:
00:00 - Introduction
00:27 - Unity Project Explained
00:44 - Scene Setup
01:06 - Creating Skybox
01:29 - Day and Night Cycle
06:54 - Testing in Editor
07:30 - Testing in VR
08:01 - Final thoughts

Пікірлер: 23

  • @artdesireboutique
    @artdesireboutiqueАй бұрын

    Great script, tahnks. Would be nice if you could update with the ability to switch skybox at night?

  • @JadTawbi
    @JadTawbi10 ай бұрын

    Awesome tutorial Ashray! Such a neat and easy video to follow! 🤩 Never thought of using gradients that way 💯

  • @immersiveinsiders

    @immersiveinsiders

    10 ай бұрын

    Glad you liked it!!

  • @i_sirojiddinov
    @i_sirojiddinov5 ай бұрын

    that's exactly what I wanted to do, thank you bro

  • @eashaankumar
    @eashaankumar9 ай бұрын

    Just what I needed for my URP voxel game!

  • @Praveenkumar-jb3wd
    @Praveenkumar-jb3wd10 ай бұрын

    This is fanstastic usage of the Gradient bro😮 And Thanks for the knowledge And for midnight we can still use some other mild colors like blur or grey to get some feel Because the sky wont be black in anyof the time in real world. So it might help

  • @immersiveinsiders

    @immersiveinsiders

    10 ай бұрын

    Your welcome :) Yes, those are some of the things you can do as well depending on the type of environment.

  • @technicalchapter725
    @technicalchapter7257 ай бұрын

    i am using my own cubemap skybox but it's not effecting lights of skybox , that remain unchange? please ans

  • @immersiveinsiders

    @immersiveinsiders

    7 ай бұрын

    This will not work with Skybox directly, you will have to access the Skybox material instead of the environment color and change the colors over there.

  • @teebrokn8502
    @teebrokn85026 ай бұрын

    Hi, so how do you change the speed of the sun itself? thanks!

  • @immersiveinsiders

    @immersiveinsiders

    5 ай бұрын

    You can change the value of the variable 'sunRotationSpeed'. Checkout 2:25.

  • @dicemagic0
    @dicemagic02 ай бұрын

    how to get interaction rig and does this system will work like that like shown in video??

  • @immersiveinsiders

    @immersiveinsiders

    2 ай бұрын

    Hi, you need to setup your project for VR using Meta SDK or XRITK. Yes it works like how it's in the video.

  • @petrolmann
    @petrolmannАй бұрын

    how do you add clouds and to a skybox like the one youre using

  • @immersiveinsiders

    @immersiveinsiders

    Ай бұрын

    In the video we are using procedural skybox, so can't add clouds. However you can use a cubemap with clouds and edits it tint via script to get the day and night effect.

  • @petrolmann

    @petrolmann

    Ай бұрын

    @@immersiveinsiders alright. thanks

  • @galberger3937
    @galberger39378 ай бұрын

    Hi how to use skybox with this?

  • @immersiveinsiders

    @immersiveinsiders

    8 ай бұрын

    I think you'll have to access the 'tint color' of the skybox material you are using and modify that.

  • @Catalyst254
    @Catalyst2543 ай бұрын

    How do I make my Visual Studio have Intellisense?

  • @immersiveinsiders

    @immersiveinsiders

    3 ай бұрын

    You go to Edit -> Preferences -> External Tool. Here, you need to choose Visual Studio as 'External Script Editor'

  • @Catalyst254

    @Catalyst254

    3 ай бұрын

    @@immersiveinsiders okay

  • @biocronic2986
    @biocronic29863 ай бұрын

    Which language is this?

  • @immersiveinsiders

    @immersiveinsiders

    3 ай бұрын

    C#

Келесі