Page 1 of 1

Setvisible

Posted: 14.08.2008, 18:33
by BobHegwood
Pardon, but could someone please explain how to get around the Setvisible property (which is included in the latest releases of Celestia)
with a possible workaround for use in Celestia 1.5.1 final? I realize that this is not a large issue, but I would very much like to make some
add-ons available to those who do not yet use the 1.6 pre-release versions. Any help here?

Thanks, Brain-Dead

Re: Setvisible

Posted: 14.08.2008, 19:09
by selden
In v1.5.0 or later, one could call setradius with an invisibly small value. I've never used this, but Cham used it in one of his posted scripts. I don't know if the model and its textures are loaded when the radius is too small to see. That would be easy enough to test, but I've never taken the time.

I use a ScriptedOrbit declaration which places the object at a very large distance away from its default position when it's not supposed to be seen and at [0 0 0] when it is supposed to be visible. The object's model and textures are not loaded unless its position is set to [0 0 0].

Re: Setvisible

Posted: 14.08.2008, 19:12
by BobHegwood
selden wrote:In v1.5.0 or later, one could call setradius with an invisibly small value. I've never used this, but Cham used it in one of his posted scripts. I don't know if the model and its textures are loaded when the radius is too small to see. That would be easy enough to test, but I've never taken the time.

I use a ScriptedOrbit declaration which places the object at a very large distance away from its default position when it's not supposed to be seen and at [0 0 0] when it is supposed to be visible. The object's model and textures are not loaded unless its position is set to [0 0 0].

Okay, thanks very much Selden.
Will play with it for a while to see if I can achieve what I want here.