[Blender] scripts to import/export .SRF .DNM .FLD .YFS

Learn to make aircraft, maps and more with all of the tools. All the tutorials you will ever need are located here!
NOTE THAT HACKING THE MAIN YSFLIGHT .EXE IS FORBIDDEN
User avatar
vincent
Contributor
Contributor
Posts: 202
Joined: Wed Feb 02, 2011 7:31 pm
Favorite Aircraft: virtual ones
Location: Toulouse, France
Has thanked: 1 time
Been thanked: 25 times
Contact:

[Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by vincent » Fri Aug 12, 2011 8:00 pm

Image YSFS Blender

Features:
  • import/export SURF (.srf) and DYNAMODEL (.dnm) files
  • import/export the object layout of .fld and .yfs files
  • tools to help creating aircraft (modify transparency, add lights, see vert/face ID, replace a color by an other...)
  • generate thumbnails of all your aircraft and ground objects
The scripts are for Blender 2.49 which requires Python 2.6

The people who took part in this project:
  • Cobra: the developper who started this project on July 2009. He made the SRF exporter and an experimental version of the DNM exporter. He left the project one month later.
  • Vincent: joined the project after Cobra's first release, fixed the DNM exporter and made all the other scripts
  • Kurosaki: made a lot of tests on the scripts, released the first repaints made with Blender and made several tutorials about Blender
  • Crouch: helped to make the "show vertex/face ID" script

Wish list
If you wish I work on some features, you can send me your suggestions here and see other people suggestions. I'll reply you as fast as possible.
No registration is required.


Bugs
It's very important you tell me when you encounter a problem with the scripts/Blender.
You can submit the bug reports here and see bugs encountered by other people. I'll reply you as fast as possible. No registration is required.


Updates
You can consult the change log here.


Tutorials
Dig around, there are many tutorials scattered and not referenced, you'll find some by viewing the posts of this topic, others in the release forum and add-on creation forum.
:arrow: Basis of Blender
- see the tree structure of your dnm (as with DnmViewer)

:arrow: Painting an aircraft
- A complete tutorial to paint an aircraft (by Kurosaki)
- a complete video tutorial to repaint an aircraft (by Kurosaki) - part 1 - part 2 - part 3
- Shrink wrap a logo on an aircraft (by Kurosaki)
- Text and symbol tutorial (by Kurosaki)
- How to make a camo (by Cobra)
- basic painting
- symmetrical cut using a background picture

:arrow: Creating a ground object:
- Your first ground object, explain also the bases of Blender (outdated)

:arrow: Modelling
- A coarse model in 10s
- Remove the black shadows
- Modelling a nozzle

:arrow: Animated parts
- tutorial 1 (at the end of the post)
- complete tutorial
- creating a rudder along an oblique axis
- Animating a nozzle


:arrow: Other interesting Blender scripts
- geometry tools

:arrow: create an aircraft with Blender
- Build a Policarpov I-15
- Build a Nieuport11
- Build a Breguet 763 (bad english translation)
- Build a Breguet 763 (french version)
- A simple aircraft model
- Create a Boeing 747
- Decaff's Blender Tutorials

:arrow: Installing Blender on your computer
- For PC
- For Mac




>> Download <<




post was originally by cobra (old YSP user) and copied to YSFHQ by Vandal, but ownership is changed to vincentweb so that he has edit rights to keep this updated}

User avatar
Honey Badger
57th Polyvalent Sq
57th Polyvalent Sq
Posts: 1843
Joined: Thu Jun 30, 2011 8:17 pm
Favorite Aircraft: Anything that gets off the ground
Location: From Louisiana, stationed in Alabama
Has thanked: 226 times
Been thanked: 69 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Honey Badger » Fri Aug 12, 2011 8:48 pm

hey Vincent. I'm using Blender 2.58 on a pre-release version of Windows 7. I installed the scripts as instructed here: http://wiki.blender.org/index.php/Doc:2 ... on/Add-Ons and now I can't see anything in the "Add-ons" page of "User Preferences". please help.
USAF Computer Systems Programmer (3D0X4)
"Powerpoint Ranger"

User avatar
Welshy
Staff
Staff
Posts: 1765
Joined: Thu Feb 24, 2011 4:53 pm
Favorite Aircraft: Sea Harrier FA2
Location: Chepstow, Old South Wales
OS: Windows 10
Has thanked: 104 times
Been thanked: 69 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Welshy » Sat Aug 13, 2011 8:39 am

You need blender 2.49X

YSFHQ Elected Admin
Officer Commanding VMFA-125 (CVW-171)

If you see me post like this in a thread pay attention!


User avatar
Kurosaki
Rookie
Rookie
Posts: 91
Joined: Thu Feb 10, 2011 12:34 am
Been thanked: 15 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Kurosaki » Sat Aug 13, 2011 1:36 pm

I'm not saying its better than the old way with Perl scripts..but if you're looking for a visual way to do most everything on an aircraft (Mod the whole DNM...) This stuff works.

User avatar
Strik3agle98
Contributor
Contributor
Posts: 381
Joined: Mon Apr 18, 2011 10:03 am
Favorite Aircraft: any thing that have double delta wing, twin tailed
Location: in the planet name EARTH
Has thanked: 34 times
Been thanked: 10 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Strik3agle98 » Tue Aug 16, 2011 3:31 pm

how to install it I didn't understand the install guide that come with it




thanks
Image
Image

User avatar
Crazypilot
Honorary Contributor
Honorary Contributor
Posts: 2578
Joined: Wed Jun 22, 2011 4:22 pm
Favorite Aircraft: F-16C
Location: Pakistan
Has thanked: 191 times
Been thanked: 92 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Crazypilot » Tue Aug 16, 2011 4:41 pm

Two questions:Blender 2.49X is on the blender website right?(I can not check because going to that site on this computer would take half an hour.)
Once I import the models the best way to paint them would be in solid wireframe view right?
Boneless Pizza

User avatar
dustydan1995
Contributor
Contributor
Posts: 229
Joined: Sun Aug 14, 2011 2:06 am
Favorite Aircraft: MX2
Location: Downingtown, PA
Has thanked: 1 time
Been thanked: 3 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by dustydan1995 » Tue Aug 16, 2011 5:03 pm

going with what can said. can someone show pictures on how to install the files?
"I wouldn't want God as my copilot because he'd be too good." "That mans swerving." "Where?" "Three minutes from now!" "Ahhh!" - Brad stine

Son: I am going to got buy some school clothes
(1 hour later)
Son: what do you think dad?
Dad: I think were going back to the mall snoop droopy drawers

User avatar
vincent
Contributor
Contributor
Posts: 202
Joined: Wed Feb 02, 2011 7:31 pm
Favorite Aircraft: virtual ones
Location: Toulouse, France
Has thanked: 1 time
Been thanked: 25 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by vincent » Wed Aug 17, 2011 2:54 pm

@Dustydan
Tell me what you don't understand in the install manual. I'll modify it to improve it.


@CrazyPilot
If you are looking for Blender 2.49:
http://download.blender.org/release/Blender2.49b/

The best view to use is the "textured one". It's the only view in Blender which takes account of the normal and the only view where you'll see the transparency (because transparency was simulated using textures...).

User avatar
Martin-Dutchie
Contributor
Contributor
Posts: 482
Joined: Sun Feb 06, 2011 5:13 pm
Favorite Aircraft: F-20A Tigershark
Location: Somewhere between the dykes
Has thanked: 55 times
Been thanked: 38 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Martin-Dutchie » Wed Aug 17, 2011 4:46 pm

I would like to add that I use solid mode to find where edgesplit is needed, and to filter out any other shadowing issue, before the alpha stage has even begun.

User avatar
Crazypilot
Honorary Contributor
Honorary Contributor
Posts: 2578
Joined: Wed Jun 22, 2011 4:22 pm
Favorite Aircraft: F-16C
Location: Pakistan
Has thanked: 191 times
Been thanked: 92 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Crazypilot » Wed Aug 17, 2011 9:10 pm

I have a problem:
I have downloaded Blender version 2.49b but when I download it I see no scripts folder .I only see two blender icons(Blender player and blender)
and the rest are files with gears on them.Where do I put the script files?
Boneless Pizza

User avatar
vincent
Contributor
Contributor
Posts: 202
Joined: Wed Feb 02, 2011 7:31 pm
Favorite Aircraft: virtual ones
Location: Toulouse, France
Has thanked: 1 time
Been thanked: 25 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by vincent » Thu Aug 18, 2011 12:41 pm

In a place such as C:\Program Files x86\Blender Foundation\Blender, dig around, I can't tell you the exact path, I don't use Windows for long.

Shutter

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Shutter » Thu Aug 18, 2011 2:23 pm

Depending on the windows version, it might be something like user\appdata\roaming\blender foundation/blender\.blender

User avatar
dustydan1995
Contributor
Contributor
Posts: 229
Joined: Sun Aug 14, 2011 2:06 am
Favorite Aircraft: MX2
Location: Downingtown, PA
Has thanked: 1 time
Been thanked: 3 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by dustydan1995 » Thu Aug 18, 2011 4:58 pm

vincent wrote:@Dustydan
Tell me what you don't understand in the install manual. I'll modify it to improve it.
I have it installed corectly. I love it. the one question on my mind is when I am done repainting, how should I save it
"I wouldn't want God as my copilot because he'd be too good." "That mans swerving." "Where?" "Three minutes from now!" "Ahhh!" - Brad stine

Son: I am going to got buy some school clothes
(1 hour later)
Son: what do you think dad?
Dad: I think were going back to the mall snoop droopy drawers

User avatar
vincent
Contributor
Contributor
Posts: 202
Joined: Wed Feb 02, 2011 7:31 pm
Favorite Aircraft: virtual ones
Location: Toulouse, France
Has thanked: 1 time
Been thanked: 25 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by vincent » Sat Aug 20, 2011 8:37 am

dustydan1995 wrote: I have it installed corectly. I love it. the one question on my mind is when I am done repainting, how should I save it
From memory (I cannot tell for certain about the exact menu names)
File / Export / Export Dynamodel (.dnm)

User avatar
Strik3agle98
Contributor
Contributor
Posts: 381
Joined: Mon Apr 18, 2011 10:03 am
Favorite Aircraft: any thing that have double delta wing, twin tailed
Location: in the planet name EARTH
Has thanked: 34 times
Been thanked: 10 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Strik3agle98 » Sun Sep 04, 2011 9:52 am

thanks for all that answer me. now I know what's a trouble,I'm using blender 2.59 but I should use 2.49
Image
Image

User avatar
Timmayx
Contributor
Contributor
Posts: 207
Joined: Sat Feb 05, 2011 11:38 pm
Favorite Aircraft: English Electric Lightning
Has thanked: 4 times
Been thanked: 31 times

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Timmayx » Mon Oct 17, 2011 8:23 pm

Just to make sure, do you need to download Python 2.6 or 2.67 for these scripts to work?


:EDIT::

Never mind, got it sorted.

For future reference it's 2.6 you go for, the one that is a ready built exe file.
"Live a good life. If there are gods and they are just, then they will not care how devout you have been, but will welcome you based on the virtues you have lived by. If there are gods, but unjust, then you should not want to worship them. If there are no gods, then you will be gone, but will have lived a noble life that will live on in the memories of your loved ones. "

User avatar
decaff_42
Legend
Legend
Posts: 3334
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX 10.11.3
Has thanked: 464 times
Been thanked: 1056 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by decaff_42 » Mon Oct 31, 2011 8:42 pm

I noticed that no one really talked about how to get this to work on a mac.

You can google and download blender 2.49b and python 2.6
Download the linked scripts above and open up the folder.
Put the Blender.app into the applications folder then put it into your dock
While in finder use this command "command-shift-g" and type in "/Applications/blender.app/Contents/MacOs/.blender/scripts/" copy paste this if you want it easily (w/o the " ")

You should now see a folder with a "scripts" folder in it. Make an alias of this scripts folder and put it into someplace where you can get to easily
copy all the scripts you downloaded into this folder

You're done. Now just watch Kurosaki's videos to get going.
Check out my website YSDecaff for all my tutorials and addon releases.

Feel free to ask me a question! I'll try to answer it as well as I can or recommend a more knowledgeable member if necessary.

NoFear526

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by NoFear526 » Wed Nov 02, 2011 11:24 am

How about windows 7?

User avatar
Crazypilot
Honorary Contributor
Honorary Contributor
Posts: 2578
Joined: Wed Jun 22, 2011 4:22 pm
Favorite Aircraft: F-16C
Location: Pakistan
Has thanked: 191 times
Been thanked: 92 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by Crazypilot » Wed Nov 02, 2011 1:57 pm

In the instructions it instructs me to put the script files in blender./scripts but I don't have a script or a blender. folder.Do I make it myself like the user folder for ysf?
Boneless Pizza

User avatar
decaff_42
Legend
Legend
Posts: 3334
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX 10.11.3
Has thanked: 464 times
Been thanked: 1056 times
Contact:

Re: [Blender] scripts to import/export .SRF .DNM .FLD .YFS

Post by decaff_42 » Wed Nov 02, 2011 4:01 pm

Hey crazypilot,

Are you running mac? if so look at my previous post a little ways up the page.
the scrips folder is hidden inside the .blender file (It's not a folder). If you are on a mac it's similar to how you add addons to ysflight using the 'show package contents' command. use the command shown above. It's fairly straight forward.
Check out my website YSDecaff for all my tutorials and addon releases.

Feel free to ask me a question! I'll try to answer it as well as I can or recommend a more knowledgeable member if necessary.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest