Page 1 of 1
Any way to Hide a camera
Posted: Fri Nov 29, 2019 11:53 pm
by pfaber11
Is there a way to hide a camera . I've tried moving it off the screen out of view but that doesn't seem to work. I need the camera turned on and working but don't want to see it on screen. I've made it as small as possible but ideally would like it invisible . I'm using it as a sighting system for my game and it works very well with the fov set to 1 . It's very accurate and does the job but as small as it is it is still visible and about the size of the letter m so not huge . I've moved it to the corner of the screen and it's not obvious but I would rather it be off screen or invisible . Thanks for reading .
Re: Any way to Hide a camera
Posted: Sat Nov 30, 2019 2:44 pm
by DK_PETER
You can't move a camera off creen and doing so would make no sense.
You can create, switch and free cameras.
Using a camera as a sighting system as you describe it, is not the way to to go.
Take a look at the following functions:
BodyPick(), MousePick(), MouseRaycast(), Raycast() and RayCollide()
Re: Any way to Hide a camera
Posted: Sat Nov 30, 2019 9:32 pm
by pfaber11
Thanks for the advice I will check out your suggestions .
Re: Any way to Hide a camera
Posted: Thu Feb 06, 2020 3:16 pm
by pf shadoko
I'm not sure I understand your needs, but maybe the createRenderTexture function will suit you:
it allows to copy the content of the camera into a texture (the camera is not displayed on the screen)