Guess I'm a rebel. All my panel lines are solid.Copperhead wrote: ↑Wed Jun 30, 2021 2:46 pm That's why most folks stick with separated and transparent lines.
time to start making things
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
Re: time to start making things
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
now THAT is really helpful! thanks!
I don't know how I missed that.
looks like I'll be sacrificing some default cubes to see how it all works
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
It was a confusing fall down a rabbit hole because YSFlight, Blender 2.49b scripts and Blender 2.79 scripts all use different orientations to a set of global axis which also probably led to a series of differences in documentation how coordinates are used.
Some docs say "x,y,z "
Some say "y,z,x"
Some say "x,z,y"
Some seem to match translations required between the Blender 2.49b and the .dnm's that ysflight wants
After much experimentation, I figured out the model orientation in blender 2.79 to match the script's output to the output that the Blender 2.49b script offers. In both versions, the script shifts the orientation from what YSFlight seems to expect and back again on export. For the 2.79 scripts to work nicely, the model needs to be oriented such that the model's front/nose is facing 'down' on the screen in Blender's top view ( numpad 7 ).
After I got import/export to work properly there, I knew I could do modelling and obtain info for the .dnm file in Blender 2.92, whose features concerning custom local axis make setting up hinge-lines for animations a snap.
While I can't load 2.92 files directly in 2.79, I can append them easily.
Then I snap empties to the control surface's forward edge with match rotation; this sets the empty's local z-axis to be parallel to the edge. I can then assign that empty to be a custom rotation axis so that the control surface always rotates on the empty's z-axis. Each control surface gets its own custom axis of rotation. Setting the object's rotation center to the empty's location also gives exact location, while rotations can be monitored in the global axis. Not parenting them together allows you to clear rotations easily and not have to translate the empty's global rotations for changes.... just monitor the object's rotations directly. Non-animated parts, I just set the position to 0,0,0 which should be at the airplane's center of gravity. I don't worry about parents/children until typing up the actual .dnm file.
All of that gives info needed to plug into the .dnm file directly in an editor ( I use Geany ), just be sure to multiply degrees by 182.04 to get the ysflight's units and be sure to translate to the axis that ysflight expects.
The x,y,z values in Blender have to be put in the order -x, z, -y for position and x-rot, y-rot, z-rot needs to be put in the order z-rot, -x-rot, y-rot so they rotate properly around the global axis within YSFlight.
I put the airplane's parts as .srf's in a separate folder and access them as external files in the .dnm so the file I spend most of my time on isn't stuffed with lists of thousands of numbers.
The positional stuff also works for info needed in .DAT files, such as gear locations, vapor trails, guns and hardpoints, etc.
Anyways, I've done this with a Blohm-Voss HA137 so far, so I know it works for control surfaces at least
Now to look into props ( especially contra-rotating props ) and landing gear ( focusing on gear door sequences, such as the P-51's )
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
Over this past year, I've developed something of a love / hate relationship with YSFlight
I love making little things to use in it and the simplicity of the game, but abhor the necessity kludge of using extra, very old, programs to translate from blender to one-off formats that aren't used anywhere else to add anything to it. Sometimes, it seems easier to learn the Godot engine to fly my toys around and look at stuff.
Maybe I'm lazy, but it lacks enjoyment after building a thing elsewhere to put into the game as it stands now.... it is not play, it is work.
But I'll likely keep making things that will never find its way into the actual program.
and I'm sharing them here as .blend files, cc-by for others to do anything they like with them.
in the files, the number after the model name in the outliner is the number of faces after triangulation and remove-triangles
- Attachments
-
- Free_buildings.blend.zip
- free building to use
- (1.2 MiB) Downloaded 229 times
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
free to use
- Attachments
-
- factory_buildings.blend.zip
- (563.48 KiB) Downloaded 221 times
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
- Attachments
-
- free_vehicles.blend.zip
- (1.52 MiB) Downloaded 216 times
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
Panzers and T-34's
- Attachments
-
- russia_T34's.zip
- (182.83 KiB) Downloaded 212 times
-
- Panzers_ww2.zip
- (917.51 KiB) Downloaded 214 times
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
- Attachments
-
- Tank_Collection.blend.zip
- (1.07 MiB) Downloaded 218 times
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
( no ysflight carrier stuff done )
- Attachments
-
- HMAS_Melbourne.blend.zip
- (254.75 KiB) Downloaded 209 times
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
- Attachments
-
- Daring_class_DD_early-50's.blend.zip
- (596.27 KiB) Downloaded 207 times
- Ruskiwaffle1991
- Contributor
- Posts: 108
- Joined: Mon Jan 04, 2021 1:52 am
- Favorite Aircraft: Too many to name :)
- Location: Philippines, Earth, Sol System, random arm thing of the Milky Way, random supercluster, Universe
- OS: Windows 10
- Has thanked: 5 times
- Been thanked: 9 times
Re: time to start making things
A (i completely forgot)
A Me 262 pilot, how many times his plane's engines caught on fire.
- waspe414
- Staff
- Posts: 1581
- Joined: Thu Feb 10, 2011 9:35 pm
- Favorite Aircraft: Kiowa, Mitten, Hornet
- Location: Canada
- Has thanked: 154 times
- Been thanked: 506 times
Re: time to start making things
I stole your turnip. Now you must come and defend your honour. ~ Hank Green
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
We handled Tomcats, Phantoms, Corsair II's, Skyhawk trainers, first F-18 squadron to be CQ'd, Intruders and Electric 6's, and even an EA-3 Whale (Skywarrior) and the assorted support planes/Helos
CVW-2 and CVW-9 were deployed with us
3 x Sea Sparrow mounts
3 x CIWS
and yes, I am a Trusty Shellback
Here is the .blend
Do what you like with it... it is free to use with no strings attached
You can place your own planes in the hanger deck
Elevators don't work, nor do the JBD's
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
HMAS Sydney
Turrets/Guns/Gun Director are separate for animating
The Walrus could be dona as a low detail GAC plane, I suppose
Do what you like with it
CC-0
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
the turrets and guns are parented to hull, as is torpedo tubes and catapult
Loire seaplane might be lo-detail GAC plane ... it has an open cockpit!
Here is the .blend file
CC-0 free to use for any purpose Have fun
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
I didn't bother to separate out the torpedo tubes or fire directors on this one
All the guns should work
The plane is parented to the catapult
Here is the .blend file
CC-0 free to use for any purpose
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
A Currituck class seaplane tender
(based on bad drawings of the USS Pine Island)
Guess I'll have to do a low-poly PBM Mariner now
Here is the .blend file
CC-0 free to use for any purpose
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
Modeled (sort of) on the 1927 drawings
I didn't bother making the useless casement guns functional
only 6 75mm AA guns; I don't bother with smaller stuff
No catapult and a slow speed made this ship pretty useless during WW2
Here is the .blend file
CC-0 free to use for any purpose
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
Re: time to start making things
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
-
- Rookie
- Posts: 48
- Joined: Sun Jun 27, 2021 10:17 am
- Favorite Aircraft: Cavalier Turbo-Mustang III
- OS: linux
- Has thanked: 1 time
- Been thanked: 52 times
Re: time to start making things
I just have to remember that the positive y-axis is the front, as it is in ScnEdit and re-orient things properly
It's a pain to animate by editing files by hand, but it's not too bad because I use custom axis and copy the rotation numbers into the .dnm
I don't like it, as it seems too much like work, so I am putting it off while I play with other bits
if only someone way smarter than me wrote a script to export from recent blender versions
I don't see why it couldn't even be done to replace the scene editor even
But I'm not smart enough to do that
Who is online
Users browsing this forum: No registered users and 9 guests