Board index FlightGear Development

Blender 2.80 AC3D

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

Blender 2.80 AC3D

Postby xDraconian » Sat Aug 10, 2019 10:54 pm

wkitty42 wrote in Thu Aug 08, 2019 10:43 pm:but someone does have something for doing something with scenery in blender... i don't believe i've misunderstood that but it is possible... i just don't recall who did it or what it is called...

FGBlenderTools currently supports importing of BTG files and Aircraft files. It also produced shapefiles based on an imported BTG.

I've abandoned my custom AC3D script in favor of Nicolai's version. I'm currently collaborating with Nicolai to migrate his AC3D scripts to Blender 2.80. Import is mostly implemented (hopeful to complete it this weekend). I believe Nicolai is planning to begin the Export migration over the next few weeks.

FGBlenderTools is working well in Blender 2.80, but I still have more testing to perform before making it available.

re: fg2blender.... i've heard of it, but haven't used it, since it seems to be dead. Based on some of the comments in this thread it would appear that the author has already implemented some of my desired TODO features. I'll take a look at this package at some point to see if there is value in folding some of it into a common AC3D/Blender package.

p.s. it may be beneficial for us to start a Blender 2.80 thread instead of continuing on this Blender 2.6 thread.
xDraconian
 
Posts: 236
Joined: Sun Jan 21, 2018 5:53 am
Version: Git
OS: Linux Mint

Re: Blender 2.80 AC3D

Postby xDraconian » Sat Aug 10, 2019 11:00 pm

xDraconian wrote in Sat Aug 10, 2019 10:54 pm:Import is mostly implemented (hopeful to complete it this weekend).

I believe the AC3D Import for Blender 2.80 is pretty stable at this point.

Pull Request is pending with Nikolai. Once the merge is complete I will be seeking the help of others willing to help do some additional testing.

Scott
xDraconian
 
Posts: 236
Joined: Sun Jan 21, 2018 5:53 am
Version: Git
OS: Linux Mint

Re: Blender 2.80 AC3D

Postby xDraconian » Sun Aug 11, 2019 1:50 am

Nikolai completed the merge - Thank you Nikolai.

If you are using Blender 2.80, we would appreciate you giving the Import script some testing and report your findings.
Export has not yet been migrated, so no testing is required for it.

https://github.com/NikolaiVChr/Blender-AC3D/tree/2.80

Thanks in advance,
Scott
xDraconian
 
Posts: 236
Joined: Sun Jan 21, 2018 5:53 am
Version: Git
OS: Linux Mint

Re: Blender 2.80 AC3D

Postby Necolatis » Tue Aug 13, 2019 12:38 pm

The 2.80 export script should also be able to export some models now.

Notice:
- If a material has multiple textures assigned, it prefers the one attached to Base Color, else it will use the first valid one it finds, no matter if its assigned to normalmap or something else.
- All geometry will be exported double or single sided according to the export option. Blender has removed the per Object setting.
- Cycles probably will fail it.
- I recommend using Principled BSFD using nodes. Roughness inverted will become shininess. Base color will be rgb unless texture is applied to base color, then rgb will be white. Specular as it is, in greytone. Alpha to transparency. Emission to emission.
Ambient will be 3 x 0.8 unless option to make it like diffuse color is set.
The above does not apply if your Material is not P. BSFD and using nodes.

Still in beta, so don't rely too much on it, but would be happy to hear feedback.

[edit 1+2] Improved some stuff and edited post to reflect that.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1916
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.1
OS: Windows 10

Re: Blender 2.80 AC3D

Postby wlbragg » Tue Aug 13, 2019 3:55 pm

- All geometry will be exported double or single sided according to the export option. Blender has removed the per Object setting.

Was per object single double sided supported in Blender prior to this?
So what happens to exports that contain both single and double sided objects?
That sound like a real issue?
I guess the bigger question is if FG is supporting both double and single sided objects in the same ac. I've never asked the question or tested for it.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4754
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: Blender 2.80 AC3D

Postby legoboyvdlp » Tue Aug 13, 2019 4:41 pm

Yes - it is - I have several models in the Canary project with a mix of double sided and single sided.

Surely it could be left in the 2.79? Will there be two exporters for the two versions?
User avatar
legoboyvdlp
 
Posts: 6846
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Blender 2.80 AC3D

Postby Necolatis » Tue Aug 13, 2019 9:39 pm

Not going to delete the 2.79 script, so yeah I guess there will be 2 scripts.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1916
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.1
OS: Windows 10

Re: Blender 2.80 AC3D

Postby dvanmosselbeen » Tue Aug 13, 2019 10:24 pm

Awesome !
Looking really forward to it! :)
If i can bring some help, (translate to or from French, Flemish) help with python, or test anything, shoot ! ;)

Mainly running Windows 10 and Debian.

Thanks for your motivation and all your work to bring us this to the 2.8 :)
Regards,
Proud to work on Belgian sceneries: https://github.com/dvanmosselbeen and the Rans S-6S aircraft: https://github.com/dvanmosselbeen/Rans-S-6S
dvanmosselbeen
 
Posts: 64
Joined: Sat Feb 26, 2011 2:54 pm
Location: Brussel
Callsign: B-ITCH
IRC name: dvanmosselbeen
Version: git
OS: Debian / Windwoss

Re: Blender 2.80 AC3D

Postby Necolatis » Thu Aug 15, 2019 10:55 pm

The script is not ready for prime time yet. There is still some material kinks to work out.
Most likely it will have to use Principled BSDF again as default, due to Eevee Speculars bad handling of transparency.
Thats a real shame cause the specular shader has almost 1:1 conversion to AC3D materials.

If you want to help testing, what would be useful to get some feedback on is exporting models that has modifiers applied. Also that negative scaling should preserve normal direction. Plus whatever you can think of.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore


Hangar: https://sites.google.com/site/fghangar/
User avatar
Necolatis
 
Posts: 1916
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.1
OS: Windows 10


Return to Development

Who is online

Users browsing this forum: No registered users and 2 guests