Conditional Visibility

Discussion, tutorials,hints and tips relating to designing military ai aircraft.
Post Reply
aerogator

Conditional Visibility

Post by aerogator »

Hey guys, I've been thinking about conditional visibility because of a model I'm working on, and wondered if it would be possible to make an entire model visible/invisible? Reason being, you could have a bunch of a/c parked in hangers that would become visible only when time for taxi-out and take off, hence not wasting computing power. (Of course this is all based on whether the computer still draws the invisible part, which I don't know :? ) I know we all like to see a lot of parked aircraft, but I also know, especially with GA airports, there are a lot more aircraft there than you can see.

This all may not even be necessary or even possible but I thought it might be worth discussion. :)
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2770
Joined: 11 Aug 2006, 22:15
Version: FS9
Location: Sydney

Post by Weescotty »

You could try using the TIMEOFDAY XML option perhaps.

Of course all parts would need to be tied to a single poly/part that has the condition applied to it.
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12136
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Post by Firebird »

Just for info sake, wouldn't an object still be rendered even if its invisible?

I realise that Jake is asking about the feasibility of something, rather than the narrow question I am asking. I am just curious about the answer.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
aerogator

Post by aerogator »

wouldn't an object still be rendered even if its invisible?
Actually, thats the crux of this whole premise. :) Does anyone know the answer?
User avatar
RipPipPip
Lieutenant Colonel
Lieutenant Colonel
Posts: 871
Joined: 11 Aug 2006, 20:57
Version: FS9
Location: Between EPWA & EPBC, that's north of Krakozhia (?)

Post by RipPipPip »

My vote is that invisible parts (or model itself) is NOT rendered when it's invisible.
As simple as that :)

PS. Here's an argument:
this is the reason why M$ did c_wheelwell hierarchy variable, which is built-in.
You attach every central gear part to this variable and they all disappear when the gear is up - not to be rendered during all the flight!
"For a few FPS more"
Image
Rysiek Winawer
aerogator

Post by aerogator »

this is the reason why M$ did c_wheelwell hierarchy variable, which is built-in
Could you elaborate on that oh "Holder Of All Knowledge" :lol: . I have never heard of this. Where might I find some more info? :)
User avatar
Dark Morelia
Captain
Captain
Posts: 248
Joined: 15 Feb 2007, 04:02
Version: FS9
Location: Hervey Bay, Australia
Contact:

Post by Dark Morelia »

I've been told they don't use any extra resources, and some testing seems to confirm this.
I'm hoping it's true anyway :p
Drew >>

Image
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2770
Joined: 11 Aug 2006, 22:15
Version: FS9
Location: Sydney

Post by Weescotty »

c_wheelwell, l_wheelwell and r_wheelwell are built in names for parts, the same as c_gear, l_gear and r_gear.

You get to them the same way as you usually get part names, but choose "Visibilty" in the drop down menu.

They are not rendered when the gear is up.
aerogator

Post by aerogator »

so I link all parts that I don't want to be rendered when the gear is up to the c_, l_, r_wheelwell(s)? Do I just make the before-mentioned wheelwell parts the parent part?

Thanks,
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2770
Joined: 11 Aug 2006, 22:15
Version: FS9
Location: Sydney

Post by Weescotty »

aerogator wrote:so I link all parts that I don't want to be rendered when the gear is up to the c_, l_, r_wheelwell(s)? Do I just make the before-mentioned wheelwell parts the parent part?

Thanks,
Yup, just make the parts childs of the wheewell parts.
User avatar
RipPipPip
Lieutenant Colonel
Lieutenant Colonel
Posts: 871
Joined: 11 Aug 2006, 20:57
Version: FS9
Location: Between EPWA & EPBC, that's north of Krakozhia (?)

Post by RipPipPip »

...you can use other custom part as a parent part as well.
That one custom parent part may have custom visibilty XML condition attached.
"For a few FPS more"
Image
Rysiek Winawer
Post Reply