Hi,
this is the second time i ask some help here.
I am trying to build a game based of a single room
in the center of the room there is a pivot for the camera that turns
around with the mouse axis. (see the picture, i know it’s blender, it’s just
for example to let you understand what i mean)
Now.. the room has 4 walls and i want to make disappear the
one in front of the camera view.
i tried something , i made the walls with a material that fades (thanks
to a tutorial found on youtube)
but it didn’t works well because it makes disappear the wall only partially.
i tried to change all the parameters with no success.
I wonder if someone of you, knows a simple way to make a wall in front of the
camera view disappearing completely and come back when the camera
moves away.
I hope that i wrote it clear.. maybe i try to add some other detail:
the room has 4 walls (each one is a static mesh) in the
center of the room there is an actor with attached a spring arm
and the camera. the camera turn around that center.
i need to make disappear the wall in front of the camera, so the
player can see what is happening inside the room.
When the camera moves and turn around that wall must be re appear
and the next one disappear. so the point of view is always free for the player,
free to see inside the room.
imagine a box where a side, the side you look at, disappear,
when you turn around the box the previous side you looked
reappeared and the new one, you stare at, disappear.
how can i do that ?
i will be very grateful for any possible suggestion or help.
You’ll want to setup a fade component, with fade in and out functions, add it to the player actor, and attach a collision box to the camera, or a perhaps a box from the camera to the focal point. On overlap, from actor pin: pass actor to fade components “fade function”> get static mesh component>get the material, save it as a reference variable in the fade component, set it’s material to an “invisible” one, on end overlap just reverse that and reassign the original material with a “make normal” function in the fade component
1 Like
sound a bit complicated for me (i am a beginner) but i will try for sure..
you said ‘‘fade component’’ , there is already one or i must create it by my own ?
anyway thanks for the help
If your willing to shell out a few dollars you can buy one in the market. I just made my own though. I’ll try to hop on after work tonight and post my BP for it
1 Like