missing CelX methods? normalizemesh & meshscale

All about writing scripts for Celestia in Lua and the .cel system
Avatar
Topic author
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

missing CelX methods? normalizemesh & meshscale

Post #1by selden » 19.04.2009, 19:44

Celestia v1.6 allows you to control the size of a model using the new SSC directives
NormalizeMesh false (default = true = scale to Radius)
MeshScale 1 (size of units in model)
These directives are very useful when assembling something out of several different objects.

If NormalizeMesh is not used (or is set to true), you can change the size of the object with the CelX functions obj:radius() and obj:setradius(value)

There does not seem to be an equivalent size control for NormalizeMesh false. setraidus only changes the size of the Selected marker (and where Celestia clips the model's image), not the size of the model.

It would be nice if there were CelX functions
getnormalizemesh, setnormalizemesh, getmeshscale and setmeshscale.
Selden

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 11 months
Location: Nancy, France

Re: missing CelX methods? normalizemesh & meshscale

Post #2by Vincent » 20.04.2009, 17:31

Selden,

I'll have a go at this as soon as possible, though I'm not very familiar with these
new SSC directives. You may want to add this request to the SF tracker, so
that I don't forget about it -- I'm quite busy professionally at the moment.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Avatar
Topic author
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Re: missing CelX methods? normalizemesh & meshscale

Post #3by selden » 20.04.2009, 17:45

Vincent,

Take your time. There's no rush. If they're implemented, I think they should wait for v1.6.1.

Being able to change the size of one or more members of a conglomeration of models will be very useful but perhaps
would have significant implications for the design of the over-all object.

i'll submit a feature request in tracker.
Selden


Return to “Scripting”