Browse Source

Tweak AssetBuilder, Aubio test is no longer slow

Macoy Madson 2 months ago
4 changed files with 8 additions and 11 deletions
  1. +2
  2. +1
  3. +5
  4. +0

+ 2
- 2 View File

@ -68,9 +68,9 @@ Refer to ~test/~ for project setup.
This shouldn't be necessary because ~test/~ is set up to not clone dependencies as submodules, but if you are testing the submodules feature, this script helps undo them.
** Platform setup
*** Ogre
You may need X11 headers to build on Ubuntu:
You may need X11 headers to build on Ubuntu. You'll also need imagemagick and blender for the asset building:
sudo apt install libx11-xcb-dev
sudo apt install libx11-xcb-dev imagemagick blender
There is a TODO to automatically install these.
* Asset pipeline

+ 1
- 5
src/Aubio.cake View File

@ -66,11 +66,7 @@
(var detected-pitch (* fvec_t) (new_fvec buffer-size))
(aubio_pitch_do pitch-detection buffer detected-pitch)
(printf "Buffer:\n")
(fvec_print buffer)
(printf "Pitch:\n")
(fvec_print detected-pitch)
(printf "Pitch: %f\n" (fvec_get_sample detected-pitch 0))
(printf "\n")
(del_fvec buffer)

+ 5
- 2
test/src/AssetBuilder.cake View File

@ -51,9 +51,9 @@
(Log "Asset-Building: failed to build 3D asset. Is Blender on your path? Is blender2ogre set
up on your Blender default preferences? See for setup\n
You may need to copy blender2ogre to your new blender version, e.g.:\n\n
cp -r Dependencies/blender2ogre/io_ogre ~/.config/blender/[version]\n\n
cp -r Dependencies/blender2ogre/io_ogre ~/.config/blender/[version]/scripts/addons/\n\n
Or, open your new version of Blender and select 'Copy settings from [previous version]'\n
on the splash screen.\n")
on the splash screen. Don't forget to set Ogre XML converter to OgreMeshTool\n")
(free (type-cast model-output-dir (* void)))
(return false))
@ -111,3 +111,6 @@ path? You may need to install ImageMagick. See
;; TODO: This should be a post-build hook
(add-compile-time-hook-module pre-build process-3d-assets :priority-decrease 10)
(add-dependency-git-submodule clone-blender2ogre ""

+ 0
- 2
test/src/VocalGame.cake View File

@ -694,5 +694,3 @@
(import &comptime-only "Dependencies.cake")
(add-dependency-git-submodule clone-blender2ogre ""