[PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Note that alterations to the YSFlight .EXE is forbidden
Post Reply
User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

[PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Mon Nov 02, 2015 4:52 pm

It made for adding function exporting YSFLIGHT SURF(.srf)!
It will work with upper Blender 2.75!

https://github.com/pasutisu/exportsrf
Last edited by mrmofumofu on Thu Feb 11, 2016 2:44 pm, edited 2 times in total.
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]SURF Exporter for latest Blender!

Post by mrmofumofu » Wed Nov 04, 2015 1:47 pm

Currentry developing dnm import method
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3359
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: 497 times
Been thanked: 1108 times
Contact:

Re: [PLUGIN]SURF Exporter for latest Blender!

Post by decaff_42 » Fri Nov 13, 2015 9:06 pm

This SRF exporter seems to work great! I was able to export a mesh from Blender 2.75 and import the generated SRF in Blender 2.49 with no errors.

Will there be an import SRF script developed? I find that tool frequently used in my work in Blender 2.49.
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.

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]SURF Exporter for latest Blender!

Post by mrmofumofu » Thu Feb 11, 2016 1:10 pm

Released.
explodesrf is a little present.
https://github.com/pasutisu/exportsrf
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
u2fly
Banned
Banned
Posts: 1156
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 645 times
Been thanked: 258 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly » Thu Feb 11, 2016 2:58 pm

mrmofumofu wrote:Released.
explodesrf is a little present.
https://github.com/pasutisu/exportsrf
For those who have only Blender 2.6x this script can be installed after changes in scripts string:
'blender' : (2, 75, 0),
Replace this string to next:
'blender' : (2, 60, 0),
After this save and install as other plugins for Blender 2.6x
http://wiki.blender.org/index.php/Doc%3 ... on/Add-Ons
--
@mrmofumofu, hope that you will make import scripts soon.
Please, make it!
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Thu Feb 11, 2016 3:34 pm

I suggest upper 2.75 because I tested only that.
BMesh is currently experimental so do so.
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
u2fly
Banned
Banned
Posts: 1156
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 645 times
Been thanked: 258 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly » Thu Feb 11, 2016 3:50 pm

mrmofumofu wrote:I suggest upper 2.75 because I tested only that.
BMesh is currently experimental so do so.
I dont yet test latest scripts, but previouse version I can normally run inside Blender 2.69 after manipulation described in comment above.
But, for my opinion "exportsrf" is bad name for it. Maybe try rename to "export_srf"?
Anyway, THANKS FOR IT!
Be wait for "import_srf" and "import_dnm".
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Thu Feb 11, 2016 10:24 pm

I will implement Decaff's idea "reducing SURF filesize".
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Sun Feb 14, 2016 5:18 am

importmqo added
X axis reverse bug fixed
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
u2fly
Banned
Banned
Posts: 1156
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 645 times
Been thanked: 258 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly » Tue Mar 22, 2016 1:53 am

mrmofumofu wrote:It will work with upper Blender 2.75!
Please, update your scripts to new Blender 2.77 API
https://wiki.blender.org/index.php/Dev: ... 77/Add-ons
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Tue Mar 22, 2016 4:51 pm

u2fly wrote: Please, update your scripts to new Blender 2.77 API
https://wiki.blender.org/index.php/Dev: ... 77/Add-ons
You forked my source so I understood you will be improbe my code yourself.
Please do it by yourself!
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
u2fly
Banned
Banned
Posts: 1156
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 645 times
Been thanked: 258 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly » Tue Mar 22, 2016 6:24 pm

mrmofumofu wrote:
u2fly wrote: Please, update your scripts to new Blender 2.77 API
https://wiki.blender.org/index.php/Dev: ... 77/Add-ons
You forked my source so I understood you will be improbe my code yourself.
Please do it by yourself!
I don't work on it, only give a news about Blender API upgrading, thats all.
Do what you want and keep us in course when you make updates.
The only target for fork was make reserve copy of it, thats all, nothing personal.
Currently I'm work only on GUI for "ysradar.py" from Eric.
--
I also test your "export_dnm.py", and resulted DNM sometime has wrong parenting or orientation and export process always give me error notification while save to DNM

Code: Select all

Traceback (most recent call last):
File "/initrd/mnt/dev_save/blender/2.77/scripts/addons/export_dnm.py", line 259, in execute
  fp.write(surf.srf())
File "/initrd/mnt/dev_save/blender/2.77/scripts/addons/export_dnm.py", line 168, in srf
  if self.obj.parent.type == 'MESH' \
AttributeError: 'NoneType' object has no attribute 'type'


location: <unknown location>:-1
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Wed Mar 23, 2016 4:46 am

u2fly wrote:I don't work on it, only give a news about Blender API upgrading, thats all.
Do what you want and keep us in course when you make updates.
I can not test that ver,so can do nothing.
And I do not obligated to support.
It not stable so support by yourself.
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Thu May 12, 2016 1:54 pm

exportsrf ver 2.2 released.
Environment difference option added.
Thanks for utachy(flip normals)!

(AFTER 2.0+, EXPORTSRF IS NOT LICENSED OPEN SOURCE LICENSE BY MY POLYCY.)
Last edited by mrmofumofu on Mon Jan 09, 2017 3:04 am, edited 1 time in total.
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Wed Jun 08, 2016 9:12 am

exportsrf ver 3.0 released
* single filed
* add importsrf/dnm
* unshadow added to importmqo

Thanks for debugging Utachy and Sasha!
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
u2fly
Banned
Banned
Posts: 1156
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 645 times
Been thanked: 258 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by u2fly » Wed Jun 08, 2016 1:08 pm

mrmofumofu wrote:exportsrf ver 3.0 released
* single filed
* add importsrf/dnm
* unshadow added to importmqo

Thanks for debugging Utachy and Sasha!
Is this "mofumofu.py" same as it was on pastebin, posted on mChat?
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Fri Jun 10, 2016 5:59 am

I forgot.
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

User avatar
mrmofumofu
Modding Team
Modding Team
Posts: 73
Joined: Mon Nov 02, 2015 4:45 pm
Favorite Aircraft: MiG-35
Location: Nara, Japan
OS: Linux(Arch Linux)
Has thanked: 20 times
Been thanked: 90 times
Contact:

Re: [PLUGIN]exportsrf - Blender 2.7 SURF Exporter

Post by mrmofumofu » Fri Jun 17, 2016 1:40 am

ver 3.1
*Added setting rotate axis
*Fix some bug
C/C++/C#/Python/PHP/JavaScript...etc
For support me, bought me a vodka!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest