Any way to Hide a camera

Everything related to 3D programming
pfaber11
Enthusiast
Enthusiast
Posts: 145
Joined: Sat Apr 13, 2019 12:17 pm

Any way to Hide a camera

Post 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 .
User avatar
DK_PETER
Addict
Addict
Posts: 898
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: Any way to Hide a camera

Post 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()
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
pfaber11
Enthusiast
Enthusiast
Posts: 145
Joined: Sat Apr 13, 2019 12:17 pm

Re: Any way to Hide a camera

Post by pfaber11 »

Thanks for the advice I will check out your suggestions .
User avatar
pf shadoko
Enthusiast
Enthusiast
Posts: 291
Joined: Thu Jul 09, 2015 9:07 am

Re: Any way to Hide a camera

Post 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)
Post Reply