We need to prepare Blender python structure for next gen' dnm model

YSFlight addon development, questions, tutorials, & more!
User avatar
DD-Destroyer
Contributor
Contributor
Posts: 316
Joined: Tue May 22, 2012 11:45 pm
Favorite Aircraft: FA-50 Golden Eagle
Location: Seoul
OS: Windows
Has thanked: 3 times
Been thanked: 152 times
Contact:

We need to prepare Blender python structure for next gen' dnm model

Post by DD-Destroyer » Thu Oct 01, 2015 6:35 am

Greeting, YSFLIGHT cyber pilots of whole world. I suddenly get consciousness when I read Prof. Soji's long long dialog written in 29th day of September.
Soji Yamakawa wrote:By the way, I am also working on replacing the DNM data structure in YSFLIGHT code. The visible change will be, minor, but I can define a constraint edge between parts like where a wing is connected to the fuselage, and specify non-smooth shading along the constraint edge. Then, the border between the wing and the fuselage won't be blurred while the rendering is smooth within the part. This change is a part of the effort to prepare data structure for rendering as independent of rendering APIs as possible. This change will make it easier for me to adapt new rendering APIs if necessary. One of the problems of the current rendering API is it has too much influence on the data structure. It almost dictates the entire data structure. It is wrong, but it is reality.
As also I get received email from some weeks ago, he really try to make and release next generation DNM model. I'm expecting this DNM model will be a innovation of YSFLIGHT that contains new features we wanted eagerly like partial damage model or full customizing weapon systems as Soji said.

It is good enough. Yeah, very far holy nice stuffs. HOWEVER, it follow a core problem. Right, that is python code for Blender we are still using with present DNM model. I don't agree that current python code won't coincide with new DNM model. Actually without Blender, we can make or modding addons anyway. But I don't want to demand my efforts too much for unnecessary progress such creating each part SRF's using Gepolyx → importing and gathering through DNM Viewer or DNM Crests → fixing or repaint through Gepolyx → replace through DNM blahs. Damn it is we don't have to be annoyed if we can handle DNM and SRF with Blender!!

So I strongly recommend to all YSFLIGHT cyber pilots on the Earth. We must get ready to change new python code! I want to talk about this to Prof. Soji, yet it will be big burden to him; He is too busy with his job and developing YSFLIGHT and fight against FAA that consisting Soji has urinary stone less than 0.5mm; FAA judged Soji prohibition of flight Furthermore, original developer Kurosaki has gone from world of YSFLIGHT.

Is there anyone who have clever ways or skills?
Last edited by DD-Destroyer on Fri Oct 02, 2015 11:15 am, edited 1 time in total.

NightRaven
Senior Veteran
Senior Veteran
Posts: 1843
Joined: Tue Feb 07, 2012 10:00 am
Favorite Aircraft: .
OS: windoze 10 64-bit
Has thanked: 528 times
Been thanked: 606 times

Re: We need to prepare blender python structure for next gen' dnm model

Post by NightRaven » Thu Oct 01, 2015 7:02 am

I sort of second this, but how sure are you that future versions of YS will strictly be using the new Dynamodel version? I think the older versions of Dynamodel still work on current versions of YS, but correct me if I am wrong.

I was learning Python, but with my exams, I kinda forgot most (or all) of it. We also need a version of the dnm importer/exporter for the newer versions of Blender.
fk dis place kthxbai

User avatar
DD-Destroyer
Contributor
Contributor
Posts: 316
Joined: Tue May 22, 2012 11:45 pm
Favorite Aircraft: FA-50 Golden Eagle
Location: Seoul
OS: Windows
Has thanked: 3 times
Been thanked: 152 times
Contact:

Re: We need to prepare blender python structure for next gen' dnm model

Post by DD-Destroyer » Thu Oct 01, 2015 7:12 am

NightRaven wrote:but how sure are you that future versions of YS
The email I recieved he used expression "Overhaul". That's what I guessed from. I already posted about this mail. viewtopic.php?f=167&t=6036&p=90394#p90357

User avatar
Gunny
Business Class Membership
Business Class Membership
Posts: 3193
Joined: Sun Feb 06, 2011 6:17 pm
Favorite Aircraft: Any thing with a prop.
Location: New Iberia.LA.
OS: Windows XP SP3
Has thanked: 541 times
Been thanked: 688 times

Re: We need to prepare blender python structure for next gen' dnm model

Post by Gunny » Thu Oct 01, 2015 7:56 am

First let me say that what I know about programming could fit in a thimble if not smaller.But am I wrong in assuming that when the new .srf and .dnm structure is implemented it will render all addon's till that point obsolete and useless in the new game using those structures.Much like the new scenery editors incompatibility problems.If that is the case then that is a lot of hard work by previous modders gone down the drain for nothing.
Image[/align=centre]

User avatar
Snake6
Rookie
Rookie
Posts: 95
Joined: Thu Aug 13, 2015 6:37 pm
Favorite Aircraft: Su-35, F/A-18E
OS: Windows 10 (64-bit)
Has thanked: 66 times
Been thanked: 41 times

Re: We need to prepare blender python structure for next gen' dnm model

Post by Snake6 » Thu Oct 01, 2015 12:50 pm

Soji Yamakawa wrote:But, I am trying to unify the data structure to the same structure as Polygon Crest uses (open source). So, hopefully it will go well and make it easier for me to address many feature requests.
Polygon Crest is open source, so probably we will be able to look into its source code and analyse the new data structure to write the new plugin. I don't know too much about programming, BTW.

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3737
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1527 times
Been thanked: 1651 times
Contact:

Re: We need to prepare blender python structure for next gen' dnm model

Post by Neocon » Thu Oct 01, 2015 3:52 pm

Gunny wrote:But am I wrong in assuming that when the new .srf and .dnm structure is implemented it will render all addon's till that point obsolete and useless in the new game using those structures.Much like the new scenery editors incompatibility problems.
Actually, old maps still work with new YSF versions. I would think old .dnm files will continue working even if new .dnm files are not backwards compatible with older versions of YSF.

If that's not the case, I see a whole new thing in our future: updating over 10 years of old addons. :shock:

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3410
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 534 times
Been thanked: 1192 times
Contact:

Re: We need to prepare blender python structure for next gen' dnm model

Post by decaff_42 » Thu Oct 01, 2015 9:09 pm

I have slowly (very slowly indeed) been learning python for some simple things. I remember looking at the python codes a while back and being blown away by what is there. It is complicated.

I went in this afternoon to see if I could add in a CLA (by adding a single line to an established pattern) and found that it appeared in blender. I will have to do some testing to see if it actually does anything in YSFlight.

As for modifying the python scripts to actually deal with a new DNM and SRF format...I doubt I could do anything more than wreck my scripts. There is a lot in there and I think it would take someone with extensive knowledge of srfs and dnms to work on something like the project you bring up.

I think there was a discussion a while back that concluded that the actual dnm was not going to change, but rather change how YSFlight handled the dnm file. ;)
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

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
u2fly
Veteran
Veteran
Posts: 1184
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 662 times
Been thanked: 267 times
Contact:

Re: We need to prepare blender python structure for next gen' dnm model

Post by u2fly » Fri Oct 02, 2015 10:07 am

While PolygonCrest is in development, TAKE A LOOK on "SolveSpace" - small opensource OpenGL-based 3D modeller (for Windows, Linux, Mac).

For now it work with own text-based file format *.SLVS, that is in some way similar to *.DNM format. Also it can export to other 3D fileformats.
Need programmer that can implement to SolveSpace support for DNM.

Official forum - http://solvespace.com/forum.pl
Active development - https://github.com/whitequark/solvespace
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

U.S. Senator John McCain wrote:
“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
(31 DEC 2016)

User avatar
u2fly
Veteran
Veteran
Posts: 1184
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 662 times
Been thanked: 267 times
Contact:

Re: We need to prepare Blender python structure for next gen' dnm model

Post by u2fly » Fri Oct 02, 2015 11:17 am

NightRaven wrote:I sort of second this, but how sure are you that future versions of YS will strictly be using the new Dynamodel version? I think the older versions of Dynamodel still work on current versions of YS, but correct me if I am wrong.

I was learning Python, but with my exams, I kinda forgot most (or all) of it. We also need a version of the dnm importer/exporter for the newer versions of Blender.
Here is two free books by Witold Jaworski special for Blender:

- "Programming Add-Ons for Blender 2.5" (pdf+scripts)
http://airplanes3d.net/pydev-000_e.xml

- "Virtual Airplane" (online + pdf + examples)
http://airplanes3d.net/wm-000_e.xml
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

U.S. Senator John McCain wrote:
“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
(31 DEC 2016)

User avatar
u2fly
Veteran
Veteran
Posts: 1184
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 662 times
Been thanked: 267 times
Contact:

Re: We need to prepare Blender python structure for next gen' dnm model

Post by u2fly » Fri Nov 13, 2015 8:40 am

Test "SURF Exporter for latest Blender2.75"
viewtopic.php?t=8145
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

U.S. Senator John McCain wrote:
“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
(31 DEC 2016)

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3410
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 534 times
Been thanked: 1192 times
Contact:

Re: We need to prepare Blender python structure for next gen' dnm model

Post by decaff_42 » Fri Nov 13, 2015 11:37 am

How is that script installed?
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

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
u2fly
Veteran
Veteran
Posts: 1184
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 662 times
Been thanked: 267 times
Contact:

Re: We need to prepare Blender python structure for next gen' dnm model

Post by u2fly » Fri Nov 13, 2015 5:28 pm

INSTRUCTION on installing "export_srf.py" script by MrMofumofu in BLENDER 2.75
|
Get latest script from
http://github.com/pasutisu/exportsrf
|
Move "export_srf.py" to:
../blender-2.75-<folder>/2.75/scripts/addons/
|
Then run Blender 2.75 and navigate with next steps in menu:
1) "File"
2) "User Preferences..."
3) "Addons"
4) "Import-Export"
5) "Import-Export: SURF format"
6) "Enable an addon".

|
Now select mesh object what you want to export and go to menu:
1) "File"
2) "Import-Export"
3) "SURF Model (.srf)" and save it where you want.
Last edited by u2fly on Fri Nov 13, 2015 10:39 pm, edited 3 times in total.
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

U.S. Senator John McCain wrote:
“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
(31 DEC 2016)

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3410
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 534 times
Been thanked: 1192 times
Contact:

Re: We need to prepare Blender python structure for next gen' dnm model

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

You might want to edit your post in the link to the Github site and include those instructions.
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

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.

Deleted User 2704

Re: We need to prepare Blender python structure for next gen' dnm model

Post by Deleted User 2704 » Mon Nov 16, 2015 7:21 am

importer is under developing!

User avatar
u2fly
Veteran
Veteran
Posts: 1184
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 662 times
Been thanked: 267 times
Contact:

Re: We need to prepare Blender python structure for next gen' dnm model

Post by u2fly » Mon Nov 16, 2015 11:25 am

@mrmofumofu,
Reccomend you look inside new AC3D import/export scripts for Blender 2.6-2.7, as AC3D file structure is very similar to DNM.
.
This https://github.com/majic79/Blender-AC3D
.
And this https://github.com/NikolaiVChr/Blender-AC3D

I already play with it for test export to DNM from Blender 2.69, so will give you my unfinished script.
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

U.S. Senator John McCain wrote:
“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
(31 DEC 2016)

Deleted User 2704

Re: We need to prepare Blender python structure for next gen' dnm model

Post by Deleted User 2704 » Mon Nov 16, 2015 1:32 pm

sorry i developed it using bmesh...
bmesh support multigon so i choose it

i ll make it independently

User avatar
u2fly
Veteran
Veteran
Posts: 1184
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 662 times
Been thanked: 267 times
Contact:

Re: We need to prepare Blender python structure for next gen' dnm model

Post by u2fly » Tue Nov 17, 2015 6:38 am

GET Blender script for create "Airfoil NACA 4-digit"
airfoil_tool.jpg
It create quadratic faces and you can control resolution
airfoil_mesh.jpg
Image
Original author: David Wehr
"This script is an add-on, so you can easily install it in the Add-Ons sections of the User Preferences. It is then located under Add>Mesh>NACA Airfoil.
You can specify the 4-digits for a NACA airfoil: maximum camber, camber position, and maximum thickness."
Attachments
NACA_Airfoil_(4-digit)-Blender2.5+.zip
(61.76 KiB) Downloaded 37 times
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

U.S. Senator John McCain wrote:
“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
(31 DEC 2016)

User avatar
Flake
Staff
Staff
Posts: 4252
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Honda CBR1000RR (2004).
Location: Australia
OS: Windows 10 (x64)
Has thanked: 809 times
Been thanked: 1158 times
Contact:

Re: We need to prepare Blender python structure for next gen' dnm model

Post by Flake » Wed Nov 18, 2015 12:27 am

This is pretty awesome - I can see it getting some use! Just need to simplify the resultant mesh once complete.

Deleted User 2704

Re: We need to prepare Blender python structure for next gen' dnm model

Post by Deleted User 2704 » Wed Nov 18, 2015 4:57 am

currently i designing exportdnm

i think it will do only 3-things
*export meshes
*place parts
*set parent-children relationships

so others function are depend to dnmviewer

User avatar
u2fly
Veteran
Veteran
Posts: 1184
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 662 times
Been thanked: 267 times
Contact:

Re: We need to prepare Blender python structure for next gen' dnm model

Post by u2fly » Wed Nov 18, 2015 6:03 am

For export CLA its no need DNMviewer. In blender its use some property from "GameLogic" menu, so try add this future too.
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

U.S. Senator John McCain wrote:
“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
(31 DEC 2016)

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests