Project Lua Script Helicopters!

Thunder Chicken

Resident Lua Script Rabble-Rouser
Donator
Joined
Mar 22, 2008
Messages
5,847
Reaction score
5,509
Points
188
Location
Massachusetts
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 specifications:


Sikorsky_R-4_USAAF.jpg


This isn't just a hack with a hover thruster. It models the air-breathing engine shaft power output using a thermodynamic model and it models the rotors with an actuator disk rotor theory model linked to the engine power output. It should be pretty realistic given appropriate engine and rotor parameters. It does fly convincingly. Hover behavior and performance seems good, and it even can autorotate. It has a ceiling of 12,000 ft which is pretty close to the actual performance. It has separate engine throttle and collective (throttle controls engine power, collective basically changes the propeller efficiency to determine how much of that power is converted into lift/thrust). Here we are hovering over the SLF runway:

Screenshot at 2024-12-26 17-33-32.png

All is well and good...until you take a look at the mesh:

Screenshot at 2024-12-26 17-33-47.png

I rather hate making meshes and Blender is immensely frustrating to me. I picked an R-4 as I thought I could just make a simple Orbiter mesh manually in a text editor, and I made a couple attempts but I honestly hate them all. Did I tell you that I hate making meshes?

So I was wondering if there is anyone out there with mad Blender skills that might be interested in making a simple helicopter mesh, and perhaps we could jointly release it as an add-on? I was thinking the R-4 because it was angular and could be made low poly, but something like a simple R-22 would be great too. I was also thinking how a Hughes 269 Calypso could be fun as I could also throw my buoyancy code at it and have a amphibious helicopter.


I can pretty much code up anything so long as I have the rotor dimensions, empty and fueled mass, and the specs of whatever engine it uses (I can model reciprocating as well as turboshaft engines).

Anyone interested? I can't offer you anything more than the public glory of being on the project team to make a helicopter add-on for Orbiter, but maybe that's enough?
 
Last edited:
I'm not a professional in 3D modeling, but I'm interested, so I'd like to try creating a simple helicopter mesh (I never made it before).
 
I have made a couple of copters Airwolf and some others
Oh neat! I see the Airwolf and the Bell 222, a Skycrane, and a NH90 in your add-ons. Would you mind if I made Lua scripts for them? I could make them as a separate script add-on where users would need to download your add-on, and then install the script over it without modifying your files. It looks like you included your C++ code which will help me sort out the animations.
 
There are websites free with low-poly 3D models, like:
Turbosquid
Sketchfab

I took the MD500 from Turbosquid, imported it into Gmax, and exported an Orbiter-mesh.
In the attached file are the orignal 3DS file, gmax and msh versions.

If you want to use it, you will have to play around with the textures and transparencies.
Also please quote the original artist.
 

Attachments

Oh neat! I see the Airwolf and the Bell 222, a Skycrane, and a NH90 in your add-ons. Would you mind if I made Lua scripts for them? I could make them as a separate script add-on where users would need to download your add-on, and then install the script over it without modifying your files. It looks like you included your C++ code which will help me sort out the animations.
No problem at all
 
Got the rotor and landing gear animations working, and put the engines (Lycoming / Honeywell LTS101 x 2) and rotor models in. Maxes out at 180 mph in level flight which is a bit faster than the real thing, but maximum engine power is on the numbers so I probably need to tweak the drag coefficients a bit.

Screenshot at 2024-12-27 21-47-57.png
It's a good start.
 
Hi. @Thunder Chicken, it looks I just almost finished modeling the Sikorsky R-4 helicopter mesh. I followed some blueprints and got the following mesh:

1.png2.png3.png

I think it would be better to use a separate mesh for cockpit view. What do you think?:

4.png5.png

Also, I found this paid model. It has a panel with 8 instruments. I can add them, but I don't know where to find the instruments textures in good resolution:

6.jpg

I have to add some things to the mesh and I will send it to you. Of course, there're separated mesh groups for the parts that need to be animated.
 
Hi. @Thunder Chicken, it looks I just almost finished modeling the Sikorsky R-4 helicopter mesh. I followed some blueprints and got the following mesh:

View attachment 41635View attachment 41636View attachment 41637

I think it would be better to use a separate mesh for cockpit view. What do you think?:

View attachment 41638View attachment 41639

Also, I found this paid model. It has a panel with 8 instruments. I can add them, but I don't know where to find the instruments textures in good resolution:

View attachment 41640

I have to add some things to the mesh and I will send it to you. Of course, there're separated mesh groups for the parts that need to be animated.
Your mesh looks excellent!

In the past I have rummaged around U.S. government websites for instrument images that might be suitable. Files like this might have some useful images:


The challenge is getting the images such that the indicators can be removed and applied as separate meshgroups for animation. I've resorted to making my own gauge faces in InkScape and exporting them to GIMP to make a texture file. If someone could make a standard set of steam gauges for GA aircraft that would be great.
 
Back
Top