[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: 26 times
Contact:

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

Post by vincent »

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}
Honey Badger
57th Polyvalent Sq
57th Polyvalent Sq
Posts: 1841
Joined: Thu Jun 30, 2011 8:17 pm
Favorite Aircraft: Anything that gets off the ground
Has thanked: 227 times
Been thanked: 71 times

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

Post by Honey Badger »

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.
User avatar
Welshy
Staff
Staff
Posts: 2042
Joined: Thu Feb 24, 2011 4:53 pm
Favorite Aircraft: Sea Jet
Location: Wales
OS: Windows NT
Has thanked: 249 times
Been thanked: 254 times
Contact:

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

Post by Welshy »

You need blender 2.49X
YSFHQ Elected Overlord
Overlord of VMFA-125 (CVW-171)
Previously Supreme Overlord of 323rd CAW
Friendly Neighbourhood Miscreant
Head Honcho at Talking Aero and British Defence
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 »

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 »

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




thanks
Image
Image
Crazypilot
Honorary Contributor
Honorary Contributor
Posts: 2668
Joined: Wed Jun 22, 2011 4:22 pm
Favorite Aircraft: Cheese
Location: Cheese
OS: Cheese
Has thanked: 372 times
Been thanked: 185 times
Contact:

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

Post by Crazypilot »

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?
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 »

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: 26 times
Contact:

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

Post by vincent »

@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: 486
Joined: Sun Feb 06, 2011 5:13 pm
Favorite Aircraft: F-20A Tigershark
Location: Somewhere between the dykes
Has thanked: 56 times
Been thanked: 47 times

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

Post by Martin-Dutchie »

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.
Image
Crazypilot
Honorary Contributor
Honorary Contributor
Posts: 2668
Joined: Wed Jun 22, 2011 4:22 pm
Favorite Aircraft: Cheese
Location: Cheese
OS: Cheese
Has thanked: 372 times
Been thanked: 185 times
Contact:

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

Post by Crazypilot »

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?
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: 26 times
Contact:

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

Post by vincent »

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 »

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 »

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: 26 times
Contact:

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

Post by vincent »

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 »

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 »

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
Staff
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: 1727 times
Contact:

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

Post by decaff_42 »

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

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

Post by NoFear526 »

How about windows 7?
Crazypilot
Honorary Contributor
Honorary Contributor
Posts: 2668
Joined: Wed Jun 22, 2011 4:22 pm
Favorite Aircraft: Cheese
Location: Cheese
OS: Cheese
Has thanked: 372 times
Been thanked: 185 times
Contact:

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

Post by Crazypilot »

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?
User avatar
decaff_42
Staff
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: 1727 times
Contact:

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

Post by decaff_42 »

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.
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
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests