Page 1 of 3

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

Posted: Fri Aug 12, 2011 8:00 pm
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}

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

Posted: Fri Aug 12, 2011 8:48 pm
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.

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

Posted: Sat Aug 13, 2011 8:39 am
by Welshy
You need blender 2.49X

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

Posted: Sat Aug 13, 2011 1:36 pm
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.

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

Posted: Tue Aug 16, 2011 3:31 pm
by Strik3agle98
how to install it I didn't understand the install guide that come with it




thanks

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

Posted: Tue Aug 16, 2011 4:41 pm
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?

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

Posted: Tue Aug 16, 2011 5:03 pm
by dustydan1995
going with what can said. can someone show pictures on how to install the files?

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

Posted: Wed Aug 17, 2011 2:54 pm
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...).

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

Posted: Wed Aug 17, 2011 4:46 pm
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.

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

Posted: Wed Aug 17, 2011 9:10 pm
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?

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

Posted: Thu Aug 18, 2011 12:41 pm
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.

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

Posted: Thu Aug 18, 2011 2:23 pm
by Shutter
Depending on the windows version, it might be something like user\appdata\roaming\blender foundation/blender\.blender

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

Posted: Thu Aug 18, 2011 4:58 pm
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

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

Posted: Sat Aug 20, 2011 8:37 am
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)

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

Posted: Sun Sep 04, 2011 9:52 am
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

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

Posted: Mon Oct 17, 2011 8:23 pm
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.

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

Posted: Mon Oct 31, 2011 8:42 pm
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.

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

Posted: Wed Nov 02, 2011 11:24 am
by NoFear526
How about windows 7?

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

Posted: Wed Nov 02, 2011 1:57 pm
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?

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

Posted: Wed Nov 02, 2011 4:01 pm
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.