Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Development
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addon Development Developers post news, updates, & discussions here about your projects in development.

Reply
 
Thread Tools
Old 01-06-2019, 09:52 AM   #211
francisdrake
Addon Developer
Default

Thanks for trying! Sorry it does not work.

Changing the blender info verison in the script:
"blender": (2, 80, 0),
is unfortunately not enough.

Error message:
Attribute error: Module 'bpy.utils' has no attribute 'register_module'

When comparing it with other import/export scripts it looks like the registering process requires classes to be defined, which have register / unregister methods included.
The old method probably allowed this to done with simple functions.

So the challenge would be to structure the register / unregister in classes as it is done for the other import and export scripts.
francisdrake is offline   Reply With Quote
Old 01-06-2019, 11:11 AM   #212
fred18
Addon Developer

Default

Quote:
Originally Posted by llarian View Post
nope, it doesn't work. did you just update the version? because it is not enough. previously I went on and also updated the class registration, it installed fine but it didn't show up in my export menu.

I am wondering also if there is any compatibility issue between blender files versions. I think there is not actually... so one option could be to model and test render in 2.8 and then just export through 2.79.
fred18 is online now   Reply With Quote
Old 01-06-2019, 12:59 PM   #213
francisdrake
Addon Developer
Default

I did install both versions, 2.79 and 2.8.
Once a model is modified in 2.8, it reports an error when trying to open in 2.79.
"File written by a newer Blender binary (280.0). Expect loss of data."

My test file loaded then as empty, no geometrical information.
And - if the "Load UI" option is checked - also all menu bars are removed.
francisdrake is offline   Reply With Quote
Old 01-06-2019, 01:45 PM   #214
Blake
Addon Developer
Default

FYI, Blender script changes are documented here:


https://wiki.blender.org/wiki/Refere...hon_API/Addons


How classes are registered and named is also changing. Scripts and blend files are not backward compatible.


As has been noted, this is Beta software and any changes made to scripts may or may not work in the next release. I'd stick with Blender 2.79 for serious Orbiter development until things are locked down a bit tighter with 2.80.


BTW, I do like the direction Blender is taking. It should soften the learning curve for many coming from other applications.
Blake is offline   Reply With Quote
Thanked by:
Old 01-06-2019, 03:50 PM   #215
Traveller
Donator
 
Traveller's Avatar
Default

There will be some rewrite needed. Tessfaces was removed from the Mesh API, for example.
Traveller is offline   Reply With Quote
Old 01-06-2019, 03:50 PM   #216
llarian
Orbinaut
 
llarian's Avatar
Default

Thanks for the feedback ... and my apologies, guys. It was a late Saturday night thing while I was tinkering with a new Raspberry Pi, so I made the quick minimum change and then pulled a Microsoft and let the community do the testing. I abase myself.

I need it working too so I will continue working on the rest of it ... and then test it first. It would be better if Vlad came back to play as the original author always knows his software best. Please feel free to add in your own efforts, too.

I haven't tried it yet, but I think there is still the option of saving a Blender model as .obj and then using the obj to msh converter.
llarian is offline   Reply With Quote
Old 01-17-2019, 08:24 PM   #217
llarian
Orbinaut
 
llarian's Avatar
Default

While I've been researching the required changes to Vlad's Blender i/o addon, I noticed that Blender 2.8 can output 3ds flies. Has anyone tried this yet and then passed the output through the max to msh converter successfully?
llarian is offline   Reply With Quote
Thanked by:
Old 01-18-2019, 03:57 PM   #218
4throck
Enthusiast !
 
4throck's Avatar
Default

Yes, we need a new plugin, specially one with support for more advanced materials (D3D9).
The current one only outputs GSGL/Blender Render materials, not Cycles.

I have a lot of things going on right now, but eventually I might be able to help with some testing. PM if needed
4throck is offline   Reply With Quote
Thanked by:
Old 02-02-2019, 04:44 PM   #219
vlad32768
Orbinaut
Default

Quote:
Originally Posted by francisdrake View Post
 I played around with Blender recently. The io_orbiter_msh works with version 2.79.

Unfortunately not with the upcoming version 2.80! When trying to activate it, an error message is presented: "This script has not been updated to version 2.80. Ignoring."
This seem related to how the scripts are registered in Blender 2.80.

I don't know if Vlad is still around and could update his script, please?
The new Blender version 2.80 is a major improvement on the (somewhat cluttered) interface of Blender, much more friendly to use.
It looks like Python API has changed in Blender 2.8.
Also the Blender render is replaced with Eevee, the script should export Eevee materials into a .msh file.
BTW, I didn't launch Orbiter for some years. Are there any improvements in Orbiter rendering engine that require some additional material data?
I will investigate the changes if I have free time.
vlad32768 is offline   Reply With Quote
Thanked by:
Old 04-21-2019, 03:35 AM   #220
vlad32768
Orbinaut
Default WIP

Unfortunately, I haven't enough free time to update the module for 2.8.
But the work is slooowly getting done. Now I can import mesh geometry and UV data into Blender 2.8.
However, the old Blender renderer has gone in 2.8, so I have to learn how to work with new EEVEE node-based materials, and 2.8 PyAPI documentation isn't good yet.

AFAIK there are new advanced rendering plugins like d3d9Client.
Do they use cool material features like normal mapping, specular mapping etc? Maybe the plugin should handle features like that?
vlad32768 is offline   Reply With Quote
Thanked by:
Old 04-21-2019, 08:21 PM   #221
llarian
Orbinaut
 
llarian's Avatar
Default

The Blender Python API documentation has been recently updated and released (API reference for Blender 2.80.57 bcefceb20058, built 2019-04-15). Still going through it myself. It is available online, of course, but is also available as zipped html files ( https://docs.blender.org/api/blender...ce_2_80_57.zip ).

Thanks for getting back to the community with an update of your efforts.
llarian is offline   Reply With Quote
Old 04-21-2019, 10:52 PM   #222
4throck
Enthusiast !
 
4throck's Avatar
Default

Quote:
Originally Posted by vlad32768 View Post
 Do they use cool material features like normal mapping, specular mapping etc? Maybe the plugin should handle features like that?

Yes, those are supported. The current d3d9Client is PBR based.
4throck is offline   Reply With Quote
Thanked by:
Old 04-22-2019, 01:40 AM   #223
vlad32768
Orbinaut
Default

Quote:
Originally Posted by 4throck View Post
 Yes, those are supported. The current d3d9Client is PBR based.
So, the plugin can import models into Blender 2.8 EEVEE now. Tested with standard DG, Atlantis and ProjectAlphaISS meshes. Renders are quite nice.

I suppose everybody use d3d9client now, so I should create a standard node setup for its PBR based material. It will be used by an addon developer in the future.

I need a model created for d3d9client with the most advanced materials. Can anybody suggest an addon?
vlad32768 is offline   Reply With Quote
Thanked by:
Old 04-22-2019, 03:09 PM   #224
Abloheet
Addon Developer
 
Abloheet's Avatar
Default

Please excuse my ignorance. Which is the latest version of blender supported by the import-export plugin?
Abloheet is offline   Reply With Quote
Old 04-22-2019, 04:26 PM   #225
llarian
Orbinaut
 
llarian's Avatar
Default

I believe the one posted works up to Blender 2.79. The sticking point was 2.80 (Blender made some major changes. Probably should have gone to Blender 3.0). Vlad32768 seems to be making major progess with his update to having it work with 2.80.
llarian is offline   Reply With Quote
Thanked by:
Reply

  Orbiter-Forum > Orbiter Addons > Addon Development


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 11:23 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.