GaijinEntertainment / DagorEngine

Dagor Engine and Tools source code from Gaijin Games KFT
Other
2.15k stars 268 forks source link

[Question] About the Blender extension.. #16

Closed Roskavaki closed 9 months ago

Roskavaki commented 9 months ago

I have some questions about using Blender to create models for DagorEngine.

I'm interested in using the Blender extension to make models for WarThunder. The Blender extension included in the WarThunder CDK only works with older versions of Blender, and doesn't keep objects separate (all meshes are combined into 1, so it is not useful for creating aircraft). Therefore I thought I would try dag4blend in this project.

1) What version of Blender should I use? I've tried zipping the contents of dag4blend into a file called bl_dag_exporter.zip and then in Blender, preferences->addons->install But I don't see the addon added to the list of installed add-ons. I have tried in Blender 2.49b, 2.71, 3.3.0

2) Do I need to build blk2dag to export from Blender to Dagor? The extension in the Thunder CDK depended upon blk2dag.exe so I am wondering if this is still a requirement.

3) If the answer to 2 is yes, then do I need to build the whole DagorEngine, or can blk2dag be built by itself?

seanballais commented 9 months ago

Seems like the plugin is designed for Blender 3.1.2. Maybe try that and see what happens?

NicSavichev commented 9 months ago
  1. If the answer to 2 is yes, then do I need to build the whole DagorEngine, or can blk2dag be built by itself?

Please wait couple of days, we will update Blender plugin to actual working version shortly

NicSavichev commented 9 months ago

updated Blender plugin script change here please, pull repo and build with pack.bat in DagorEngine.git/prog/tools/dag4blend then install resulting dag4blend.zip to Blender

Roskavaki commented 9 months ago

Thankyou very much!

I'm not able to see the cube.dag I created in the warthunder AssetViewer, but it's probably something I am doing wrong.

If anyone else comes to this thread using Windows, you may need to install 7zip, add 7zip to your path, then edit pack.bat and replace zip dag4blend\dag4blend.zip with 7z.exe a -tzip dag4blend\dag4blend.zip

Roskavaki commented 9 months ago

Ok, I was using a blender version that was <3.5 I updated to blender 4.0 and now I can see objects in assetviewer.