Search results

  1. johnnymanly

    Problem oapi.create_ntvertexarray() problem

    Does anyone know why this fails? PANEL2D_TEXW = 2048 PANEL2D_TEXH = 1024 PANEL2D_MAINW = 1280 PANEL2D_MAINH = 382 local grps = {} grps.vtx = oapi.create_ntvertexarray({ { 0, 0, 0, 0, 0, 0, 0.0, 1.0 - PANEL2D_MAINH/PANEL2D_TEXH }...
  2. johnnymanly

    Meshing Question FLAG 4 not working

    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...
  3. johnnymanly

    OHM JM_pl

    johnnymanly submitted a new addon: JM_pl - Altenative to the ShuttleA_pl cargo pod Read more about this addon...
  4. johnnymanly

    Problem *SOLVED* Can't create vessel in the right place

    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...
  5. johnnymanly

    Problem Strange animation effect

    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...
  6. johnnymanly

    Question Question concerning ShuttleA to Lua conversion

    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...
  7. johnnymanly

    Problem Having trouble compiling ShuttleA

    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?
  8. johnnymanly

    Question "Spool up" an animation

    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" ?
  9. johnnymanly

    Problem .obj to .msh conversion acting strange

    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...
  10. johnnymanly

    Problem Misbehaving animation

    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...
  11. johnnymanly

    Problem Trying to make a thrust indicator

    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?
  12. johnnymanly

    Problem Problem lighting buttons with "oapi.blt" .

    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...
  13. johnnymanly

    Question Animate a nosecone

    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...
  14. johnnymanly

    Problem Artifacts on large meshes

    Does anyone know what causes these patterns on large meshes? Is there any way to fix them?
  15. johnnymanly

    SDK Question Navigation mode identifiers

    Does anyone know the navigation mode identifiers? I know NAVMODE_KILLROT and NAVMODE_HOLDALT but none of the others.:unsure:
  16. johnnymanly

    General Question What is "VECTOR3 rofs" ?

    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)...
  17. johnnymanly

    Question create a vessel in the right place

    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?
  18. johnnymanly

    Question C++ to Lua conversion

    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)...
  19. johnnymanly

    Orbiter compile error *SOLVED*

    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?
  20. johnnymanly

    Hardware Orbiter log errors

    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...
Back
Top