Question Textures handles in Lua

camelopardis

Donator
Donator
Joined
Mar 18, 2009
Messages
19
Reaction score
0
Points
1
Hi,

I'm exploring Lua in Orbiter and was trying to define exhaust for thrusters. I want to define custom exhaust textures and the problem is with the optional parameter "tex" in the vessel:add_exhaust function, which the documentation says is a texture handle. I can't find a way of loading a texture and obtaining a texture handle for it.

The texture handle is mentioned in orbiter.chm in two places: In "Particle stream specifications", and in the vessel:add_exhaust function. But I've found no function to load a texture.

So, is it possible to load a texture in Lua, to use in exhaust and particle streams? Is this implemented but not documented?

Thanks
 

camelopardis

Donator
Donator
Joined
Mar 18, 2009
Messages
19
Reaction score
0
Points
1
It seems that the following functions should be exposed in Lua:
oapiRegisterExhaustTexture, oapiRegisterReentryTexture and oapiRegisterParticleTexture.
 
Top