abarichello / godot-ci

Docker image to export Godot Engine games. Templates for Gitlab CI and GitHub Actions to deploy to GitLab Pages/GitHub Pages/Itch.io.
https://hub.docker.com/r/barichello/godot-ci
MIT License
758 stars 133 forks source link

Add blender support to godot4 #114

Open croxis opened 1 year ago

croxis commented 1 year ago

GD4's blender importer requires blender to be installed.

Calinou commented 1 year ago

The process is likely similar to the Android setup:

croxis commented 1 year ago

Is there a specific reason for using focal?

Calinou commented 1 year ago

Is there a specific reason for using focal?

I think it's mostly for legacy reasons, as we don't self-compile export templates (so we don't need to be running old Linux to compile binaries that are compatible with old Linux distributions).

That said, we don't recommend using distribution-provided Blender, as it's often outdated and may be modified in undesirable ways. Blender upstream themselves advises downloading Blender from the official source instead.

lunarlabs commented 1 year ago

You'll also need to get xz-utils in order to extract Blender, it looks like?

edit: Here's what I came up with for the import-assets job:

  stage: import-assets
  script:
    - apt-get update
    - apt-get install -y --no-install-recommends xz-utils
    - wget -nv https://mirrors.dotsrc.org/blender/release/Blender3.6/blender-3.6.0-linux-x64.tar.xz 
    - tar -xf blender-3.6.0-linux-x64.tar.xz
    - cd blender-3.6.0-linux-x64
    - pwd | sed 's/^/filesystem\/import\/blender\/blender3_path = \"/;s/$/"/' >> ~/.config/godot/editor_settings-4.tres
    - cd ..
    - godot -v -e --quit --headless
croxis commented 1 year ago

Correct.

My next issue is that the blend file (or it's conversation) isn't being included in the pck. I'm not familiar enough with Godot to figure out what the problem is.

On Mon, Jul 17, 2023, 9:30 AM Matthias @.***> wrote:

You'll also need to get xz-utils in order to extract Blender, it looks like?

— Reply to this email directly, view it on GitHub https://github.com/abarichello/godot-ci/issues/114#issuecomment-1638478229, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA5V54WGKFFWVN7XGMOCS3XQVSBTANCNFSM6AAAAAAZQZGNGQ . You are receiving this because you authored the thread.Message ID: @.***>

arnaudvergnet commented 8 months ago

Hello, would you be open for contributions for a docker image pre-configured to use Blender ? Or at least a readme section with an example job to set up blender with the existing image.

lunarlabs commented 8 months ago

I could probably do a readme, sure.