Search results

  1. Thunder Chicken

    Project Das Fliewatüüt

    So @Urwumpe put this on my radar: https://en.wikipedia.org/wiki/Robbi,_Tobbi_und_das_Fliewat%C3%BC%C3%BCt https://archive.org/details/robbi-tobbi-und-das-fliewatuut/Robbi%2C+Tobbi+und+das+Fliewat%C3%BC%C3%BCt+-+Folge+2.mp4 This particular vehicle has it all - vertical air rotor, water...
  2. Thunder Chicken

    Project The Battle for a Flag

    I am working on making a vessel that can provide a visual wind indication when atmospheric wind effects are turned on, in the manner of a wind sock on a small airfield. What could go wrong? So I made a simple mesh of a flag and animated it. The intent was that this would remain stationary...
  3. Thunder Chicken

    Question Usage to set multiple GRP_EDIT flags?

    So I am tinkering with a simple flag mesh to see how the positions of the vertices can be manipulated. https://www.orbiter-forum.com/members/thunder-chicken.316/#profile-post-6322 So I am trying to prepare the group edit spec to do this. I need to set flags to replace the X, Y, Z coordinates...
  4. Thunder Chicken

    Question oapi.get_windvector() only returns single numerical value

    So I am looking to make a wind sock for a visual indication of wind speed and direction for an airfield. I am making it as a stationary vessel. I am attempting to use oapi.get_windvector to get the local wind velocity vector and magnitude. This is the documentation for it: This is the code in...
  5. Thunder Chicken

    Question Screen annotations for one vessel showing in other vessels, how to control?

    I just made a scenario where two different vessels of different classes (R-4Script helicopter and Skiff boat) are loaded. Both vessels have different screen annotations to display prompts and vessel information to the user. Right now when I load the scenario and start with the focus in the R-4...
  6. Thunder Chicken

    API Question MATPROP Enumerators and Mesh Material Specification?

    It is possible to set mesh material colors by using oapi.set_materialex(hdevmesh, mat_id, MATPROP.<DESCRIPTOR>, color). But I am trying to map the MATPROP specs to what they control in the material definition in the mesh file. Some things are obvious, but some are not, and the documentation text...
  7. Thunder Chicken

    OHM Sikorsky R-4 Helicopter

    @Thunder Chicken and @misha.physics submitted a new addon: Sikorsky R-4 Helicopter - Lua Script Sikorsky R-4 Helicopter Read more about this addon...
  8. Thunder Chicken

    Problem Storing and reloading VC camera ID?

    In the R-4 the VC has three camera positions, VC ids 0, 1, and 2. clbk_LoadVC seems to default to position 0 any time F8 is hit. Even if the glass and default cockpits are set to return false (VC only), hitting F8 will automatically go to ID 0. Is there any way to get the VC to store and then...
  9. Thunder Chicken

    Question Cockpit spotlight visual disappears when another spotlight is switched on?

    So I have put some red spotlights into the cabin of the R-4 to illuminate it in all directions. I have two spotlights, each at the same location above and behind the center pilot seat, with an umbra angle PI facing in opposite directions, basically making a single light that emits in all...
  10. Thunder Chicken

    Question Unreliable keypress detection?

    I've encountered a problem where various keypress events to show information, start the engine, engage autopilots, are not reliably executed. I may have to hit a key repeatedly over several seconds before the command actually registers. I've pasted my complete consumebufferedkey function below...
  11. Thunder Chicken

    Question Unable to switch VC cameras?

    I have defined a simple VC that is intended to switch camera views between three seats in a row from left to right in a cockpit. I have this code for function clbk_loadVC(id) if id == 0 then vi:set_cameraoffset(camera_loc[1]) vi:set_cameradefaultdirection(camera_dir[1])...
  12. Thunder Chicken

    Question Vessel mesh interaction with lights from vessel beacons?

    I had a question about how to control (if it is possible at all) whether a meshgroup interacts with light emitted by a beacon on that vessel. As an example, here is my VW Thing on the KSC runway with brake lights on. The white light is a runway light, not associated with the vessel. Notice how...
  13. Thunder Chicken

    Question Attempting to change material emissive color, set_materialex returns nil?

    As indicated in the title, I am attempting to change the emissive color of several materials in a mesh to mimic illumination. I am attempting to use oapi.set_materialex(hMesh, matidx, matprp, col). From the Lua documentation, the parameters for this function are defined as: hMesh handle...
  14. Thunder Chicken

    Question Implementing XRSound in Lua?

    I am trying to restore some custom sounds to the Bell 222. I have the following so far In clbk_postcreation: sound = xrsound.create_instance(vi) sound:load_wav(1, "Sound/_CustomVesselsSounds/BELL222/BELL222ENGINES.wav", PlaybackType.BothViewClose) sound:load_wav(2...
  15. Thunder Chicken

    Mine, Yours, Ours: Way to Upload Add-Ons by Development "Teams"?

    I find myself a terrible mesh maker, and I simply can't get interested in making meshes. However, I rather enjoy coding crazy physics for various add-ons in Lua and am working on helicopters, wheeled vehicles, boats, etc.. with a lot of other folks collaborating and putting in the effort to make...
  16. Thunder Chicken

    Question Type Error When Loading Mesh from CFG File?

    Up to now I have been in the habit of defining vessel meshes and masses within the Lua script file for an addon, which is identified in the cfg file. I wanted to see if I could use the cfg file properly to define the vessel meshes, propellant resources, etc.. From my reading of the Orbiter...
  17. Thunder Chicken

    Project Lua Script Helicopters!

    So I looked at my air breathing engine and propeller Lua script modules and realized that they could be relatively easily applied to making a physically realistic helicopter. So I did that, modeling the engine and main and tail rotors with my engine and propeller codes, using an old R-4 for the...
  18. Thunder Chicken

    Question oapi.get_levelref Not Recognizing Particle Stream Handle?

    I created particle streams to mimic the wake and bow wave from my boat. They were working, and I could vary the intensity, but for some reason the code is now throwing errors. I establish the particle streams and establish their intensities with this code, called within clbk_setclasscaps...
  19. Thunder Chicken

    Question Toggling Mesh Group Visibility During Session?

    I am trying to toggle the visibility of a sail on my skiff during the session with a boolean flag, but without any luck. Here are the relevant bits of my code: In clbk_setclasscaps I have a loaded mesh with handle hmesh and identify the mesh groups for the sail: sail_meshgroup = {14,15} I am...
  20. Thunder Chicken

    Question [Solved] Cleanest way to get Mesh Group vertex and triangle connectivity data?

    I have been working on a buoyancy force model that requires access to the mesh vertex locations and the corresponding triangle connectivity. I have been just parsing the mesh file directly, but I know the data is available in the simulation and I think I should try to develop getting the...
Back
Top