Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ORBITER-FORUM will be temporarily closed at 2026-07-23 18:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.
I'm trying to use "FLAG 4" to stop the effects of lighting on a mesh group but it's not working.
the header for the group is:
LABEL fuelbar1
MATERIAL 5
TEXTURE 0
FLAG 4
GEOM 194 192
I've used this flag for groups in other meshes and it's fine but not this time.
Perhaps I have a misunderstanding...
I've made an alternate PL cargo module for the ShuttleA and I want to create a deflated chute, as a separate vessel, upon ground contact.
If I create it using "get_groundcontact()" it's created many meters away and underground.
If I do it using "clbk_consumebufferedkey()" it's fine.
I've coded...
I'm working on a gauge set using layers of animated mesh groups.
If I advance or retard the throttle slowly using ctrl/num+ everything is fine but if I blip the throttle using num+ the involved meshgroups start to scale.
The more I blip the throttle, the bigger they get.
The animations are...
I thought I'd have a hand at converting the ShuttleA to Lua with the goal of adding a tank and srb's.
Some of the code has me stumped. This for example:
SetAnimation (anim_gear, gear_proc);
TOUCHDOWNVTX tdv[ntdvtx];
memcpy(tdv, tdvtx, ntdvtx*sizeof(TOUCHDOWNVTX));
for...
I'm trying to compile the ShuttleA for Orbiter 2024 on windows 10 using VS2022 and I'm getting an error.
It's probably something simple but I don't know what to do with it. Any Idea?
Is it possible to spool up a rotation animation?
That is, start from 0 rpm and increase rpm over a period of so many seconds.
If not with an animation can it be done with "set_angvel" ?
For my own interest I decided to try to convert the obj2msh Qbasic program to Lua.
I got it to produce what looked like good meshes but they would not load in Orbiter2024.
If I opened them in Shipedit the groups, vertices, and triangles all read "0" and the mesh could not be manipulated in any...
I have rotation animations on the third stage and payload of a multistage vehicle.
Everything's fine until the jettisoned payload starts to rotate. It stutters for a second, rotates the wrong way for a few seconds, then changes direction and works normally.
Maybe an animation expert can help me...
I'm trying to make a thrust level indicator in a vc using a sketchpad rectangle.
this toggles it between 0 and 1:
for i = 0, 1 do
if vi:get_thrusterlevel(thmain) == i then
pSkp:rectangle(0, i*1024, 1024, 0)
end
end
But how do I make it proportional?
I'm hoping to use a lighted button effect for NAVMODE and RCSMODE in a simple VC. I've got NAVMODE working fine with this code:
function redraw_panel_navmode(surf)
for i = NAVMODE.KILLROT, NAVMODE.HOLDALT - 1 do
if vi:get_navmode(i) then
oapi.blt(surf, tex4, (6-i)*85.3, 0...
I'm trying to animate a nosecone (for a docking port) using the ShuttleA as a guide and converting the code to Lua.
I have this so far:
function activate_nose(DoorStatus, action)
local close = (action == DOOR_CLOSED or action == DOOR_CLOSING)
nose_status = action
if action <= DOOR_OPEN...
I wrote this some time ago following a tutorial
VESSELSTATUS vs;
char name[256];
VECTOR3 sofs = _V(-0.46, 0, 11.25);
VECTOR3 sdir = _V(-1, 0, 0);
double svel = 4.0;
// Get vessel status structure
VECTOR3 rofs;
GetStatus (vs);
Local2Rel (sofs, vs.rpos)...
I'm working on a multistage vessel but I can't create new vessels in the right position.
I can create them, give them velocity and rotation, but I have to cheat and use "shiftCG" to get them to spawn in the right place.
It works OK but it's not perfect. Anyone know the proper way to do this?
I'm just learning Lua and I tried to convert this C++ code
int i;
for (i = 0; i < 6; i++) {
oapiVCRegisterArea (MFD1_LBUTTON1+i, PANEL_REDRAW_NEVER, PANEL_MOUSE_LBDOWN);
oapiVCSetAreaClickmode_Spherical(MFD1_LBUTTON1+i, _V(-0.31, 0.0547 - (i * 0.0245)...
I'm trying to compile Orbiter-latest on Windows 10 using vs2022.
I'm getting the error "can't find the include file P_.h"
According to Windows search P_.h doesn't exist on my computer.
Does anyone know what provides it?
When I click on "Current state" scenarios my log is filling up with:
000134.107: D3D9ERROR: D:\a\orbiter\orbiter\OVP\D3D9Client\Scene.cpp Line:1249 Error:-2005530516 pDevice->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER | D3DCLEAR_STENCIL, 0, 1.0f, 0L)
It usually keeps running but does...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.