Go Back   Orbiter-Forum > Orbiter Addons > Orbiter Lua Scripting
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Lua Scripting Find support, share snippets and general discussion around using the Lua engine in Orbiter.

Thread Tools
Old 02-24-2018, 06:52 AM   #1
Default Textures handles in Lua


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?

camelopardis is offline   Reply With Quote
Thanked by:
Old 02-26-2018, 09:47 AM   #2

It seems that the following functions should be exposed in Lua:
oapiRegisterExhaustTexture, oapiRegisterReentryTexture and oapiRegisterParticleTexture.
camelopardis is offline   Reply With Quote
Thanked by:

  Orbiter-Forum > Orbiter Addons > Orbiter Lua Scripting

Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump

All times are GMT. The time now is 09:48 AM.

Quick Links Need Help?

About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.