Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Hide object only in certian cameras

Author
Message
headcrab 53
18
Years of Service
User Offline
Joined: 14th Jul 2005
Location:
Posted: 18th Jul 2005 05:33
Is there a way to hide objects only on certian cameras? I'm making a FPS, and I want a weapon model to show up in one camera, and a character model to show up in other cameras and mirrors. Is there a way to do this?

If you can read this, you are over qualified.
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 18th Jul 2005 08:55
as far as i'm aware this is impossible, unless you partially duplicate the scene so far away from camera 1 that camera 1 or 2 cant see the other scene...

My Website:
Pheonixx
20
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Columbus, Ohio
Posted: 18th Jul 2005 10:01
Good information on setting a camera to an image. I don't know exactly what you're asking.

http://forum.thegamecreators.com/?m=forum_view&t=57376&b=1

http://ausukusa.breakset.com
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 18th Jul 2005 10:40
I don't think this is possible, but certain things (such as BSP maps) can only be visible from one camera at a time (at least last time I looked at those commands). Most objects are visible from all cameras.

Just wondering, why do you want different cameras to see only certain objects. Maybe there is another way around.

-Xol

XolTech, Ltd: IonRay IDE for DBPro in progress
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 18th Jul 2005 22:19
I'm guessing its a split screen game where the left camera only needs to see player 2 and the right camera only needs to see player 1...

My Website:
headcrab 53
18
Years of Service
User Offline
Joined: 14th Jul 2005
Location:
Posted: 18th Jul 2005 22:53
Part of the game is split screen. I could duplicate the scene for that part. What I wanted to do was be able to see your whole character in a mirror or other cameras, say a surveillance camera, but not in the main camera, so if you look down, you can't see your feet.

If you can read this, you are over qualified.
Pheonixx
20
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Columbus, Ohio
Posted: 19th Jul 2005 05:09
oh... well now I know what your asking... I'll have to try some different things to figure that one out... good coding challenge

http://ausukusa.breakset.com
Pheonixx
20
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Columbus, Ohio
Posted: 19th Jul 2005 06:17 Edited at: 19th Jul 2005 06:23
I have a solution.



Adjust the second camera's range so that it is just beyond the radius of the player object. That code should run by itself

edit : disappears between the range of 105 and 115 in that example :p

http://ausukusa.breakset.com
Avan Madisen
21
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 19th Jul 2005 06:21
Hiding objects from individual cameras has been requested in the past, so I think TGC might be looking into, or they have already, or forgotten. Anyway, this has been discussed and there are a lot of uses for it.

I don't suffer from insanity - I enjoy every minute of it!
Current Projects: Lemmings Remake
(Untitled) SciFi RPG
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 19th Jul 2005 06:29 Edited at: 19th Jul 2005 06:30
This might be a little complicated and perhaps slow, but you might be able to:
- have sync on
* DO
- show player object
- capture camera image from mirror camera (cameraMirrorImage)
- hide player object
- texture mirror with cameraMirrorImage
- sync
* LOOP

Hope this works

-Xol

XolTech, Ltd: IonRay IDE for DBPro in progress

Login to post a reply

Server time is: 2024-04-23 17:29:32
Your offset time is: 2024-04-23 17:29:32