Тёмный

How to Create Day and Night Cycle in Unity HDRP 2022 | Tutorial | HDRP | 

Seta - Level Design
Подписаться 4 тыс.
Просмотров 4 тыс.
50% 1

Hi:) This time I have prepared a tutorial for you on how to create a day and night effect in Unity HDRP. Because I wanted this tutorial to not only be about creating a basic script that rotates two light sources and turn shadows off and on, but to be more extensive, I had to divide it into several parts. So in this tutorial we will deal with the day cycle and in the next one the night cycle, so after completing the tutorials each of you will be able to create a fully working day and night cycle controller in Unity HDRP. Have a nice week:)
🌓Second part of this tutorial:
Day and Night Cycle in Unity- Part 2: • Day and Night Cycle in...
- My English is not very good but I hope it won't disturb you too much:)
- 4K is only there to increase the bitrate of the movie, and to prevent RU-vid from completely killing the details of the scene.
⭐Instead of repeating the steps from the tutorial, you can buy the upgraded versions of this controller here:
►[HDRP] Day/Night Cycle: assetstore.unity.com/packages...
⭐By buying this asset you support the channel :)
►Drag&Drop Volumes: assetstore.unity.com/packages...
How to Create Day and Night Cycle in Unity HDRP 2022 | Tutorial | HDRP |
📝 Assets used in this video:
►Book Of The Dead: Environment | HDRP : assetstore.unity.com/packages...
🎵 Music from:
Uppbeat: uppbeat.io/?referral=to-xh35s
🎬Timeline:
Soon...
#unity #hdrp #tutorial #daynightcycle #unityhdrp #unity3d #seta

Опубликовано:

 

19 ноя 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@adriank8792
@adriank8792 6 месяцев назад
I appreciate you making those tutorials
@SetaLevelDesign
@SetaLevelDesign 6 месяцев назад
On Monday I will post the second part of this tutorial, so it will be complete:)
@rizwanmubarik2953
@rizwanmubarik2953 7 месяцев назад
Remarkable as always ❤❤❤
@SetaLevelDesign
@SetaLevelDesign 7 месяцев назад
Thank you, I hope it will be useful to someone:)
@adammed8667
@adammed8667 7 месяцев назад
Thanks. This is helpful indeed
@SetaLevelDesign
@SetaLevelDesign 7 месяцев назад
I'm glad that the tutorial, even though it's only partial, has been useful to you:)
@tannos2023
@tannos2023 7 месяцев назад
Great and usefull tutorial, thanks for sharing 🤗
@SetaLevelDesign
@SetaLevelDesign 7 месяцев назад
For now, only the day cycle, but the second part will also include night:)
@vaproject7411
@vaproject7411 7 месяцев назад
Thank you!
@SetaLevelDesign
@SetaLevelDesign 6 месяцев назад
You're welcome:)
@Nuttygamer27
@Nuttygamer27 6 месяцев назад
just letting you know and its pretty clear but you can't use bake GI on the direction light since it's dynamic but you can turn on real time gi to still get GI effect or you can use ssgi in the volume and place down reflection probes around the scean so it can fall back to those if an object is off screen or being block
@SetaLevelDesign
@SetaLevelDesign 6 месяцев назад
Bake GI is definitely out of the question in the case of a moving light. The best in this case is SSGI but unfortunately at the cost of performance:(
@drischi2379
@drischi2379 7 месяцев назад
Great video! Do you think you can do a tutorial on how to create a realistic terrtain/landscape in HDRP?
@SetaLevelDesign
@SetaLevelDesign 7 месяцев назад
Do you mean just creating the terrain or all its aspects such as vegetation, lighting, etc.?
@drischi2379
@drischi2379 7 месяцев назад
@@SetaLevelDesign since you already made great tutorials about lightning, I would love to see more about terrain and vegetation :D
@_Ganjatobi
@_Ganjatobi Месяц назад
Nice approach and love the custom aspects of this. Would it possible to utilize this is a URP setup? I have attempted to modify it, and whist a lot of the core structure works, UniversalAdditionalLightData does not contain an intensity property. Would there be an alternative way for this?
@SetaLevelDesign
@SetaLevelDesign Месяц назад
Add private void Start() { sunLightComponent = sunLight; moonLightComponent = moonLight; } And then in UpdateLight() you don't use sunlightData only: sunLightComponent.intensity = sunIntensityCurve * sunIntensity; moonLightComponent.intensity = moonIntensityCurve * moonIntensity;
@Logicalflap
@Logicalflap 7 месяцев назад
Since you made this can you make a tutorial about Light's (street Light's) circle so as in day they stay off and in the night they turn on please NOTE: do it for built in too
@Logicalflap
@Logicalflap 7 месяцев назад
Sorry for my bad English
@SetaLevelDesign
@SetaLevelDesign 7 месяцев назад
Theoretically, you can create a separate script that takes the Time from this script and then sets the active gameobject in which the lights are grouped at a specific time. But I have to check, because I don't remember what in build-in looks like with reflection probe and baked light.
@WarrenMalas-ee2rv
@WarrenMalas-ee2rv 2 месяца назад
hey, thanks for this tutorial, i added " ((currentTime % 1) * 3600).ToString("00");" for display seconds but it's don't work. Can you help me please
@SetaLevelDesign
@SetaLevelDesign 2 месяца назад
If we want to get seconds, we first take our currentTime and multiply it by the number of seconds in an hour, i.e. 3600, and then divide it by 60:) So the line of code will look like this: currentTimeString = Mathf.Floor(currentTime).ToString("00") + ":" + Mathf.Floor((currentTime * 60) % 60).ToString("00") + ":" + Mathf.Floor((currentTime * 3600) % 60).ToString("00");
@WarrenMalas-ee2rv
@WarrenMalas-ee2rv 2 месяца назад
@@SetaLevelDesign Thank you for the quick reply. seconds run up to 60 but minutes change to 30 seconds
@SetaLevelDesign
@SetaLevelDesign 2 месяца назад
sorry, my mistake, I didn't have a way to check it yesterday, I've already corrected the script above, check if it works now:)
@WarrenMalas-ee2rv
@WarrenMalas-ee2rv 2 месяца назад
@@SetaLevelDesign last question, do you have any tips for managing sunset and sunrise times?
@ROCKSMASHER
@ROCKSMASHER 7 месяцев назад
Hey I want to ask something i am working on a game and its open world/story so can u give me basic idea how does these maps works?
@SetaLevelDesign
@SetaLevelDesign 7 месяцев назад
I'm sorry but I didn't understand the question. Can you describe it to me more?
@ROCKSMASHER
@ROCKSMASHER 7 месяцев назад
i am asking that i am working on a game and i am trying to build this map i just want a basic knowledge how do u make maps@@SetaLevelDesign
@touseefahmad7119
@touseefahmad7119 7 месяцев назад
Thank you so much, I was realy finding a video for this. as now a days I'm working on day night cycle in my game I'm working on. and I got video of you. Definately my game will have best cycle now. 🙂🙂
@SetaLevelDesign
@SetaLevelDesign 7 месяцев назад
I was also looking for a tutorial on RU-vid about the day and night cycle that would have everything you need in such a controller,. Because there was no point in me doing the same tutorial as on other channels. But I didn't find such a video, so I thought that a tutorial that would, for example, control light temperature, light intensity, star rotation and a few other functions might be useful to someone, so it's worth making it:)
@ROCKSMASHER
@ROCKSMASHER 7 месяцев назад
U are learning coding 🫡
@SetaLevelDesign
@SetaLevelDesign 7 месяцев назад
Slowly, although I don't enjoy it as much as creating scenes, but there are some things that can't be done without coding:)
@ROCKSMASHER
@ROCKSMASHER 7 месяцев назад
yup@@SetaLevelDesign
Далее
DAY & NIGHT CYCLE in Unity using HDRP (2019.3)
23:41
Просмотров 42 тыс.
Rain And Snow Reflection Test ;), Unity HDRP
2:05
Просмотров 1,4 тыс.
Creating a Day/Night Cycle (Unity Tutorial)
20:28
Просмотров 42 тыс.
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 460 тыс.
Unity DAY AND NIGHT In 6 Minutes!
6:31
Просмотров 95 тыс.
Lighting & rendering tutorial for HDRP | Unite Now 2020
1:08:32