Тёмный

How to make this work? (Unity Multiplayer Survival Devlog #7) 

ZuzeloApps
Подписаться 24 тыс.
Просмотров 2,9 тыс.
50% 1

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

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@CoolDude2054iscool
@CoolDude2054iscool Год назад
I don’t know a lot about coding, but maybe a solution would be if the camera detects an object below it the camera moves down or something like that?
@Zuzelo
@Zuzelo Год назад
I am afraid this might be nauseating if the camera would constantly switch up and down. It is still worth trying
@glumpfi
@glumpfi Год назад
You could shoot a ray from the player to the camera position and when the ray hits an object, the camera temporarily moves right below that position of the nearest object. So it would zoom in in the same direction as before, but with no obstacles in the way. When there is free sight again, the camera moves away to the old distance. You could animate that smoothly instead of jumping
@Zuzelo
@Zuzelo Год назад
True, but I imagine in a place with many trees that would still cause the camera to go up and down constantly. But it might be worth trying tho. Will also check how other games with similar camera controll are dealing with it
@glumpfi
@glumpfi Год назад
@@Zuzelo Yeah that could cause some annoying camera jumping. Another idea that came up: In case the camera just got newly covered, the camera could move opposite to the direction the obstacle moved into the view (which should be the same angle as the player moves?), but only for smaller corrections like for leaves and branches. When the camera correction gets too strong, the camera jumps close to the player like in the previous idea (when big rocks block or you are inside a cave or something)
@Zuzelo
@Zuzelo Год назад
@@glumpfi hm, I wonder how that would work in a cave or house. Having some smart algorithm for moving the camera could indeed help, but might be tricky get it to work :D
@frinno2319
@frinno2319 Год назад
@@Zuzelo maybe you could modify the tree model and put a big transparent shape on all the leaf volume, so the camera will move depending on this shape instead of all the small leafs
@marcboss
@marcboss Год назад
Nice video
@Zuzelo
@Zuzelo Год назад
Damn you fast xD
@marcboss
@marcboss Год назад
@@Zuzelo I would be even faster if RU-vid didn't glitch, also will you add resources to collect like wood,rocks etc?
@yourwindowsdog
@yourwindowsdog 10 месяцев назад
maybe make a bubbel that around the camera that make every disapear what is in the bubbel
@plateddragon
@plateddragon Год назад
Try shooting a ray from the player to the camera frame and anything touching the ray has its opacity lowered
@Zuzelo
@Zuzelo Год назад
That is kinda what I tried doing, but I am not sure how to decrease the opacity for an existing shader (which I think doesnt have it as a parameter)
@Aunixi
@Aunixi Год назад
Maybe you also could add an 1st person so you can switch between diffrent camera szenes
@Zuzelo
@Zuzelo Год назад
It could be an option to have different areas on the map change the camera size, but would be nice to have a more robust solution
@Aunixi
@Aunixi Год назад
With 1st person you dont have problems with the camera not showing the the player or being inside a tree or rock
@Zuzelo
@Zuzelo Год назад
@@Aunixi Yeah true, but I think there is some charm when it comes to 3rd person view :D But making it first person would be an option indeed
@Dack-i
@Dack-i Год назад
I don’t know much about code but maybe you can make it so the trees don’t render when it is like that or an auto zoom
@Zuzelo
@Zuzelo Год назад
Yeah, not rendering the tree could be an option, but I am not yet sure how to do that in unity (especially if I want to render only a part of the tree)
@Dack-i
@Dack-i Год назад
@@Zuzelo hmm another possibility would be auto zoom and to prevent going up and down in forest maybe make an x radius for something above you and If there is a tree then it will go down and only when nothing is abowe in that radius it will come up
@heemoo1732
@heemoo1732 Год назад
Make the camera like that of don't starve
@person4579
@person4579 Год назад
Nice video
@Zuzelo
@Zuzelo Год назад
Nice comment!
Далее
They Dared Me To Make A Game...
12:08
Просмотров 1,1 млн
I Spend 200 Hours Training AI to Build Sandcastles
12:17
I Built The First LAMINAR FLOW ROCKET ENGINE
15:51
Просмотров 1,8 млн
6 Years of Learning Game Development
9:02
Просмотров 2,4 млн
It's Hard To Make Games
18:01
Просмотров 237 тыс.
The biggest lie in video games
15:18
Просмотров 1,9 млн
87 Minecraft Build Hacks That Require 0% Skill
30:56
Просмотров 87 тыс.
I Learned 3D Game Development
11:28
Просмотров 312 тыс.
I Tried Illegal Minecraft Mods
20:15
Просмотров 1,6 млн
Shooting The Player Across Space - Devlog 1
6:41
Просмотров 322 тыс.
AI Learns to Run Faster than Usain Bolt | World Record
10:22