I need some CEL commands. Anybody has an idea what they are ?
1. How to preload some models in a CEL script (not just the textures) ?
2. How to turn ON/OFF the HUD ?
3. How to set time and date to "now" ?
Thanks.
Few CEL commands ?
Few CEL commands ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
Re: Few CEL commands ?
Martin,Cham wrote:I need some CEL commands. Anybody has an idea what they are ?
You'll find an up-to-date list of the CEL commands, along with some examples, on the French Celestia wiki:
http://www.ikiru.ch/celestia/wiki/index.php/Script
It'd be great if someone was willing to add this list -- and keep it up-to-date -- to the English Celestia Wikibook...
http://www.ikiru.ch/celestia/wiki/index.php/Preloadtex1. How to preload some models in a CEL script (not just the textures) ?
This is not possible in CEL scripting. You can use the setoverlayelements CELX command, though:2. How to turn ON/OFF the HUD ?
Code: Select all
celestia:setoverlayelements{Time = false, Velocity = false, Selection = false, Frame = false}
This is not possible in CEL either. You must use the following CELX lines:3. How to set time and date to "now" ?
Code: Select all
now = celestia:getsystemtime()
celestia:settime(now)
@+
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
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
Re: Few CEL commands ?
Vincent wrote:http://www.ikiru.ch/celestia/wiki/index.php/Preloadtex1. How to preload some models in a CEL script (not just the textures) ?
Thanks Vincent.
But on this command (preloadtex), will it preload models too ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
Re: Few CEL commands ?
Martin,Cham wrote:But on this command (preloadtex), will it preload models too ?
Sorry, I misread your question. This command will only load the texture(s).
To preload a model, I usually display the object for a few seconds at the
beginning of the script, e.g., using a celURL...
@+
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
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
Re: Few CEL commands ?
Vincent wrote:Sorry, I misread your question. This command will only load the texture(s).
To preload a model, I usually display the object for a few seconds at the
beginning of the script, e.g., using a celURL...
DARN !
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
Re: Few CEL commands ?
Hmm, I'm not that sure anymore that models are not preloaded using the preloadtex command.
I just checked out in render.cpp and I discovered the following code in the loadTextures method:
Maybe Chris or some other devs can help here...
I just checked out in render.cpp and I discovered the following code in the loadTextures method:
Code: Select all
GetGeometryManager()->find(body->getGeometry());
Maybe Chris or some other devs can help here...
@+
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
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
-
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 23 years
- Location: Seattle, Washington, USA
Re: Few CEL commands ?
Vincent wrote:Hmm, I'm not that sure anymore that models are not preloaded using the preloadtex command.
I just checked out in render.cpp and I discovered the following code in the loadTextures method:Code: Select all
GetGeometryManager()->find(body->getGeometry());
Maybe Chris or some other devs can help here...
Right--the model is loaded, but not any textures used by the models. I've got some code that does load model textures. I'll check that in today.
--Chris
Re: Few CEL commands ?
chris wrote:Right--the model is loaded, but not any textures used by the models. I've got some code that does load model textures. I'll check that in today.
So the preloadtex command will load both the model's geometry and all its textures into memory ? This is a must have feature.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 23 years
- Location: Seattle, Washington, USA
Re: Few CEL commands ?
Cham wrote:chris wrote:Right--the model is loaded, but not any textures used by the models. I've got some code that does load model textures. I'll check that in today.
So the preloadtex command will load both the model's geometry and all its textures into memory ? This is a must have feature.
Exactly. The change is in SVN now: revision 4865.
--Chris