Hide Entity help

Everything related to 3D programming
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Hide Entity help

Post by Samuel »

OK, first off i have two cameras active at the same time. I'm trying to make a entity invisible on one camera and at the same time have that entity visible on the other.
Unfortunately the HideEntity command makes it invisible on all cameras. So I'm curious if there is another way of accomplishing this.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Hide Entity help

Post by IdeasVacuum »

Can you temporary put something in the foreground, close to the camera, so that the entity cannot be seen?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Hide Entity help

Post by Samuel »

Unfortunately no, There are other things that both cameras need to see (at the same time) so i cant block the cameras. That idea may come in handy for the future, but
I don't think it will work for this.
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: Hide Entity help

Post by PMV »

The only possibility is to create the scene twice. As because 2 cameras
still need to be rendered 2 times it makes no big performance difference if
you have 2x the whole scene. You need only to beware that you will use
the same meshs for your entites for both scene. Don't know what impact
it will have for creating the terrain 2 times if needed.

MFG PMV
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Hide Entity help

Post by Samuel »

Thanks, I'll give that a try and see what happens performance wise.
User avatar
Comtois
Addict
Addict
Posts: 1429
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: Hide Entity help

Post by Comtois »

Have a look at VisibilityMask.pb example (5.00 beta 3)
Please correct my english
http://purebasic.developpez.com/
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Re: Hide Entity help

Post by Poshu »

Comtois is like a 3D superhero °_°;
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Hide Entity help

Post by Samuel »

I just checked it out and looks like it will solve my problem. Thanks for the help.
Post Reply