Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

NB4a: the macOS raea carries the plugin catalog

shinyobjectzd30c4a687a9c
diff --git a/engine/cli/Cargo.toml b/engine/cli/Cargo.toml
index 6d78df95..ea04c0f3 100644
--- a/engine/cli/Cargo.toml
+++ b/engine/cli/Cargo.toml
@@ -86,6 +86,12 @@ bevy = { version = "=0.20.0", default-features = false }
raea-core-program = { path = "../../core/program" }
raea-core-animate = { path = "../../core/animate" }
+# the plugin catalog in the macOS build (docs/nobuild.feature NB4a): every plugin compiled in, added to an App only when
+# its project chooses it. Windows and Linux follow once their builders have built and checked it (tools/nobuild.sh catalog)
+[target.'cfg(target_os = "macos")'.dependencies]
+raea-bevy-plugins = { path = "../../engine/bevy-plugins", features = ["catalog"] }
+raea-runtime-react = { path = "../../runtime/react", default-features = false, features = ["bevy-plugins"] }
+
[features]
# Bevy plugins compiled in (raea-bevy-plugins), as tools/bevy-plugins.sh names them: bevy-plugins,raea-bevy-plugins/avian,...
bevy-plugins = ["dep:raea-bevy-plugins", "raea-runtime-react/bevy-plugins"]
diff --git a/tools/nobuild.sh b/tools/nobuild.sh
index af685f7e..85bd56c9 100755
--- a/tools/nobuild.sh
+++ b/tools/nobuild.sh
@@ -211,7 +211,7 @@ props() {
# a frame's pixels of one colour, by a rule on r, g, b: how many, and their mean x and y
pixels() {
- magick "$1" -depth 8 txt:- | awk -F'[,:() ]+' -v rule="$2" 'NR > 1 { x = $1; y = $2; r = $4; g = $5; b = $6
+ magick "$1" -depth 8 txt:- | awk -F'[,:() ]+' -v rule="$2" 'NR > 1 { x = $1; y = $2; r = $3; g = $4; b = $5
hit = rule == "ball" ? (r > 90 && g < 60 && b > 15 && b < r * 0.6) : (r > 170 && g > 70 && b < 90 && g < r * 0.85)
if (hit) { n++; sx += x; sy += y } } END { printf "%d %.0f %.0f", n, n ? sx / n : -1, n ? sy / n : -1 }'
}